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

Public Sans - Bug: Fix G4 tracking code #322

Open
2 tasks done
amycole501 opened this issue Oct 18, 2024 · 1 comment
Open
2 tasks done

Public Sans - Bug: Fix G4 tracking code #322

amycole501 opened this issue Oct 18, 2024 · 1 comment
Assignees
Labels
Needs: Confirmation We need to confirm that this is an issue Status: Triage We're triaging this issue and grooming if necessary Type: Bug A problem in the code

Comments

@amycole501
Copy link

Describe the bug

Below is the G4 tracking code that needs to be placed on the Public sans website. Place the code right AFTER the HTML element. (use this resource for more info)

<script async src="https://www.googletagmanager.com/gtag/js?id=G-HBYXWFP794"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', ' gtag('config', 'G-HBYXWFP794'); </script>

Steps to reproduce the bug

Currently the above mentioned code is not on the site as far as I can tell. Furthermore, the code that IS on the site is not in the correct place.

  1. Go to public sans
  2. View page source
  3. Note that the only google code on the page is at the very bottom. And it's not G4 tracking code.
--   | <script async src="https://www.googletagmanager.com/gtag/js?id=UA-47271808-2"></script>   | <script>   | window.dataLayer = window.dataLayer \|\| [];   | function gtag(){dataLayer.push(arguments);}   | gtag('js', new Date());   |     | gtag('config', 'UA-47271808-2');

Expected Behavior

The code should be placed right after the element for proper tracking.

Related code

No response

Screenshots

No response

System setup

No response

Additional context

No response

Code of Conduct

@amycole501 amycole501 added Needs: Confirmation We need to confirm that this is an issue Type: Bug A problem in the code labels Oct 18, 2024
@github-actions github-actions bot added the Status: Triage We're triaging this issue and grooming if necessary label Oct 18, 2024
@amycole501
Copy link
Author

This needs to be fixed ASAP.
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Confirmation We need to confirm that this is an issue Status: Triage We're triaging this issue and grooming if necessary Type: Bug A problem in the code
Projects
Status: No status
Development

No branches or pull requests

2 participants