ComputerScienceHouse / ComputerScienceHouse/gallery

Add Google Analytics

オープン
#46 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
good first issue
主要言語
Python
スター
22
フォーク
30
平均マージ
2時間 26分
マージ済み PR(30日)
1

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。