
Originally Posted by
jamesmcl515
We have installed the latest version of Simple Analytics (v1.2.2) and we still do not have ecommerce tracking showing in Google Analytics.
-We have installed and re-installed, but with no luck in getting ecommerce tracking.
-We have made sure that the profile in Google Analytics has been edited to turn on ecommerce tracking.
-All of the pages on our site have the tracking installed EXCEPT the order confirmation / thank you for your order page. This is where the eCommerce tracking code should be installed as per Google Analytics:
<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">
try {
var pageTracker = _gat._getTracker("UA-XXXXX-1");
pageTracker._trackPageview();
pageTracker._addTrans(
"1234", // Order ID
"Mountain View", // Affiliation
"18.28", // Total
"1.29", // Tax
"5", // Shipping
"San Jose", // City
"California", // State
"USA" // Country
);
pageTracker._addItem(
"1234", // Order ID
"DD44", // SKU
"T-Shirt", // Product Name
"Green Medium", // Category
"11.99", // Price
"1" // Quantity
);
pageTracker._trackTrans();
} catch(err) {}</script>