Discussions
Double Function Call with Google Analytics
This is one of those times that I wish I could delete a post. I did not do enough research before posting the question. (I thought I had)
Yes, both calls are required to make Google Analytics work properly.
-----------------------------------------------
On the order confirmation page, the function which accesses ga.js gets called twice.
My guess is the 2nd function definition overrides the 1st definition where the _trackPageview would be excluded.
Any thoughts?
<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-12345678-9']); _gaq.push(['_setDomainName', 'none']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? '