diff options
author | Benjamin Franzke <benjaminfranzke@gmail.com> | 2017-07-22 20:13:09 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@gmail.com> | 2017-07-22 20:13:09 +0200 |
commit | 980a6434ac580fb0935baa0fe3243bdc6f56d6ff (patch) | |
tree | a7adec754cc36f1ac2097db5335644e58afd714c /xsl | |
parent | 295d232b4470f4597763c11b448ff513b58976e3 (diff) | |
download | mutti-web-980a6434ac580fb0935baa0fe3243bdc6f56d6ff.tar.gz mutti-web-980a6434ac580fb0935baa0fe3243bdc6f56d6ff.tar.bz2 mutti-web-980a6434ac580fb0935baa0fe3243bdc6f56d6ff.zip |
Move analytics into the header
Diffstat (limited to 'xsl')
-rw-r--r-- | xsl/layout.xsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xsl/layout.xsl b/xsl/layout.xsl index ac742f0..5a09296 100644 --- a/xsl/layout.xsl +++ b/xsl/layout.xsl @@ -28,6 +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> </head> <body> <header> @@ -87,7 +88,6 @@ <br/> <a href="imprint{$suffix}">Impressum</a> </footer> - <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> </body> </html> </xsl:template> |