I know this has been discussed on other posts but I still have not found an answer to my problems.
PROBLEM 1:
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 results...is 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.
PROBLEM 2:
Adwords requires a conversion code on the final orderConfirmation page. We found an article in this forum which points to this piece of code:
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 = 'http://www.googleadservices.com/pagead/conversion.js';
headID.appendChild(newScript);
clearInterval(pollTimer);
}
}
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???????
PLEASE HELP!