Support » Plugin: WooCommerce Google Analytics Integration » attributes difference between addtocart and purchase

  • Resolved amauryt

    (@amauryt)


    Hello,

    I am using this plugin with a Google Analytics 4 Measurement ID.

    All is working fine, but something is bothering me and it may be a bug ?

    When someone add a product to card let say a T-shirt “name1” blue XL,
    The report say that the product “name1” has been added 1 time to the cart. (that is totally fine, I don’t want any distinction between color and size)

    But, if that same product is then purchased, the report say that the product “name1” in blue and XL have been purchased.

    So at the end there is in the report :
    “name1” : addtocart: 1 / purchased: 0
    “name1 – blue, XL” : addtocart: 0 / purchased: 1

    Hope you can help me.
    BR

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support lionel.a11n

    (@lioneldaniel)

    Hello @amauryt,

    In order to help you troubleshoot, could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response. You can use a service like https://pastebin.com/ as well.

    We look forward to hearing back from you. Thanks!

    Thread Starter amauryt

    (@amauryt)

    hello @lioneldaniel

    Thank you for your reply.

    Status is here :
    https://pastebin.com/u8c1b2rn

    BR

    Plugin Support Felipe (a11n)

    (@felipea8c)

    Hi there!

    Thank you for the SSR!

    First, can you confirm if that happens with all products?

    If so, I believe that it might be happening because of a conflict with your theme or with another plugin.
     
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.`

    Thread Starter amauryt

    (@amauryt)

    Hello @felipea8c, @lioneldaniel,

    Well thanks for your reply, but your solution implies doing lot’s of addtocart and purchase that will pollute the google analytics reports.

    No clue why this is happening? I can’t be the only one.
    What is normally the right thing that should appear in the report ?

    Thanks in advance
    BR

    Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi @amauryt,

    Well thanks for your reply, but your solution implies doing lot’s of addtocart and purchase that will pollute the google analytics reports.

    In that case, perhaps creating a staging site and doing these tests with a test Google account would be an option?

    If you don’t have a staging site – you can use this free WP Staging plugin to create one.

    Although I’m wondering if my colleagues have tested WooCommerce Google Analytics with Google Analytics 4 Measurement ID set up for variable products and if our plugin might not have the support for Google Analytics 4 Measurement ID at all.

    Can you please specify how did you set that up/how measurement IDs were added to product variations so we can also test this on our side?

    @felipea8c, can you please confirm if we’ve tried setting up Google Analytics 4 Measurement IDs for variable products and if this behavior can be replicated?

    Thank you!

    Thread Starter amauryt

    (@amauryt)

    hello @grigaswp

    Although I’m wondering if my colleagues have tested WooCommerce Google Analytics with Google Analytics 4 Measurement ID set up for variable products and if our plugin might not have the support for Google Analytics 4 Measurement ID at all.

    Well it’s in your documentation, I just have to put in the settings the GA4 MeasurementID and tick the box “Use Global Site Tag”.

    Other than That, all setting boxes are ticked except “Use Enhanced Link Attribution”.

    I think what I encounter is a bug in your plugin, addToCart and Purchased should be tagged on the same product, either the main one, either the variation one.

    Thanks for the help,
    BR

    • This reply was modified 2 months, 1 week ago by amauryt.
    Plugin Support Adam a11n

    (@adamkheckler)

    I’m trying to replicate this now to see if indeed it is a bug. Since events sometimes take time to show up in Google, I might have to come back to this tomorrow and see what my Google Analytics account says.

    I’ll let you know when I have more info here. Thanks! 🙂

    Plugin Support Adam a11n

    (@adamkheckler)

    I have filed a bug report for this here:

    https://github.com/woocommerce/woocommerce-google-analytics-integration/issues/200

    Please follow along there as our devs work on this issue.

    Since this is being tracked elsewhere now, I’m going to mark this thread as solved.

    Thanks!

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