I have a spinning head….i can not solve a problem.
We have put UA-code in Magento and it is seeable on frontend.
BUT….at some pc’s it is not shown in source????
Why??? People are on SAME IP. I do not know why Magento somethimes shows UA-code and sometimes not. We have problems with our reporst in Analytics now…
Please help me out….Thanks!
Jeroen
<script type="text/javascript" src="http://attributiontrackingga.googlecode.com/svn/trunk/distilled.FirstTouch.js"></script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXXXX-1']); _gaq.push(['_setDomainName', 'none']); _gaq.push(['_setAllowLinker', true]); asyncDistilledFirstTouch(_gaq); _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>
Is this correct usage? There are no JS errors and I can debug it line by line in Firebug.
]]>We are using MailChimp too for one of our clients and it’s linked with their Google Analytics account, but it’s more like a complement as like you said Ashley, it’s also for a global report for individual report.
Keep us posted about the extension!
]]>Just trying this, can’t seem to get it to work…ie results not coming through to Visitors -> Custom Variables.
I’ve given it more than a day since I made the changes. In view source I can see the js loading (in the Fooman mimify stuff) and, the correct line in the analytics code (modified the Fooman Ga.php).
Anything else I should check?
Cheers
]]>