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 08:54:24 +00:00
committed by Copybot
parent 4441f42dea
commit 27e2adecab
8 changed files with 180 additions and 8 deletions

View File

@@ -768,6 +768,15 @@ const _ProjectController = {
isPaywallChangeCompileTimeoutEnabled &&
(await ProjectController._getPaywallPlansPrices(req, res))
const customerIoEnabled =
await SplitTestHandler.promises.hasUserBeenAssignedToVariant(
req,
userId,
'customer-io-trial-conversion',
'enabled',
true
)
const addonPrices =
isOverleafAssistBundleEnabled &&
(await ProjectController._getAddonPrices(req, res))
@@ -883,6 +892,7 @@ const _ProjectController = {
isPaywallChangeCompileTimeoutEnabled,
isOverleafAssistBundleEnabled,
paywallPlans,
customerIoEnabled,
addonPrices,
})
timer.done()