Skip to content

Commit 0c9356e

Browse files
committed
Add cookieless Google Analytics
1 parent 8458682 commit 0c9356e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

fingerprint.min.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

+16
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,21 @@
6161
<a href="https://www.facebook.com/lucompsoc"><img src="img/lucss-logo.svg" alt="Lancaster University Computer Science Society"></a>
6262
</div>
6363
</div>
64+
65+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-162782444-1"></script>
66+
<script src="fingerprint.min.js"></script>
67+
<script>
68+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
69+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
70+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
71+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
72+
73+
ga('create', 'UA-162782444-1', {
74+
'storage': 'none',
75+
'clientId': new Fingerprint().get()
76+
});
77+
ga('set', 'anonymizeIp', true);
78+
ga('send', 'pageview');
79+
</script>
6480
</body>
6581
</html>

0 commit comments

Comments
 (0)