mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #22119 from overleaf/kh-hotjar-on-plans-and-checkout
[web] add hotjar to plans pages GitOrigin-RevId: eb582a85200747754923f28e7d710a9072577d75
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import getMeta from '@/utils/meta'
|
||||
import { isSplitTestEnabled } from '@/utils/splitTestUtils'
|
||||
import { debugConsole } from '@/utils/debugging'
|
||||
import { initializeHotjar } from '@/infrastructure/hotjar-snippet'
|
||||
|
||||
const { hotjarId, hotjarVersion } = getMeta('ol-ExposedSettings')
|
||||
const shouldLoadHotjar = getMeta('ol-shouldLoadHotjar')
|
||||
|
||||
let hotjarInitialized = false
|
||||
|
||||
if (hotjarId && hotjarVersion && isSplitTestEnabled('hotjar')) {
|
||||
if (hotjarId && hotjarVersion && shouldLoadHotjar) {
|
||||
const loadHotjar = () => {
|
||||
// consent needed
|
||||
if (!document.cookie.split('; ').some(item => item === 'oa=1')) {
|
||||
|
||||
Reference in New Issue
Block a user