ComputerScienceHouse / ComputerScienceHouse/gallery

Add Google Analytics

Ouverte
#46 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
good first issue
Langage dominant
Python
Étoiles
22
Forks
30
Merge moyen
2 h 26 min
PR mergées (30 j)
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
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

No file or test is named. First locate the gallery site's shared page template or entry point, then obtain the tracking code from an RTP or Webmaster and determine whether authenticated services expose the signed-in user ID. Done means Google Analytics tracking is included for the site and, where applicable, sessions are associated with CSH accounts.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
javascript
Domaine
analytics, web-dev
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
38/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.