Skip to content

Commit c10b11a

Browse files
committed
Separate GA tracking ID for riot
1 parent a5ee48d commit c10b11a

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

‎vector/index.html‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@
5353
<script>
5454
if (
5555
window.location.host === 'www.vector.im' ||
56-
window.location.host === 'vector.im' ||
57-
window.location.host === 'www.riot.im' ||
58-
window.location.host === 'riot.im'
56+
window.location.host === 'vector.im'
5957
) {
6058
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
6159
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -65,6 +63,19 @@
6563
ga('create', 'UA-54779209-2', 'auto');
6664
ga('send', 'pageview', window.location.pathname + window.location.search + window.location.hash);
6765
}
66+
else if (
67+
window.location.host === 'www.riot.im' ||
68+
window.location.host === 'riot.im'
69+
) {
70+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
71+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
72+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
73+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
74+
75+
ga('create', 'UA-65410662-4', 'auto');
76+
ga('send', 'pageview');
77+
78+
}
6879
else {
6980
var ga = null;
7081
}

0 commit comments

Comments
 (0)