• Resolved Christopher

    (@cjsheps)


    I have seen this report a lot, set up and integration with GMC was easy, but its caused the complete failure of GA4 analytics.

    There is literally no way to fix this in the plugin

    Deleted for me at the moment unless developers can help me here.

    <script>

    window.dataLayer = window.dataLayer || [];

    function gtag() { dataLayer.push(arguments); }

    gtag( 'consent', 'default', {

    analytics_storage: 'denied',

    ad_storage: 'denied',

    ad_user_data: 'denied',

    ad_personalization: 'denied',

    region: ['AT', 'BE', 'BG', 'HR', 'CY', 'CZ', 'DK', 'EE', 'FI', 'FR', 'DE', 'GR', 'HU', 'IS', 'IE', 'IT', 'LV', 'LI', 'LT', 'LU', 'MT', 'NL', 'NO', 'PL', 'PT', 'RO', 'SK', 'SI', 'ES', 'SE', 'GB', 'CH'],

    wait_for_update: 500,

    } );

    gtag('js', new Date());

    gtag('set', 'developer_id.XXXXXXX', true);
    • This topic was modified 5 months, 3 weeks ago by Christopher.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Frank Remmy (woo-hc)

    (@frankremmy)

    Hi Christopher,

    Thanks for sharing your experience. I can understand how frustrating it must be to set up Google for WooCommerce only to find that GA4 tracking has stopped working. From what you’ve described, it sounds like the plugin may be conflicting with another integration.

    By any chance, were you also using Site Kit alongside Google for WooCommerce? If so, the behavior you’re seeing is actually expected, because Site Kit and Google for WooCommerce overlap in how they handle Analytics tracking. Site Kit’s documentation notes:

    “If you have WooCommerce installed and activated, when attempting to set up Google Ads, a popup will appear to inform you that you can use the official Google for WooCommerce plugin to connect your site with Google Ads. This can be used as an alternative to using Site Kit, and it provides a more dedicated WooCommerce integration.”

    See: https://sitekit.withgoogle.com/documentation/supported-services/ads/

    To explain further, Google for WooCommerce is designed to manage both product syncing and Analytics tracking. On the other hand, Site Kit also tries to handle Analytics, which can cause conflicts when both are active. So because of this overlap, it’s generally not recommended to run both plugins at the same time.

    So if your plan is to move forward with G4W, the best approach is to disable Site Kit permanently and rely solely on Google for WooCommerce for Merchant Center listings and Analytics tracking. This should restore proper GA4 functionality and prevent the conflict you’ve encountered.

    I hope that helps. Let us know if you need anything else.

    Thread Starter Christopher

    (@cjsheps)

    Hi @frankremmy, no we don’t and have never used google site kit.

    I have been able to remove the issues by writing this function.

    add_filter( 'woocommerce_gla_disable_gtag_events', '__return_true' );
    add_filter( 'woocommerce_gla_disable_gtag_tracking', '__return_true' );
    Plugin Support Frank Remmy (woo-hc)

    (@frankremmy)

    Hi @cjsheps,

    Thanks for the update, and I’m really glad to hear you were able to resolve the issue on your end with those filters. That’s a solid approach for disabling the gtag events and tracking when needed.

    I’ll go ahead and close this thread for now, but if anything else comes up, or if you run into any other unexpected behavior, please don’t hesitate to reach out. We’re always here to help.

    If you’ve found the plugin helpful, it would mean a lot if you could take a moment to leave a quick review. It helps us continue improving the experience for everyone: https://ww.wp.xz.cn/support/plugin/google-listings-and-ads/reviews/

    Thanks again, and wishing you smooth sailing with your setup!

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.