summaryrefslogtreecommitdiff
path: root/xsl
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@gmail.com>2017-07-22 20:54:15 +0200
committerBenjamin Franzke <benjaminfranzke@gmail.com>2017-07-22 21:21:53 +0200
commit422c2bef31d103dfc04358930d14c3ab05e2b4c5 (patch)
tree797e20016b457f5a3c4d71ab3013a201861683fd /xsl
parent980a6434ac580fb0935baa0fe3243bdc6f56d6ff (diff)
downloadmutti-web-422c2bef31d103dfc04358930d14c3ab05e2b4c5.tar.gz
mutti-web-422c2bef31d103dfc04358930d14c3ab05e2b4c5.tar.bz2
mutti-web-422c2bef31d103dfc04358930d14c3ab05e2b4c5.zip
Add cookie based google analytics opt-out
Diffstat (limited to 'xsl')
-rw-r--r--xsl/layout.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/xsl/layout.xsl b/xsl/layout.xsl
index 5a09296..401671e 100644
--- a/xsl/layout.xsl
+++ b/xsl/layout.xsl
@@ -28,7 +28,7 @@
</meta>
</xsl:if>
<style><xsl:value-of select="$stylesheet"/></style>
- <script>if(navigator.userAgent.indexOf("Speed Insights")==-1){(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-103015031-1','auto');ga('set','anonymizeIp',true);ga('send','pageview');}</script>
+ <script>window.gap='UA-103015031-1';if(navigator.userAgent.indexOf("Speed Insights")==-1){if(document.cookie.indexOf('ga-disable-'+window.gap+'=true')>-1)window['ga-disable-'+window.gap]=true;(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-103015031-1','auto');ga('set','anonymizeIp',true);ga('send','pageview');}</script>
</head>
<body>
<header>