Emper0rr
member
Posts: 5
|
Hey guys, I'm trying to get my sales reported in the "Ecommerce" section of Google Analytics. In the page they have on how to set this up, they say I need to add this:
<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>
However, here's the problem: I use a common thank you page on my website. So my question is this: how do I take the information from their order through the E-junkie checkout process and send it to this tracker code? Any help is greatly appreciated!
# POSTED ON: October 8, 2009 @ 23:28 GMT -7
|