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 #113

Open
devinmatte opened this issue Apr 29, 2019 · 0 comments
Open

Add Google Analytics #113

devinmatte opened this issue Apr 29, 2019 · 0 comments

Comments

@devinmatte
Copy link
Member

Add Google Analytics tracking

RTPs and Webmasters all have access to Google Analytics, it would be great to add additional sites to those stats so we can see what services are the most used within CSH.

Please ask an RTP or Webmaster for a tracking code and add the tracking to the site.

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

  gtag('config', 'UA-420696-9');
</script>

Additionally we can also add a tag to associate sessions with CSH accounts on services that require auth by adding:

gtag('set', {'user_id': 'matted'}); // Set the user ID using signed-in user_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants