Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tracking Travel Advice links twice #2197

Merged
merged 1 commit into from
Aug 6, 2021
Merged

Conversation

kevindew
Copy link
Member

@kevindew kevindew commented Aug 6, 2021

There is a bug where these navigation links are sending two GA events
per click. This is occurring because the contents-list component has an
undocumented 1 feature of tracking links which was presumably not
known about when this code was changed to use this component 2.

The resolution for this is to remove the usage of track links on the nav
element and just use the components one.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

There is a bug where these navigation links are sending two GA events
per click. This is occurring because the contents-list component has an
undocumented [1] feature of tracking links which was presumably not
known about when this code was changed to use this component [2].

The resolution for this is to remove the usage of track links on the nav
element and just use the components one.

[1]: https://github.com/alphagov/govuk_publishing_components/blob/147a825fc7608eb3dfdaab0d418c5b2fdaaf08aa/app/views/govuk_publishing_components/components/docs/contents_list.yml
[2]: #1877
@bevanloon bevanloon temporarily deployed to government-f-fix-double-tlugem August 6, 2021 14:45 Inactive
Copy link
Contributor

@owenatgov owenatgov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me

@kevindew kevindew merged commit eb153ba into main Aug 6, 2021
@kevindew kevindew deleted the fix-double-link-tracking branch August 6, 2021 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants