alphagov / govuk_frontend_toolkit

❗️GOV.UK Frontend Toolkit is deprecated, and will only receive major bug fixes and security patches.
MIT License
403 stars 107 forks source link

Support cross domain event tracking #472

Closed steventux closed 5 years ago

steventux commented 5 years ago

https://trello.com/c/CbTYssq1/478-enable-cross-domain-tracking-for-cysp-govuk-sign-in-pages

Adds the ability to specify a trackerName option when calling trackEvent, this can be used to refer to a linked tracker (ie. a tracker used for cross domain analytics) which allows events to be sent to other departmental analytics accounts.

Adds the ability to override the default behaviour of sending a pageview when calling addLinkedTrackerDomain. This is useful when only events are required for cross domain tracking.