Merge pull request #22025 from overleaf/jel-click-event-interstitial-plans

[web] Add trigger attribute so that event is recorded

GitOrigin-RevId: 15e42297efca9d155442ed4aacbdbf1f4a35e074
This commit is contained in:
Jessica Lawshe
2024-12-11 10:33:25 -06:00
committed by Copybot
parent e99352df3e
commit 15f8e07257
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -117,7 +117,7 @@ mixin linkUniversities(linkText, linkClass)
a(href=(settings.siteUrl ? settings.siteUrl : '') + "/for/universities" class=linkClass ? linkClass : '')
| #{linkText ? linkText : 'universities'}
mixin linkWithArrow({text, href, eventTracking, eventSegmentation})
a.link-with-arrow(href=href event-tracking=eventTracking event-segmentation=eventSegmentation)
mixin linkWithArrow({text, href, eventTracking, eventSegmentation, eventTrackingTrigger})
a.link-with-arrow(href=href event-tracking=eventTracking event-segmentation=eventSegmentation, event-tracking-trigger=eventTrackingTrigger event-tracking-mb)
| #{text}
i.material-symbols(aria-hidden="true") arrow_right_alt
@@ -68,7 +68,8 @@ block content
text: translate("continue_with_free_plan"),
href: skipLinkTarget,
eventTracking: 'skip-button-click',
eventSegmentation: {location: 'interstitial-page'}
eventSegmentation: {location: 'interstitial-page'},
eventTrackingTrigger: 'click'
})
!= moduleIncludes("contactModalGeneral-marketing", locals)