The latest info I can find on the new analytics code is 2007. My client's SEO wants the new code in the header rather than before the </body> tag where version 10 still puts it.
The existing analytics code is built into Actinic. It is slightly modified from the original code to track receipt.html.
Here is the new code:
Do I put the track page view detail here?:
Thank you for your help. If I have missed the solution elsewhere please point me to it. Thanks.
The existing analytics code is built into Actinic. It is slightly modified from the original code to track receipt.html.
Code:
<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> if (typeof(_gat) == 'object') { var pageTracker = _gat._getTracker("UA-xxxxxxx-1"); pageTracker._initData(); pageTracker._trackPageview(<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Receipt%22">"/receipt.html"</actinic:block>); } </script>
Code:
<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-xxxxxxx-1']); _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>
Code:
_gaq.push(['_trackPageview','<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Receipt%22">"/receipt.html"</actinic:block>']);
Comment