Users that upgrade to Universal Analytics for Google Analytics lose the ability to downgrade and as a result Ubercart Google Analytics stops working for Drupal 6. This was fixed for Drupal 7 in #2172425: New Google Analytics code support (Universal Analytics or analytics.js) and there is currently a backport open for D8. I submitted the patch to that thread, but just realized this probably needs to be its own issue so that it can be moved into the D6 branch. So, this is a request to apply this patch to D6 so that users have the ability to upgrade to Universal Analytics and so that their commerce tracking does not break.

Comments

ivanstegic’s picture

And actually, I had to reroll.

longwave’s picture

Status: Active » Needs review
hanoii’s picture

Issue summary: View changes
bsnodgrass’s picture

Actively working on an issue at a client site, Universal Analytics is enabled on the GA property, Core 6.34, google_analytics-6.x-4.1, ubercart-6.x-2.14. This patch has been applied and still no ecommerce tracking.

Does this patch need to be applied to the dev version or should it work on ubercart-6.x-2.14?
What is the best method to debug?

Any suggestions?

MakeOnlineShop’s picture

Any update on this ? Thank you.

tr’s picture

Status: Needs review » Needs work

The "update" is, if you want this feature, you should test the patch in #1 and report here whether it works for you or not. If it doesn't work, someone (you?) will have to fix the patch and re-post it.

Based on #4, this patch still needs work.

lukedekker’s picture

Status: Needs work » Needs review

The patch did not apply cleanly, so I had to manually apply some of the changes. After fully applying the patch, transactions were properly being sent to GA.

I don't know why it worked for me and not for @bsnodgrass.

UC 6.x-2.14, GA 6.x-4.1

tr’s picture

Can you re-roll the patch so that it will apply, and post it here?

longwave’s picture

StatusFileSize
new3.02 KB

I cleaned up the comments and logic a little but otherwise this should work the same.

royerd’s picture

My old D6 site using Ubercart quit tracking the sales of products after I updated to the latest Ubercart release. I even tried the DEV version but it still would not track the sales even though it was tracking normally for from traffic on the site.

I had to look up how to install a patch, but once I did that I used the patch in #11 above. When I ran the patch command it either couldn't find the relevant directory, or by design it prompted me to type in the file I was patching.

I did that, the patch showed up when I inspected the file, and I soon got a sale after that and noted that now the commerce is tracking as it should.

thanks to all . . . .

Dan

longwave’s picture

Status: Needs review » Reviewed & tested by the community

RTBC as per #12, will commit this later today.

longwave’s picture

Status: Reviewed & tested by the community » Fixed

Committed #11.

  • longwave committed 1d4286d on 6.x-2.x authored by ivanstegic
    Issue #2343767 by ivanstegic, longwave: Apply back ported patch to...

Status: Fixed » Closed (fixed)

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