Merge pull request #26140 from overleaf/rh-cio-sub-status

Use analyticsId as primary identifier in customer.io and support best-subscription property

GitOrigin-RevId: d412f2edbff2e430d7fe3192b8843ad9ac2c226a
This commit is contained in:
roo hutton
2025-06-13 10:02:16 +01:00
committed by Copybot
parent f025f1d0cb
commit 980a8458d4
3 changed files with 15 additions and 3 deletions
@@ -409,6 +409,15 @@ async function projectListPage(req, res, next) {
'papers-notification-banner'
)
const customerIoEnabled =
await SplitTestHandler.promises.hasUserBeenAssignedToVariant(
req,
userId,
'customer-io-trial-conversion',
'enabled',
true
)
res.render('project/list-react', {
title: 'your_projects',
usersBestSubscription,
@@ -440,6 +449,7 @@ async function projectListPage(req, res, next) {
})),
hasIndividualPaidSubscription,
userRestrictions: Array.from(req.userRestrictions || []),
customerIoEnabled,
})
}