View Single Post
Old 08-12-2011, 10:14 AM
Eugene Rimmer's Avatar
Eugene Rimmer Eugene Rimmer is offline
Senior Member
Join Date: Jan 2011
Location: Ecwid headquarters
Posts: 7,765

Originally Posted by MountMe View Post
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???????

There are /checkout/placeOrder and /checkout/orderPlaced virtual pages reported by Ecwid to Google analytics, I can perfectly see them in the content drilldown of my Analytics account for my test shop. Please, see if they appear in your account.

The problem with JS code can be solved if I can see the exact page where you have used it.