hi guys

At tambourhinoceros.net we don't get any e-commerce tracking in analytics. Usual analytics works fine. How do I troubleshoot?

Have sold around 200 products since installing the module

Cheers,

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kristofferrom created an issue. See original summary.

Scott Robertson’s picture

The 1.x branch of this module no longer appears to work with the latest version of the Google Analytics module. I was receiving an error about the _gaq variable being undefined on the checkout completion page.

I'm currently trying out the 2.x branch with the GA Push module to see if it works better.

kristofferrom’s picture

Decided to test the same thing a couple of weeks ago, still no data flowing...

GeduR’s picture

Status: Active » Postponed (maintainer needs more info)

Have you checked with last versions of ga_push and commerce_google_analytics 2.x ? Turn on the debug option in the ga_push settings and add action to the rules to see if it is been triggered or not.

kristofferrom’s picture

Hi @GeduR

Yes, I'm running the latest version of both modules (server side).

Where's the debug option? Can't see it anywhere...

Thanks

GeduR’s picture

Path: /admin/config/system/ga-push

Attaching screenshot:

siva01’s picture

I have same problem. Google Analytics doesn´t receiving data.

I find only GA Push 1.x. On the module page is nothing like GA Push 2.x.

spencerthayer’s picture

I can confirm that when one is running latest version of both modules this module does not send any information to the Google Analytics Ecommerce. It is broken.

What more info does the developer need us to provide?

GeduR’s picture

Hi everyone, I need this information to help in fixing any problem you have:

- Add any additional rules action to the rule to be sure it is been invoked (As this module works over rules, first thing to know is if rules are been triggered or not)

/admin/config/workflow/rules/reaction/manage/commerce_google_analytics_rule_ga

Try changing the default action to paid in full for example, and be sure you are using some server side method like utmp-php

{ "commerce_google_analytics_rule_ga" : {
    "LABEL" : "Send google analytics code on (checkout completion) PAID in FULL",
    "PLUGIN" : "reaction rule",
    "OWNER" : "rules",
    "REQUIRES" : [ "commerce_google_analytics", "commerce_payment" ],
    "ON" : { "commerce_payment_order_paid_in_full" : [] },
    "DO" : [
      { "commerce_google_analytics_send_order" : { "commerce_order" : [ "commerce_order" ], "method" : "utmp-php" } }
    ]
  }
}

- Provide information about current rules configuration.
- Provide information about current ga_push configuration and version.
- Provide information about current commerce_google_analytics version.
- Provide information about current google_analytics configuration and version (be sure you are using the last one (universal).
- Active debug ga_push option and check log response after buying a product( if there is no log rules are not been triggered)
- Try executing manually the push to ga directly with ga_push api, and check it it is working: https://www.drupal.org/node/2362091
- Which payment method are you using?

Any kind of information that could be relevant will be appreciated, thanks!

aliiblack’s picture

Hi,

Has there been any update on this please? I am using Drupal for my university dissertation project and desperately need to show my transactions going through to GA.

Any help would be greatly appreciated.

GeduR’s picture

Please follow the steps in #9 comment, I need more info to know what I need to fix.

dpico’s picture

Hi GeduR!

Some information about my system:

- ga_push is version 7.x-1.0 and it is configured as UTMP-JS (client side)
- commerce_google_analytics is version 7.x-2.0-beta2
- google_analytics is 7.x-2.1 (universal)
- paying methods are sermepa credit cards, PayPal and bank transfer.

The GA Commerce rule is:

{ "commerce_google_analytics_rule_ga" : {
    "LABEL" : "Send google analytics code on checkout completion",
    "PLUGIN" : "reaction rule",
    "OWNER" : "rules",
    "REQUIRES" : [ "commerce_google_analytics", "rules", "commerce_payment" ],
    "ON" : { "commerce_payment_order_paid_in_full" : [] },
    "DO" : [
      { "commerce_google_analytics_send_order" : { "commerce_order" : [ "commerce_order" ], "method" : "utmp-php" } },
      { "mail" : {
          "to" : "david.pico.vila@gmail.com",
          "subject" : "La regla de Commerce GA se ha disparado.",
          "message" : "Pedido [commerce-order:order-id]",
          "language" : [ "" ]
        }
      }
    ]
  }
}

I'm receiving an email after an order is completed, so the rule is being triggered.

I'm not sure what you mean by "Active debug ga_push option". I've checked the standard Drupal log and there is no error message after an order is completed.

Thanks in advance for your help!
David

GeduR’s picture

Hi! You should use last version of ga_push and commerce_google_analytics modules. Also if you are sending the data in paid in full event then this is not compatible with sermepa and client-side (JS) method, as the sermepa callback doesn't execute javascript.

I recommend you to use last version of both modules and change the method to use UTMP PHP

jimmy_sebastian’s picture

Status: Postponed (maintainer needs more info) » Needs review
FileSize
7.23 KB

I have attached patch file for solving this issue.

Go to /admin/config/system/googleanalytics and select eCommerce Tracking Type is eCommerce tracking.

torgosPizza’s picture

Status: Needs review » Needs work

My only comment is that "transaction_id" is misspelled "transcaton_id" throughout the patch, so I don't think the patch will be committed as-is.

Also, there are whitespaces changes in the patch that are unnecessary - you might consider using the "ignore-whitespace" flag when running the diff.

Lastly, please confirm this patch is for the 1.1 version of the module and not the latest 2.x.

torgosPizza’s picture

FYI, we were also having an issue with e-commerce data not showing up anymore in GA. It just suddenly stopped reporting.

This seems to have been fixed after updating to latest versions of all modules (GA, GA Push, Commerce GA) and then reverting all of our Rules to their defaults, making sure of course that we're using UTMP-PHP.

IckZ’s picture

Version: 7.x-1.1 » 7.x-2.x-dev

Hey there,
I've also recognized that not every conversion is shown up in GA in the ECommere-Section since several days. It does not affect every single conversions but some are missing?

I've also set up a target conversion for the checkout-page in GA and the number of checkouts in the target-Section is higher than in ECommmerce targets however they have the same "goal"?

I did not had to update any module because they are all up2date. Also the three Rules
1.Send google analytics code when an order is first paid in full
2. Store google analytics extra user variables to order on checkout begin
and
3. Store google analytics session to order on checkout begin

are default.

siva01’s picture

I know, where is problem. Latest version of Google Analytics module using analytics.js library, like all pages in this century. But this module using old version of tracking code ga.js.

So Drupal send data, but to old Google Analytics library. Not to actual version of GA: Universal Analytics.

Test order code look like:

<script>_gaq.push(["_addTrans", "32", "McTREE.cz", "899", "0", "500", "Testov", "", "\u010cesk\u00e1 republika"]);_gaq.push(["_addItem", "32", "4260083460016", "NIVONA NICM 001", "\u017d\u00e1dn\u00e1 kategorie", "399", "1.00"]);_gaq.push(["_addItem", "32", "shipping", "Doprava s vynesen\u00edm do patra", "\u017d\u00e1dn\u00e1 kategorie", "500", "1.00"]);_gaq.push(["_trackTrans"]);</script>

GA Pus setting: Measurement Protocol (php): Measurement Protocol | server-side (universal analytics). But code above is old ga.js. All acutal pages using Universal analalytics with analytics.js code.

FiNeX’s picture

Same problem, in my case only 30% of sells are tracked on GA :-(

Jens Peter’s picture

No comments since oct. 2017?
I have the same problem - all modules updated and no data is being shared.

Anyone had success finding the error?