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 Google Tag Manager to this app #704

Open
TheLief opened this issue Jul 6, 2023 · 2 comments
Open

Add Google Tag Manager to this app #704

TheLief opened this issue Jul 6, 2023 · 2 comments
Assignees

Comments

@TheLief
Copy link

TheLief commented Jul 6, 2023

What problem does your feature solve?

This feature will allow SDF to add Google GA4 to the client. We will be able to track engagement and setup custom events on these domains without require future development support.

What would you like to see?

Add this code into the tag on all pages
`

<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-KCNDDL3');</script> `

Add this code within the tag throughout the site:
`
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KCNDDL3" height="0" width="0" style="display:none;visibility:hidden"></iframe>

`

What alternatives are there?

Google 365 or Adobe Analytics but we are not using either of those platforms and GA4 is free

@janewang
Copy link
Contributor

@TheLief For certain pages, we may need to add do not track tags. In the past, ran into a vulnerability where seedphrase in the URL where grab by third party analytics app. Need to check the codebase and add do not track tags on the appropriate pages. Moving this to Lab v2 issues.

@janewang
Copy link
Contributor

janewang commented Oct 7, 2024

Do not track:

  • sign transaction
  • create account page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Blocked
Development

No branches or pull requests

3 participants