it seems that yoursite.com/order/XX/thankyou page does not submit any data for ecommerce reports.

Comments

NecroHill’s picture

well, I added this to uc_sagepayserver.module and GA script appeared on thank you page footer, I am going to test this on live server and will post an update later.

/**
 * Implementation of hook_ucga_display().
 */
function uc_sagepayserver_ucga_display() {
  // Tell UC Google Analytics to display the e-commerce JS on the custom
  // order completion page for this module.
  if (arg(0) == 'order' && arg(2) == 'thankyou') {
    return TRUE;
  }
}
Deimos-dupe’s picture

Hi.

Was wondering if you had any update to this? I've added the same code to my site, but I'm not seeing any purchases appear in my stats. Any ideas?

Thanks.

NecroHill’s picture

there is no update so far, GA JS code appears on footer but it seems that Google Analytics does not receive any info...

OriginalSauce’s picture

Is this being looked into? This is quite an important part of the ecommerce tracking.

The tracking beacon is being sent but missing all the useful fields for ecommerce tracking.

thanks

leo pitt’s picture

I have not had time to look into this myself - but I wander if the analytics hook needs to be called at the point at which the module received confirmation from Sagepay, rather than the point at which the customer is returned to the site?

Deimos-dupe’s picture

Firebug tells me "pageTracker" is not defined.

Deimos-dupe’s picture

Is it an Ubercart version issue? Has anyone tested this with the latest version of Ubercart?

"Note that if you want to use this module with the 3.x version of Google Analytics, you will need to be on Ubercart 2.5 (once released), or the Ubercart dev, since this module needed to be upgraded to use the asynchronous Javascript code."

Deimos-dupe’s picture

The patch in comment 16 here http://drupal.org/node/922230 appears to fix it for me.

leo pitt’s picture

Status: Active » Closed (won't fix)

Marking as won't fix since this doesn't seem to be a uc_sagepayserver issue (http://drupal.org/node/922230)