Google Analytics

General questions about CMSimple
Post Reply
roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Google Analytics

Post by roze » Mon Feb 10, 2014 7:53 pm

I want to make a start with google analytics.

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>
In older post i've read to put this script between <head> and </head> in the template.

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..................
Is this the right method? How can I check this?

the url is http://www.praktijkdommelen.nl
Rob Zeijen,

Valkenswaard (NL)

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Google Analytics

Post by cmb » Mon Feb 10, 2014 10:19 pm

roze wrote:Is this the right method? How can I check this?
Yes, basically this is the right method to embed HTML on every page. You can check if it works by clearing your browser cache (the cookies), visiting the site and then inspecting the stored cookies. There will be several, amongst them _ga and __utma. And I suppose you can check that in the Google Analytics back-end by checking the visits.

I'm not sure about the state of the EU cookie directive in the Netherlands, but you may better check if Google Analytics is allowed there without any opt-in (or at least opt-out).
Christoph M. Becker – Plugins for CMSimple_XH

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: Google Analytics

Post by roze » Mon Feb 10, 2014 10:26 pm

Thankx for your feedback.
Rob Zeijen,

Valkenswaard (NL)

astermen234

Re: Google Analytics

Post by astermen234 » Fri May 16, 2014 6:03 am

Google Analytic s shows you how people found your site, how they explored it, and how you can enhance their visitor experience. With this information, you can improve your website return on investment, increase conversions, and make more money on the web. This guide can help you familiarize yourself with the main features of Google Analytic.

roze
Posts: 270
Joined: Tue Jun 03, 2008 7:13 am
Location: NL
Contact:

Re: Google Analytics

Post by roze » Fri May 16, 2014 8:58 am

astermen234 wrote: This guide can help you familiarize yourself with the main features of Google Analytic.
which guide?
Rob Zeijen,

Valkenswaard (NL)

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Google Analytics

Post by cmb » Fri May 16, 2014 10:09 am

roze wrote:which guide?
The spammer posted posted some standard introduction about Google Analytics, which apparently has or links to the mentioned guide. I don't know where to find this intro.
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply