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

hitide-ui: Add Google Tag Manager to track Google Analytics #60

Closed
jamesfwood opened this issue Mar 27, 2024 · 1 comment · Fixed by #71
Closed

hitide-ui: Add Google Tag Manager to track Google Analytics #60

jamesfwood opened this issue Mar 27, 2024 · 1 comment · Fixed by #71
Assignees

Comments

@jamesfwood
Copy link
Contributor

FYI: the ESDIS analytics team provided the Google tag manager code for inclusion to all of our web interfaces:
Place in the section of the page:

           <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-WNP7MLF');</script>

Place right after the opening tag

           <noscript><iframe src=https://www.googletagmanager.com/ns.html?id=GTM-WNP7MLF
           height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

in addition:

please NOTE: if we want to track events on the page (i.e. user clicks on the page) we would need to define custom Event tracking tag in the GA system. We can/will ask ESDIS Metrics team to provide training to us on how to create custom tags.

@jamesfwood jamesfwood changed the title Add Google Tag Manager to track Google Analytics hitide-ui: Add Google Tag Manager to track Google Analytics Mar 27, 2024
@jamesfwood jamesfwood moved this to 📅 Todo in hitide-24.2 Apr 2, 2024
@jamesfwood
Copy link
Contributor Author

@jbyrne6 work with Sandra Cosic on this to know exactly what to do. I believe it needs to be different for UAT and OPS.

@jbyrne6 jbyrne6 moved this from 📅 Todo to ✏ In Progress in hitide-24.2 May 6, 2024
@github-project-automation github-project-automation bot moved this from ✏ In Progress to ✅ Complete in hitide-24.2 Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Complete
Development

Successfully merging a pull request may close this issue.

2 participants