Skip to content

Commit 6a7daaf

Browse files
committed
remove GA, given it's increasingly useless given Riot/Desktop doesn't use it, plus it obviously has privacy implications. It may get re-added as opt-in in future, so we're not sailing entirely blind on how folks use the app, or we may switch to Piwik etc instead.
1 parent b6741d9 commit 6a7daaf

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

‎src/vector/index.html‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,5 @@
6262
<source src="media/busy.mp3" type="audio/mpeg" />
6363
</audio>
6464
<audio id="remoteAudio"/>
65-
<script>
66-
if (
67-
window.location.host === 'www.vector.im' ||
68-
window.location.host === 'vector.im' ||
69-
window.location.host === 'www.riot.im' ||
70-
window.location.host === 'riot.im'
71-
) {
72-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
73-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
74-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
75-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
76-
77-
ga('create', 'UA-54779209-2', 'auto');
78-
ga('send', 'pageview', window.location.pathname + window.location.search + window.location.hash);
79-
}
80-
else {
81-
var ga = null;
82-
}
83-
</script>
8465
</body>
8566
</html>

‎src/vector/index.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ var onNewScreen = function(screen) {
135135
var hash = '#/' + screen;
136136
lastLocationHashSet = hash;
137137
window.location.hash = hash;
138-
if (ga) ga('send', 'pageview', window.location.pathname + window.location.search + window.location.hash);
139138
}
140139
}
141140

0 commit comments

Comments
 (0)