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.
							parent
							
								
									b6741d9b10
								
							
						
					
					
						commit
						6a7daaf6c4
					
				|  | @ -62,24 +62,5 @@ | |||
|         <source src="media/busy.mp3" type="audio/mpeg" /> | ||||
|     </audio> | ||||
|     <audio id="remoteAudio"/> | ||||
|     <script> | ||||
|         if ( | ||||
|                 window.location.host === 'www.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(){ | ||||
|             (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','//www.google-analytics.com/analytics.js','ga'); | ||||
| 
 | ||||
|             ga('create', 'UA-54779209-2', 'auto'); | ||||
|             ga('send', 'pageview', window.location.pathname + window.location.search + window.location.hash); | ||||
|         } | ||||
|         else { | ||||
|             var ga = null; | ||||
|         } | ||||
|     </script> | ||||
|   </body> | ||||
| </html> | ||||
|  |  | |||
|  | @ -135,7 +135,6 @@ var onNewScreen = function(screen) { | |||
|         var hash = '#/' + screen; | ||||
|         lastLocationHashSet = hash; | ||||
|         window.location.hash = hash; | ||||
|         if (ga) ga('send', 'pageview', window.location.pathname + window.location.search + window.location.hash); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Matthew Hodgson
						Matthew Hodgson