ComputerScienceHouse / ComputerScienceHouse/gallery

Add Google Analytics

Open
#46 0 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Python
Stars
22
Forks
30
Avg merge
2h 26m
Merged PRs (30d)
1

Description

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.

```

window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-420696-9');

```

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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.