overleaf/services/web/app/views/subscriptions/_premium_features_link.pug
Jessica Lawshe e391a9fc46 Merge pull request #11079 from overleaf/jel-features-link-analytics
[web] Add analytics to features link

GitOrigin-RevId: 80cbba05dfc94bce0b2f0b25a41ac76c8d22eee6
2023-01-12 09:03:38 +00:00

9 lines
No EOL
925 B
Text

- var featuresPageVariantNew = splitTestVariants && splitTestVariants['features-page'] && splitTestVariants['features-page'] === 'new'
- var newVariantSegmentation = {splitTest: 'features-page', splitTestVariant: 'new'}
- var defaultVariantSegmentation = {splitTest: 'features-page', splitTestVariant: 'default'}
if featuresPageVariantNew
p !{translate("get_most_subscription_by_checking_features", {}, [{name: 'a', attrs: {href: '/about/features-overview', 'event-tracking':'features-page-link', 'event-tracking-trigger': 'click', 'event-tracking-mb': 'true', 'event-segmentation': newVariantSegmentation}}])}
else
p !{translate("get_most_subscription_by_checking_premium_features", {}, [{name: 'a', attrs: {href: '/learn/how-to/Overleaf_premium_features', 'event-tracking':'features-page-link', 'event-tracking-trigger': 'click', 'event-tracking-mb': 'true', 'event-segmentation': defaultVariantSegmentation}}])}