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

USWDS-Site - Feature: Add GTM code to USWDS #3057

Closed
2 tasks done
amycole501 opened this issue Jan 10, 2025 · 1 comment
Closed
2 tasks done

USWDS-Site - Feature: Add GTM code to USWDS #3057

amycole501 opened this issue Jan 10, 2025 · 1 comment
Assignees
Labels
Affects: Analytics Relates to analytics data Type: Feature Request New functionality

Comments

@amycole501
Copy link

Is your feature request related to a problem? Please describe.

In order to fully track specific engagement and other metrics we should add Google Tag Manager Code to the site. I don't think it's there, after reviewing the code.

Describe the solution you'd like

Paste this code as high in the of the page as possible:

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

Paste this code immediately after the opening tag:

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

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct

@amycole501 amycole501 added the Type: Feature Request New functionality label Jan 10, 2025
@github-actions github-actions bot added the Status: Triage We're triaging this issue and grooming if necessary label Jan 10, 2025
@amycole501 amycole501 added Affects: Analytics Relates to analytics data and removed Status: Triage We're triaging this issue and grooming if necessary labels Jan 10, 2025
@amycole501
Copy link
Author

Update: we have GTM on the site so I'll try to figure out what permissions need to be given so I can see the data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Affects: Analytics Relates to analytics data Type: Feature Request New functionality
Projects
Status: Done
Development

No branches or pull requests

2 participants