mirror of https://github.com/vector-im/riot-web
let's stick with the vector-web GA target for riot-web
parent
93e4a04118
commit
be6fbc2432
|
@ -53,7 +53,9 @@
|
||||||
<script>
|
<script>
|
||||||
if (
|
if (
|
||||||
window.location.host === 'www.vector.im' ||
|
window.location.host === 'www.vector.im' ||
|
||||||
window.location.host === 'vector.im'
|
window.location.host === 'vector.im' ||
|
||||||
|
window.location.host === 'www.riot.im' ||
|
||||||
|
window.location.host === 'riot.im'
|
||||||
) {
|
) {
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
@ -63,19 +65,6 @@
|
||||||
ga('create', 'UA-54779209-2', 'auto');
|
ga('create', 'UA-54779209-2', 'auto');
|
||||||
ga('send', 'pageview', window.location.pathname + window.location.search + window.location.hash);
|
ga('send', 'pageview', window.location.pathname + window.location.search + window.location.hash);
|
||||||
}
|
}
|
||||||
else if (
|
|
||||||
window.location.host === 'www.riot.im' ||
|
|
||||||
window.location.host === 'riot.im'
|
|
||||||
) {
|
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
||||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
||||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
|
||||||
|
|
||||||
ga('create', 'UA-65410662-4', 'auto');
|
|
||||||
ga('send', 'pageview');
|
|
||||||
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
var ga = null;
|
var ga = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue