Add Google Analytics

here people are probably even more likely to block this.
This commit is contained in:
Mikaela Suomalainen 2015-01-02 18:23:28 +02:00
parent b9d9e67307
commit a3d98f8b3c
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<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-40171169-6', 'auto');
ga('send', 'pageview');
ga(set, &uid, {{USER_ID}}); // Määritä käyttäjätunnus käyttämällä sisäänkirjautunutta käyttäjätunnusta.
</script>

View File

@ -15,6 +15,8 @@
{% include footer.html %} {% include footer.html %}
{% include google_analytics.html %}
</body> </body>
</html> </html>