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 in details.js #1962

Merged
merged 2 commits into from
Mar 8, 2021
Merged

Fix tracking in details.js #1962

merged 2 commits into from
Mar 8, 2021

Conversation

alex-ju
Copy link
Contributor

@alex-ju alex-ju commented Mar 8, 2021

What

Fix tracking in details.js

Why

TrackClick (provided by static) was recently replaced with GemTrackClick (provided by govuk_publishing_components) after the analytics scripts have been ported from static to govuk_publishing_components. This instance has been missed at that point, which causes JS to crash on certain pages across GOV.UK.

Visual Changes

This issues has been reported by @ChrisBAshton as the JS crash stopped the video render script in government-frontend

BeforeAfter
Screenshot 2021-03-08 at 13 03 10 Screenshot 2021-03-08 at 13 03 29

`TrackClick` (provided by static) was recently replaced with `GemTrackClick` (provided by govuk_publishing_components) after the analytics script have been ported from static to govuk_publishing_components. This instance has been missed at that point, which causes JS to crash on certain pages across GOV.UK
@bevanloon bevanloon temporarily deployed to govuk-publis-fix-bespok-uesf85 March 8, 2021 13:06 Inactive
Copy link
Contributor

@andysellick andysellick left a comment

Choose a reason for hiding this comment

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

Looks good. I'd squash the two commits together, since they relate to each other.

@alex-ju alex-ju merged commit ab6e01d into master Mar 8, 2021
@alex-ju alex-ju deleted the fix-bespoke-details-tracking branch March 8, 2021 13:39
alex-ju added a commit that referenced this pull request Mar 8, 2021
## 24.4.1

* Fix tracking in `details.js` ([PR #1962](#1962))
@alex-ju alex-ju mentioned this pull request Mar 8, 2021
This was referenced Mar 9, 2021
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.

4 participants