mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #23939 from overleaf/rh-cio-analytics-split-test
Only send events to customer.io if in campaign split test GitOrigin-RevId: 572ad5efdfc1e86f525722c6a425fa1454f2cf3a
This commit is contained in:
@@ -47,6 +47,10 @@ export function sendMB(key: string, segmentation: Segmentation = {}) {
|
||||
segmentation.page = window.location.pathname
|
||||
}
|
||||
|
||||
if (getMeta('ol-customerIoEnabled')) {
|
||||
segmentation['customerio-integration'] = 'enabled'
|
||||
}
|
||||
|
||||
sendBeacon(key, segmentation)
|
||||
|
||||
if (typeof window.gtag !== 'function') return
|
||||
|
||||
@@ -84,6 +84,7 @@ export interface Meta {
|
||||
'ol-currentInstitutionsWithLicence': Institution[]
|
||||
'ol-currentManagedUserAdminEmail': string
|
||||
'ol-currentUrl': string
|
||||
'ol-customerIoEnabled': boolean
|
||||
'ol-debugPdfDetach': boolean
|
||||
'ol-detachRole': 'detached' | 'detacher' | ''
|
||||
'ol-dictionariesRoot': 'string'
|
||||
|
||||
Reference in New Issue
Block a user