Google Analytics

More
11 years 10 months ago #36162 by pmich
Google Analytics was created by pmich
hello !!

In order to use Google Analytics, should we use :
1) the php tracking code that Google provides us (I have already inserted it in template's index.php)
2) activate the google analytics feature from your template which adds the following code in every page
Code:
<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-xxxxxxxx']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; ga.setAttribute('async', 'true'); document.documentElement.firstChild.appendChild(ga); })(); </script>

3) or use both of the these ???

Currently, in every page of my site, both of the script codes exist and run. Is this a problem ???

Thank you

Please Log in to join the conversation.

More
11 years 10 months ago #36177 by ivan.milic
Replied by ivan.milic on topic Google Analytics
What ever you want , you don't need double code.
The following user(s) said Thank You: pmich

Please Log in to join the conversation.

Time to create page: 0.532 seconds
Powered by Kunena Forum