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

Remove GA4 tracking on 'print this page' buttons #3010

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Conversation

AshGDS
Copy link
Contributor

@AshGDS AshGDS commented Dec 11, 2023

What

Removes GA4 tracking on 'print page' buttons

Why

Pages affected

(Taken from #2513 )

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3010 December 11, 2023 11:28 Inactive
@AshGDS AshGDS requested a review from andysellick December 11, 2023 12:03
@AshGDS AshGDS changed the title Remove GA4 tracking on 'print page' buttons Remove GA4 tracking on 'print this page' buttons Dec 11, 2023
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.

All good, just one small non-blocking thing.

},
},
} %>
<%= render 'govuk_publishing_components/components/print_link', {} %>
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't need the curly braces, it can just be:

<%= render 'govuk_publishing_components/components/print_link' %>

(also in a few other places)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @andysellick - good spot, will fix this then merge 👍

We now have a tracker that tracks the browser print dialog, so we remove this tracking to prevent duplicate print events.
@AshGDS AshGDS force-pushed the ga4-remove-print-page branch from 6cb470a to 8b9682e Compare December 11, 2023 12:28
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3010 December 11, 2023 12:28 Inactive
@AshGDS AshGDS merged commit 7f19daa into main Dec 11, 2023
11 checks passed
@AshGDS AshGDS deleted the ga4-remove-print-page branch December 11, 2023 12:36
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