Totally Zenned
- Join Date:
- Dec 2005
- Posts:
- 1,505
- Plugin Contributions:
- 2
Simple Google Analytics - Support
<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "[URL="https://ssl/"]https://ssl[/URL]." : "[URL="http://www./"]http://www.[/URL]"); document.write(unescape("%3Cscript src='" + gaJsHost + "[URL="http://google-analytics.com/ga.js"]google-analytics.com/ga.js[/URL]' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-xxxxxx-x"); pageTracker._initData(); pageTracker._trackPageview(); </script>gsdcypher:
Trying to read through this thread. I was trying to update to google analytics 1.2.2 in my cart 1.3.8a. Does the new ga.js code not work?
I have edited and changed some files and now I'm lost.
Also where does this code go????
>
> Thanks.
The ga.js code works, but GOOGLE has a glitch on their end which causes the ecommerce tracking to now work properly (missing data at random). So I suggest using the Urchin version until they fix the bug on their end.
You do not have to insert code as you indicated anywhere on the site.
All you have to do is insert one line (see step 3 of the install) into the tpl_main_page.php" page. That inserts the code automatically onto your pages in the proper location.
Don't forget to ad your tracking code in the Admin configuration.
In the code you show it still says "UA-xxxxx-x" and that is for sample purposes only. You need to add your tracking code in the Admin in order for that to be replaced with your own.