1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-11-09 13:16:45 +00:00

Made analytics code a snippet.

This commit is contained in:
Markus Birth 2015-06-28 17:26:15 +02:00
parent c69590e17d
commit 73b88a181e
2 changed files with 11 additions and 10 deletions

10
_includes/analytics.html Normal file
View File

@ -0,0 +1,10 @@
<!-- BEGIN: Google Analytics -->
<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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-259868-12', 'auto');
ga('send', 'pageview');
</script>
<!-- END: Google Analytics -->

View File

@ -98,15 +98,6 @@
</section> </section>
</div> </div>
<!-- BEGIN: Google Analytics --> {% include analytics.html %}
<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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-259868-12', 'auto');
ga('send', 'pageview');
</script>
<!-- END: Google Analytics -->
</body> </body>
</html> </html>