Google analytics.

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Nov 06, 2013 7:03 pm
Reply with quote
Report this post
Which way is the best to add google analytics script ?

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-zxxxxxxxx', 'odkryjslaskie.org');
  ga('send', 'pageview');

</script>
User avatar
Junior Boarder

GK User
Wed Nov 06, 2013 7:05 pm
Reply with quote
Report this post
You can paste google analytics ID code into template settings panel - there is a place to insert the ID.
User avatar
Moderator

GK User
Wed Nov 06, 2013 7:14 pm
Reply with quote
Report this post
Code: Select all
To jest kod śledzenia Universal Analytics dla tej usługi. Różni się on od klasycznego kodu śledzenia Google Analytics. Aby jak najlepiej z niego skorzystać, skopiuj i wklej ten kod na wszystkich stronach internetowych, które chcesz śledzić.


Google says that
Code: Select all
This is a Universal Analytics tracking code for this service. It differs from the classical Google Analytics tracking code. To make the best use of it, copy and paste this code on all web pages you want to track.


It will be enough to enter only ID ?
User avatar
Junior Boarder

GK User
Wed Nov 06, 2013 7:42 pm
Reply with quote
Report this post
Yes, only the ID is needed. Templates already uses current google analytics code wrapper.
User avatar
Moderator

GK User
Wed Nov 06, 2013 8:15 pm
Reply with quote
Report this post
Good. Tnx.
User avatar
Junior Boarder

GK User
Wed Nov 06, 2013 8:21 pm
Reply with quote
Report this post
Ok, closing the topic.
If You will have any other questions, feel free to post new forum threads.
User avatar
Moderator


cron