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

Insert Google Tag Manager snippet in template #1811

Merged
merged 5 commits into from
Nov 2, 2023

Conversation

irisfaraway
Copy link
Member

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.

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.
@irisfaraway irisfaraway added the enhancement New feature or request label Oct 17, 2023
@irisfaraway irisfaraway self-assigned this Oct 17, 2023
@irisfaraway irisfaraway marked this pull request as ready for review October 26, 2023 13:30
Copy link
Collaborator

@jaucourt jaucourt left a 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?

{% 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>
Copy link
Collaborator

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

Copy link
Member Author

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!

Copy link
Collaborator

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!

Copy link

sonarqubecloud bot commented Nov 2, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@irisfaraway
Copy link
Member Author

Ticket created to remove Hapi Gapi code: https://eaflood.atlassian.net/browse/IWTF-3843

@irisfaraway irisfaraway requested a review from jaucourt November 2, 2023 14:47
@irisfaraway irisfaraway merged commit 1ff5e92 into develop Nov 2, 2023
3 of 4 checks passed
@irisfaraway irisfaraway deleted the feature/iwtf-3727-gtm branch November 2, 2023 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants