hi guys,
i have just integrated conversion tracking into the "thank you" page of my clients shopping cart. i have tested the code on a test page with test variables and it seems to go through to google fine. however, uploading the live page we are not getting any results (however there ARE sales occurring).
my code is as follows (coldfusion MX7)...
one thing i am wondering is that because we use a third-party payment processor (eg. the customer leaves the site to input credit card) whether the tracking process in interupted or stopped completely?
any help would be really appreciated.
mike
i have just integrated conversion tracking into the "thank you" page of my clients shopping cart. i have tested the code on a test page with test variables and it seems to go through to google fine. however, uploading the live page we are not getting any results (however there ARE sales occurring).
my code is as follows (coldfusion MX7)...
Code:
<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-xxremovedxx-1");
pageTracker._initData();
pageTracker._trackPageview();
<cfoutput>
pageTracker._addTrans(
"#order_id#", // Order ID
"", // Affiliation
"#numberFormat(getProducts.currency_value, "_.__")#", // Total
"", // Tax
"#numberFormat(getProducts.freight_price, "_.__")#", // Shipping
"#getBillingInfo.billing_city#", // City
"#getBillingInfo.billing_state#", // State
"#billing_country.countries_name#" // Country
);
<cfloop from="1" to="#arrayLen(arrBasket)#" index="Request.idx">
pageTracker._addItem(
"#order_id#", // Order ID
"#arrBasket[Request.idx][1]#", // SKU
"#arrBasket[Request.idx][2]#", // Product Name
"", // Category
"#numberFormat(arrBasket[Request.idx][3], '_.__')#", // Price
"#arrBasket[Request.idx][4]#" // Quantity
);
</cfloop>
</cfoutput>
pageTracker._trackTrans();
</script>any help would be really appreciated.
mike
>> read the main forum post




Add Your Comment
Follow-up comment rss or Leave a TrackbackLeave A Reply