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 Analytics to LabCAS UI for NIST #188

Open
nutjob4life opened this issue Apr 3, 2024 · 2 comments
Open

Add Google Analytics to LabCAS UI for NIST #188

nutjob4life opened this issue Apr 3, 2024 · 2 comments
Assignees
Labels
🧙‍♀️enhancement New feature or request

Comments

@nutjob4life
Copy link
Member

🤔 Tell Us About the Feature

On 2024-02-12, @yuliujpl asked for a Google Analytics code to be added to the LabCAS UI for NIST. After some back-and-forth about who should own the code, @nutjob4life created one on 2024-02-28.

The code should be applied to the LabCAS UI for NIST.

🎇 What Solution You'd Like

Insert this code into the <head> for LabCAS UI for NIST:

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

  gtag('config', 'G-X0YH110WES');
</script>
@nutjob4life nutjob4life added the 🧙‍♀️enhancement New feature or request label Apr 3, 2024
@yuliujpl
Copy link
Collaborator

yuliujpl commented May 1, 2024

I have this javascript dynamically generated via the templates.html, should I switch it to statically in each of the html page?

@nutjob4life
Copy link
Member Author

@yuliujpl Google Analytics confirms "Receiving traffic in the past 48 hours" so I think it's fine.

Is there a commit we can link to close this issue?

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

No branches or pull requests

2 participants