Implement Google site tracking
Closed this issue · 3 comments
mbaudis commented
All pages/calls should be tracked. Google site tracking id: UA-572981-2
. Previous code:
<!-- Google -->
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-572981-2', 'auto');
ga('send', 'pageview');
</script>
<!-- End of Google -->
ptoussai commented
Added in 7a8577c
I also changed the sidebar links to be basic links. The reason is that using from next.js does not load a new page from the browser perspective. GA has a way to deal with this (tracking the history) but then possibly all sort of transitions will be tracked.
mbaudis commented
AFAIK o.k.; can track the hits on Google.