I've made the trackingcode:
Code: Select all
<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-47932479-1', 'praktijkdommelen.nl');
ga('send', 'pageview');
</script>
Google says: Copy and paste it into the code of each page you want to track.
I've copied it in the template as said in this forum like this:
Code: Select all
<!DOCTYPE html>
<head>
<?php echo head();?><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-47932479-1', 'praktijkdommelen.nl');
ga('send', 'pageview');
</script>
</head>
<body id="tp_body" <?php echo onload();?>>
<!-- utf-8 check: äöü -->
etc etc..................
the url is http://www.praktijkdommelen.nl