RobertG:
I,ve installed Simple Google Analytics and also signed up. I have my UA numbers which are pasted on the zen cart admin Simple Google Analytics configuration page. although I have a green checkmark on one site I still have the ! mark on my second profile (i.e my site has 2 domains, one is tte.ca the other one is thetrailingedge.com) Im not getting any information, its been well over 2 days that I installed and signed in. Upon reading up on the
Google Analytics site and reading Getting Started with the Asynchronous Snippet, it tells me the following:
The Analytics snippet is a small piece of JavaScript code that you paste into your pages. It activates Google Analytics tracking by inserting ga.js into the page. To use this on your pages, copy the code snippet below, replacing UA-XXXXX-X with your web property ID. If you need to do more than basic page tracking, see the tracking reference for a list of methods available in the API and see the Usage Guide for details on using the asynchronous syntax. For step-by-step instructions on setting up tracking, see the Help Center article on setting up tracking.
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Am I suppose to enter this and if so where do I put it, Please advise.
P.S. I followed the install information to a tee.
Thanks,
If you are using Simple Google Analytics you do NOT need to follow any instructions on the Google site. It's all done for you in the contribution already (placement of code, etc...). Only follow the instructions that are found in the Simple GA readme file.
All you have to do is insert your GA tracking ID in the proper location within the Zen Cart admin, select the type of tracking you want and you're all set.
Do NOT paste any code that Google says to anywhere within your site if you have the Simple Google Analytics mod installed.
I looked at your site (from the above post) and you've got multiple tracking codes, and multiple tracking types on the page.
The header as the Async tracking code with one Google Analytics ID and then the footer has the ga.js version of the tracking code in place with a totally different tracking id.
These will conflict with each other.
You need to pick one or the other, and then only use the tracking id that is designated for your specific url. Do not put both in place.
So what you'll need to do is find out which code you inserted yourself (that was not inserted through the Simple GA contribution and then remove that tracking (only leave the Simple GA in place.)
Confirm your tracking id matches that of the site you are trying to "verify" from within your GA account and you're all set.