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:
roo hutton
2025-03-06 09:05:45 +00:00
committed by Copybot
parent 4441f42dea
commit 27e2adecab
8 changed files with 180 additions and 8 deletions
@@ -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