As 2CO payment method has it's own completion routine, GA code isn't showing on 2CO's completion page. I made a patch, which resolves this bug in simpliest manner.

Comments

rszrama’s picture

This hack shouldn't be necessary. That's why the hook_ucga_display() was introduced:

/**
 * Implementation of hook_ucga_display().
 */
function uc_2checkout_ucga_display() {
  // Tell UC Google Analytics to display the e-commerce JS on the custom
  // order completion page for this module.
  if (arg(0) == 'cart' && arg(1) == '2checkout' && arg(2) == 'complete') {
    return TRUE;
  }
}

Do users end up at /complete or /finalize?

neochief’s picture

Ah, yes, I didn't noticed that it's a hook.

neochief’s picture

StatusFileSize
new803 bytes

Here's a patch for this.

neochief’s picture

StatusFileSize
new508 bytes

Heh, missed existing hook. Here's a new patch.

rszrama’s picture

Status: Needs review » Fixed

Committed.

neochief’s picture

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.