View Single Post
Old 08-11-2011, 05:17 PM
MountMe's Avatar
MountMe MountMe is offline
Join Date: Apr 2011
Posts: 4
Default Google Analytics and Adwords Integration

I know this has been discussed on other posts but I still have not found an answer to my problems.


I have placed my Google Analytics Web Property ID into the field under General

I am using WordPress to run our website and that is also including the google analytics script in the header.

In our analytics we see some of the virtual pages showing up:

/checkout/paymentDetails & /checkout/shippingDetails

This is great but we also want to track the confirmation page through goals which has never showed up in our tracking this a bug or is it not included on the orderConfirmation page?

We are also not getting any e-commerce tracking and have enabled that feature in our analytics.


Adwords requires a conversion code on the final orderConfirmation page. We found an article in this forum which points to this piece of code:

function googleConversion() {
    hash = document.location.hash;
    if (hash.indexOf('mode=orderConfirmation') > 0) {
      //Set vars
      var google_conversion_id = xxxxxxxx;
      var google_conversion_language = "en";
      var google_conversion_format = "2";
      var google_conversion_color = "ffffff";
      var google_conversion_label = "xxxxxxxx";
      var google_conversion_value = 0;

      //Do conversion
      var headID = document.getElementsByTagName("head")[0];
      var newScript = document.createElement('script');
      newScript.type = 'text/javascript';
      newScript.src = '';

pollTimer = setInterval(googleConversion, 100);
We use this code with our values instead of the xxxxxxx and placed it into our WordPress site. Nothing is being tracked!

What could be our 2 problems???????