TourCMS community

For users of the TourCMS tour operator ecommerce platform

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).

I have installed this script (as instructed on this page - http://www.google.co.uk/support/googleanalytics/bin/answer.py?hl=en...): 
<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?

Tags: Analytics, Conversion, Tracking

Views: 2

Reply to This

Replies to This Discussion

Hi Neil

"originally" only 4 tokens were supported in the JavaScript tracking code - but now they all are (from the next release) - so all things being equal, when you look at your Google stats next week, it should be working

Thanks. Alex
Many thanks, I wil keep an eye on it.

Thanks for sorting this out for me.

Cheers
Neil

RSS

© 2012   Created by TourCMS team.

Badges  |  Report an Issue  |  Terms of Service