• Resolved fdmsaraiva

    (@fdmsaraiva)


    Hey there,

    I have a Woocommerce shop at https://papinhasdosebastiao.com and have a GA4 property setup to track it.

    I was previously using Google Tag Manager to feed GA, and it was working fine for regular traffic, but GA wasn’t showing any sales data.

    Rather than get into the fine details of where my Tag Manager setup wasn’t proper, I was hoping that installing this plugin would also solve any issues.

    I just installed it and am seeing data come in GA’s realtime report, which is great, however, that report is now missing page titles, and I’m sure they showed when data was coming via GTM:

    The disclaimer does say to give it 24 hours, but since every other data point is showing up correctly, it doesn’t seem like that’s the issue.

    Suggestions?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Saif

    (@babylon1999)

    Hello @fdmsaraiva,

    I checked your site and the G-tag is loading twice. There’s an open report about this issue here: https://github.com/woocommerce/woocommerce-google-analytics-integration/issues/212

    It appears that disabling the “add-to-cart” function through the plugin’s configuration makes everything work as expected, although I’m not sure if that’s something you’re willing to sacrifice.


    Link to image: https://d.pr/i/845M8C

    I went ahead and added your case to the open report, I invite you to check for any updates there.

    Cheers!

    Thread Starter fdmsaraiva

    (@fdmsaraiva)

    Well thank you @babylon1999 that worked around the issue alright, though it’s clearly not a solution. Hoping the issue gets addressed properly. Cheers!

    This is a workaround that worked for us, without disabling tracking the Add to Cart event:
    In this file:

    wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Domain/Services/GoogleAnalytics.php

    Change Line 77 from
    gtag('config', '" . esc_js( $settings['ga_id'] ) . "', { 'send_page_view': false });"
    to:
    gtag('config', '" . esc_js( $settings['ga_id'] ) . "', { 'send_page_view': true });"
    Hope it helps.

    Gregory

    (@quanticconseil)

    We have the same problem, the page_view is blocked, it didn’t arrive in GA4 if add to cart is enable. Is it possible to get solution or an update. Lot of people use your product.

    Hi @quanticconseil,

    It’s a known bug and already reported to our development team.
    Unfortunately, there is no ETA on a solution that I can provide now. Though I can assure you that the issue is addressed as quickly as possible based on our development team’s current workload and the severity of the request & issue compared to the severity of other open issues.

    Hi @fdmsaraiva I am going to mark this thread as resolved, feel free to subscribe to the issue, for following its progress.

    Thread Starter fdmsaraiva

    (@fdmsaraiva)

    Hi @amiralifarooq, feel free to mark this issue as resolved, but I believe the title of the issue in Github is poorly worded, and should be renamed in order to better reflect the severity of the issue.

    The title “When used with WC google-analytics-integration, the Google Analytics script is loaded twice” identifies the cause, but causes don’t define priorities, consequences do.

    Please consider identifying the consequence and renaming the title to something like “Add to Cart option breaks page view tracking“, or it isn’t likely to move up to the proper priority.

    • This reply was modified 1 year, 8 months ago by fdmsaraiva.
    • This reply was modified 1 year, 8 months ago by fdmsaraiva.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Realtime report not showing page titles’ is closed to new replies.