Browse Source

refactor: removed Google Analytics

Kristian Vos 5 years ago
parent
commit
759660d390
3 changed files with 1 additions and 13 deletions
  1. 0 1
      frontend/.eslintrc
  2. 0 8
      frontend/dist/index.tpl.html
  3. 1 4
      frontend/main.js

+ 0 - 1
frontend/.eslintrc

@@ -21,7 +21,6 @@
 	"globals": {
 		"lofig": "writable",
 		"grecaptcha": "readonly",
-		"ga": "readonly",
 		"moment": "readonly"
 	},
 	"rules": {

+ 0 - 8
frontend/dist/index.tpl.html

@@ -41,14 +41,6 @@
 	<script type='text/javascript' src='/vendor/can-autoplay.min.js'></script>
 	<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js" integrity="sha256-yr4fRk/GU1ehYJPAs8P4JlTgu0Hdsp4ZKrx8bDEDC3I=" crossorigin="anonymous"></script>
 	<script type='text/javascript' src='/lofig.min.js'></script>
-	<script>
-		(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-93460758-1', 'auto');
-	</script>
 </head>
 <body>
 	<div id="root"></div>

+ 1 - 4
frontend/main.js

@@ -153,10 +153,7 @@ router.beforeEach((to, from, next) => {
 	}
 });
 
-router.afterEach(to => {
-	ga("set", "page", to.path);
-	ga("send", "pageview");
-});
+// router.afterEach(to => {});
 
 // eslint-disable-next-line no-new
 new Vue({