What is Google Analytics
Google Analytics is a reporting software which shows you how people found your site, how they explored it, and how you can enhance their visitor experience. It provides powerful tracking for websites. It's one of the most powerful web analytics solutions. It provides in-depth reports for everyone involved in the running of a website, from the developers and designers to the marketing and management teams.
Google Analytics supports a client-side data collection technique for capturing e-commerce transactions. With some simple additions to a couple of pages in your SuperSite, Google Analytics can automatically detect and record transaction and product information.
How to track e-commerce transactions on my SuperSite via Google Analytics?
Google Analytics can be integrated with your SuperSite by modifying a couple of pages as mentioned below:
I] Modifying the root.html file
II] Modifying the complete_payment.html file
<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">
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._initData();
pageTracker._trackPageview();
</script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-xxxx-x";
urchinTracker();
</script>
<form style="display:none;" name="utmform">
<textarea id="utmtrans">
<#tag:new_google_analytics_receipt /#>
</textarea>
</form>
<script type="text/javascript">
__utmSetTrans();
</script>
<form style="display:none;" name="utmform">
<textarea id="utmtrans">
<#tag:google_analytics_receipt /#>
</textarea>
</form>
<script type="text/javascript">
__utmSetTrans();
</script>