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

Add GA4 developer guide #3919

Merged
merged 2 commits into from Mar 15, 2024
Merged

Add GA4 developer guide #3919

merged 2 commits into from Mar 15, 2024

Conversation

andysellick
Copy link
Contributor

What

Add a developer guide for GA4. Also separate the consent stuff out into its own page (so we can link to it more easily from the implementation record).

Why

There's some developer confusion around making changes to code containing tracking, this aims to improve understanding.

Visual Changes

None.

@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3919 March 15, 2024 09:35 Inactive
@andysellick andysellick requested a review from AshGDS March 15, 2024 09:36
@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3919 March 15, 2024 09:36 Inactive
Copy link
Contributor

@AshGDS AshGDS left a comment

Choose a reason for hiding this comment

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

Nice, LGTM 👍 Non-blocking but I did find the index_section and index_section_count definitions a bit hard to understand. Maybe it's worth rewording them. It might be worth providing a more visual example? For example <h2> elements are usually what determine our sections, so maybe if we had some HTML in the doc that shows a couple sections and then the GA4 attributes they have.

@govuk-ci govuk-ci temporarily deployed to components-gem-pr-3919 March 15, 2024 12:35 Inactive
@andysellick
Copy link
Contributor Author

Thanks @AshGDS, good feedback. I'm keen to get this right before merging, so have rewritten that section slightly and added an example. Is it any clearer? Is this a good enough example?

Copy link
Contributor

@AshGDS AshGDS left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@andysellick andysellick merged commit bb285e7 into main Mar 15, 2024
10 checks passed
@andysellick andysellick deleted the ga4-docs branch March 15, 2024 12:57
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.

None yet

3 participants