Google Analytics and Prostores are a match made in heaven. But the most recent update has made installation a nightmare. But thankfully workable code has been devised and posted by users on the ProStores boards. This tutorial will lay out the steps to install the code.
**updated 3-24-11**
1. Save a baseline for your Header, Footer, and Order Confirmation pages! Remove any old Google Analytics code if its installed
2. Open the Header template and paste this code just before the </head> tag. Don’t forget to replace ACCOUNT NUMBER with your Google Analytics account number. Its usually in the format of UA-xxxxxxx-x. You can find it by going to google.com, signing in, clicking My Account, clicking Analytics, clicking Edit under the Settings column, and clicking Settings above and to the right of the dark grey “Main Website Profile Information” bar, on that page you will see your UA number.
3. Save and publish the Header template and open the Order Confirmation template. Copy and paste the code for the Order Confirm template in, remembering to replacing UA-xxxxxxx-x with your UA number.
4. Make sure that in your Google Analytics settings you have e-Commerce tracking turned on and the currency set to USD.
Purchase something from your site, the next day your purchase will show up.
<!-- Begin Google CODE -->
<ss:if test="$page.bodytemplate.name = 'orderconfirm'">
<ss:comment>do nothing</ss:comment>
<ss:else/>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'ACCOUNT NUMBER']);
_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>
</ss:if>
<!-- End Google CODE -->Install into the Order Confirm Template our ProStores Google Analytics E-Commerce Code
If you have any questions or problems please e-mail me at matt@onetakemedia.net. I’ll be happy to help.
Also, read the first three parts to my 4 part series on Advanced Google Analytics for ProStores
Part 1 – Google Analytics Filters – ProStores Setup
Part 2 – Google Analytics Goals
Part 3 – Advanced Segmentation
Part 4 – Custom Reporting – Coming Soon!
Pingback:ProStoires - What is Domain Trust and Authority » ProStores Tips and Tutorials - One Take Media
Pingback:Advanced Segmentation - ProStores Google Analytics Guide - 3 of 4 » ProStores Tips and Tutorials - One Take Media