Main 7426 edit page add amend ga4#3314
Open
davidtrussler wants to merge 2 commits into
Open
Conversation
- enable GA4 on `accordion` component - add `data-attributes` to "Add new chapter" link
1b30d1f to
6bf2881
Compare
This file contains hidden or 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
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.
MAIN-7426
Adds the relevant tracking to the Edit page for Guide Editions. The addition of this page required tracking to be added to the accordion section controls as detailed in the Jira ticket and shown in the screenshots below.
Much of the tracking is already in place so this PR
Tracking can be tested locally with these steps:
document.querySelector('form').addEventListener('submit',function(e){e.preventDefault()})in the browser console. This will disable the form submission so that all data gathered from user interaction with the form, including submission, will be visible in the console.document.addEventListener('click',function(e){if(e.target.href)(e.preventDefault())})in the browser console. This will disable links from navigating away from the page so that all data gathered from user interaction with the form will be visible in the console.window.GOVUK.analyticsGa4.showDebug = truein the browser console. The browser console will then display the tracking data for all user interactions with the form (including submission) as they occur.