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

I wanted to let you know that our conservancy is incredibly grateful for the logo design that you came up with for us. The process from beginning to end was very efficient and your responsiveness was greatly appreciated given our time constraints. The questionnaire was very helpful to streamline our vision, reducing the rounds of design review. We also appreciated the fact that you were able to take our comments and produce exactly what we were looking for. We feel that our new logo really represents our service area. With sincerest gratitude, Ellen

San Diego Habitat Conservancy