Skip to content

Commit be6fbc2

Browse files
committed
let's stick with the vector-web GA target for riot-web
1 parent 93e4a04 commit be6fbc2

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

‎vector/index.html‎

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@
5353
<script>
5454
if (
5555
window.location.host === 'www.vector.im' ||
56-
window.location.host === 'vector.im'
56+
window.location.host === 'vector.im' ||
57+
window.location.host === 'www.riot.im' ||
58+
window.location.host === 'riot.im'
5759
) {
5860
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
5961
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -63,19 +65,6 @@
6365
ga('create', 'UA-54779209-2', 'auto');
6466
ga('send', 'pageview', window.location.pathname + window.location.search + window.location.hash);
6567
}
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-
}
7968
else {
8069
var ga = null;
8170
}

0 commit comments

Comments
 (0)