-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add GA4 accordion tracking to manuals #2514
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d934314
to
bf12e73
Compare
bf12e73
to
8314af9
Compare
8314af9
to
6c77bdd
Compare
6c77bdd
to
824f08d
Compare
824f08d
to
b1db951
Compare
b018d87
to
cd1d2c9
Compare
ee224ed
to
4b4499e
Compare
4b4499e
to
331ac86
Compare
331ac86
to
2ef39d6
Compare
andysellick
reviewed
Aug 15, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a small suggestion to clean the code slightly.
2ef39d6
to
e4201c3
Compare
andysellick
reviewed
Aug 15, 2022
Currently, the title string that is added to the data-ga4 title tag contains the manuals.updates_amendments I18N string, this is not stripped and is unwanted. This change adds a helper for sanitising the title string before being added to data-ga4. Tests are also added.
Currently, the I18N manuals.updates_amendments string is visible on the rendered page. This is because the GOV.UK visuallyhidden class has been replaced by the govuk-visually-hidden class. We need to replace the visuallyhidden class and update the appropriate tests.
e4201c3
to
3f631ae
Compare
andysellick
approved these changes
Aug 17, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Can we ensure we record some URLs where these accordions are shown?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We are currently working to complete the implementation of GA4 tracking on all accordions, across all frontend apps.
This PR adds tracking to the accordions on the following pages:
Example URL(s):
There are more example pages listed in the manuals publisher docs.
Also, in this PR is a bug fix. Currently, the I18N
manuals.updates_amendments
string is visible on the rendered page. This is because thevisuallyhidden
class has been replaced by thegovuk-visually-hidden
class. Thevisuallyhidden
class has been replaced and appropriate tests added.Co-authored-by: Graham Lewis <@gclssvglx>
Trello