I' trying to get a bit more sophisticated with my conversion tracking in Google analytics and install full e-commerce tracking code on the conversion page (step 5 of the booking engine).
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-XXXXXX-X"); !YES I HAVE CHANGED THIS to my own ID!
pageTracker._initData();
pageTracker._trackPageview();
pageTracker._addTrans(
"%b_id%", // Order ID
"%agent_name%", // Affiliation
"%total_price%", // Total
"0.00", // Tax
"0.00", // Shipping
"%primary_contact_city%", // City
"%primary_contact_county%", // State
"%primary_contact_country%" // Country
);
pageTracker._addItem(
"%b_id%", // Order ID
"%t_id%", // SKU
"%t_name_web%", // Product Name
"%t_name_internal%", // Category
"%t_price%", // Price
"%customers_total%" // Quantity
);
pageTracker._trackTrans();
} catch(err) {}</script>
When a customer hits the conversion page it appears the %b_id% token is working but the remaining tokens are not generating the required values. See below:
span class="start-tag">script type="text/javascript">try {
var pageTracker = _gat._getTracker("UA-XXXXXX-X");
pageTracker._initData();
pageTracker._trackPageview();
pageTracker._addTrans(
"619", // Order ID
"%agnet_name%", // Affiliation
"%total_price%", // Total
"0.00", // Tax
"0.00", // Shipping
"%primary_contact_city%", // City
"%primary_contact_county%", // State
"%primary_contact_country%" // Country
);
pageTracker._addItem(
"619", // Order ID
"%t_id%", // SKU
"%t_name_web%", // Product Name
"%t_name_internal%", // Category
"%t_price%", // Price
"%customers_total%" // Quantity
);
pageTracker._trackTrans();
} catch(err) {}</script>
Any ideas why the tokens are not working?