Support » Plugin: WooCommerce Google Analytics Integration » No transactions logged to GA

  • Resolved moketronics

    (@moketronics)


    May well be missing something obvious but hitting a bit of a wall trying to fix the issue.

    I’m seeing add to cart and checkout activity come through fine, but no actual transactions coming through into GA.

    Payments are processed through stripe and the user is sent back to /checkout/order-received/####/?key=wc_order_XXXXXXXXXXXX

    This page is logging to GA via the woocom plugin GA code, but no transaction info is appearing at all.

    It should be the standard confirmation page.

    I am using GTM elsewhere on the site, but have disabled GTM from firing GA in the ecom section of the site.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    Hey @moketronics, sorry for the delayed response.

    The Stripe plugin that you are using, is it the official WooCommerce Stripe plugin? You can tell by going to your Plugins tab and then finding the plugin in your list.

    The developer should be listed as WooCommerce like this:

    Image Link:https://cld.wthms.co/dq4PIl

    If it is, then there are two things to check. First is to make sure that you’ve properly set up the plugin. This includes both the settings in your Google Analytics account, and the plugin itself.

    You can find the setup guide here:
    https://docs.woocommerce.com/document/google-analytics-integration/#section-2

    Make sure in the plugin options, the following options are enabled:

    – Enable Standard Tracking
    – Purchase Transactions

    After properly completing all the setup steps, make sure the Google Analytics tags are loading on your order confirmation page. This can be done by using Google’s free Chrome extension found here:
    https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk

    Last thing would be to check your theme to make sure it’s not replacing the default checkout page template. To do this, you can temporarily switch to the default Twenty Twenty or Storefront them and then place an order.

    Let us know if any of that helps at all.

    moketronics

    (@moketronics)

    Thanks for the follow-up Phil.

    Yes, we are using the official Stripe plugin.

    I can confirm that Enhanced Ecommerce reporting is indeed enabled in GA.

    The Enable Standard Tracking setting is off. This isn’t working as expected. This is off right now but the GA snippet is definitely outputting to the page.

    Purchase transactions is checked.

    I tried doing a test purchase in twentytwenty and it did the same thing.

    I ran through a complete purchase and confirmed that the GA snippet continues to appear on the thank you page. The .add_to_cart_button click JS and subsequent ga send pageview also appear. It’s definitely logging page views of the order confirmation page.

    Is it correct that the order confirmation page is where the transaction details should be appearing before the pageview fires (or with an event)?

    Plugin Support Hari Shanker R

    (@harishanker)

    Automattic Happiness Engineer

    Hi @moketronics

    Thanks for following-up with us on this.

    The Enable Standard Tracking setting is off. This isn’t working as expected. This is off right now but the GA snippet is definitely outputting to the page.

    Can you temporarily enable it?

    You also mentioned that you have a separate GTM integration set up for your site. Would it be possible to temporarily turn it off/disable it, and see if that has any effect on your site?

    Is it correct that the order confirmation page is where the transaction details should be appearing before the pageview fires (or with an event)?

    That’s correct. The order confirmation page typically has the transaction details, and it is being tracked with an event as well. The problem here is that something is preventing that from showing up. Let’s try figuring out why this is happening.

    Let me know if you have any luck with this.

    Thanks!

    moketronics

    (@moketronics)

    Hi @harishanker

    I tested both enabling standard tracking and fully disabling GTM. This made no change to the problem I am experiencing.

    It seems not enabling standard tracking stops the main GA code from appearing outside of the ecom section of the site, but it continues to appear within the shop. Enabling this causes duplicate pageviews when GTM is enabled outside of the shop (as I have disabled analytics via GTM within the shop). With GTM disabled it simply tracks other pages of the site normally.

    As before, I get to the checkout order confirmation page and I see the woocom generated GA script higher up, then near the bottom it outputs the add to cart click listener, then fires the pageview into GA. Basically the exact same code that appears when browsing the shop.

    I do see product data in individual products. I do see checkout info being passed during checkout. But order conf has nothing about the order. This was true of both our custom theme and twentytwenty.

    Plugin Support Hari Shanker R

    (@harishanker)

    Automattic Happiness Engineer

    Hi @moketronics

    That’s odd.

    I can see that you’re using Stripe for testing transactions. Can you try placing a test transaction using some other gateway (like the BACS or check payment gateway)? Do you still see the same error?

    Additionally, you mentioned that you use the Stripe payment gateway for processing payments. Do you use our official Stripe integration? If not, can you try the same for processing the transaction?

    As for the reason behind the problems, I have a feeling that this is because there’s something within the plugin that’s blocking these transactions. I tried testing this locally and was able to get the transactions to be recorded within Google Analytics. Let us know the results of the tests with payment gateway switching. This might guide us in the right direction.

    I have a question though: Apart from Google Analytics and GTM, do you have any GA code inserted manually in your site – within the header/footer?

    Thanks @harishanker

    Yeah it’s super odd. In the last few days 2 transactions logged. We didn’t change anything. And that’s 2 of ~80 transactions that actually happened.

    We’re using the official plugin.

    Trying to work through some additional tests.

    Plugin Support Hari Shanker R

    (@harishanker)

    Automattic Happiness Engineer

    Hi @moketronics

    In the last few days 2 transactions logged. We didn’t change anything. And that’s 2 of ~80 transactions that actually happened.

    2 out of 80 transactions is far from ideal. Regarding the 2 transactions that were logged, were there anything that differentiated these transactions from the others?

    Would you also be able to try one of the built-in payment methods like BACS or the check payment gateway? When you do such a transaction, does that get recorded?

    Trying to work through some additional tests.

    If you could give us any additional inputs, it would be awesome. We would love to get to the bottom of this.

    Plugin Support Hari Shanker R

    (@harishanker)

    Automattic Happiness Engineer

    Hey @moketronics

    Just checking-in on this for you. Were you able to do those tests and get to the bottom of this?

    Since we haven’t heard from you in a while, I’m going to mark this topic as Resolved. Let us know if you keep running into troubles. You can either reply here to follow-up with the same problem, or create a new thread to report your troubles to us.

    All the best!

    Thanks for checking in @harishanker – I passed this off to some other folks internally to keep working on. I’ll check in with them and see if they’ve had any luck. Looks like they haven’t figured it out based on GA though.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.