mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2024-12-24 04:02:34 +01:00
add Google Analytics
but I am still sure that every visitor who accidentally visits this site is wise and blocks them...
This commit is contained in:
parent
73a7fb858a
commit
eb87ff9cec
11
_includes/google_analytics.html
Normal file
11
_includes/google_analytics.html
Normal 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>
|
@ -15,6 +15,8 @@
|
||||
|
||||
{% include footer.html %}
|
||||
|
||||
{% include google_analytics.html %}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user