Drupal: Ubercart Google Analytics module doesn't work with the latest Google Analytics module

Written on March 31, 2011 by Tim Johnson

Recently we noticed that Google Analytics for Ubercart stopped working. It turns out that the current Google Analytics for Ubercart module uses non-asynchronous tracking while the Google Analytics 3.x module now uses asynchronous tracking.  Thanks to the awesome Drupal community there is a simple patch that fixes the problem.  

You can download the patch here or find it in the issue page along with more details about the patch at Drupal.org here.  

Don’t know how to patch Drupal? Check out the guide on their website here.

Tim Johnson
Web Developer
The 2010 graduate of Cal Poly Pomona already has a roster of projects to his name and has grown from padawan to pro in record time, demonstrating programming skills with speed beyond his years.

Patch doesn't work for me

Hello Tim,

I apply this patch but I can't see transactions in Google Analytics dashboard.

Ecommerce tab still at 0€ and don't track any sales !

Do you have some explanation about that ?

(I'm actually on Drupal 6.x and use Ubercart 6.x-2.4)

Thanks a lot for your help.

Rizvane.

JS Compression

I have seen JS file compression prevent Google Analytics from working before, maybe that is the issue?

The setting is at /admin/settings/performance

Post new comment

The content of this field is kept private and will not be shown publicly.
Image CAPTCHA
Enter the characters shown in the image.

Testimonial

We started off with the goal of creating a national brand for LiveBattle USA, but to begin with all we had were these sophisticated toy guns and our far-reaching ideas. You've rapidly and cost-effectively created a true national brand - everyone we've presented it to says it's insanely great, and it's earning us respect in the marketplace. I'm ecstatic about the work you've done to get us here, with the image and credibility we need to grow our company on the national stage.

Andrew Duggan, LiveBattle USA