-
Notifications
You must be signed in to change notification settings - Fork 4
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
Insert Google Tag Manager snippet in template #1811
Conversation
https://eaflood.atlassian.net/browse/IWTF-3732 This PR adds the snippet for Google Tag Manager to the default layout. This snippet should only be inserted when the container ID is present.
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.
A few small comments. Also, I think we need a ticket to remove hapi-gapi from GAFL - would you mind creating this, please?
packages/gafl-webapp-service/src/handlers/__tests__/__snapshots__/page-handler.spec.js.snap
Outdated
Show resolved
Hide resolved
{% block bodyStart %} | ||
{% if gtmContainerId %} | ||
<!-- Google Tag Manager (noscript) --> | ||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{gtmContainerId}}" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> |
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.
Tiny point, but we don't need visibility:hidden
if there's already display:none
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.
This was the code Google provided so I'm wary of messing with it!
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.
Yeah, whoever wrote it doesn't understand CSS!
SonarCloud Quality Gate failed. 0 Bugs 100.0% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Ticket created to remove Hapi Gapi code: https://eaflood.atlassian.net/browse/IWTF-3843 |
https://eaflood.atlassian.net/browse/IWTF-3732
This PR adds the snippet for Google Tag Manager to the default layout. This snippet should only be inserted when the container ID is present.