I wonder if someone could gently explain to me if I should use the new google analytics code previously mentioned... as the old code does still appear to be working.
I want to track 'conversions' and I have set up a 'goal' on google for /receipt.html.
Do I replace all the old code in
Design : Library > Google Analytics Markup > Google Analytics Tracking Code
With the new code below?
I want to track 'conversions' and I have set up a 'goal' on google for /receipt.html.
Do I replace all the old code in
Design : Library > Google Analytics Markup > Google Analytics Tracking Code
With the new code below?
Code:
<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', '<actinic:variable name="GoogleAnalyticsNumber" />']); _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>']); (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>
Comment