Configuration FAQ

How to set up Google Analytics?

How to set up Google Analytics on my website?

Answer:

In short, you need to register your website with Google Analytics, copy the JS code suggested by Google Analytics and paste it in your (master) template.

  1. Log in to the Google Analytics portal.
  2. Register your website if haven't yet.
  3. Click "Admin", then under "Property" select your website in the drop down list.
  4. Click "Tracking Info", then "Tracking Code".
  5. Copy the tracking JavaScript code.

The code will look like like this but with your own tracking ID:

<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-88088088-1', 'auto');
  ga('send', 'pageview');

</script>

Now that you have the code:

  1. Log in to the C1 Console of your website.
  2. From the "Layout" perspective, expand "Page Templates".
  3. Paste the code in a page template or a master template where necessary, for example, between <head></head>.

Note. You can paste the code in a master template, normally found under "Layout" / "Page Templates" / "Shared Code".