• Resolved mfrashcom

    (@mfrashcom)


    hello

    after checking data layer has been sent to gtm i find parent product id has sent instead product variation id that affect about quality of ad tag

    {
    developer_id: {dYzg1YT: true, dOGY3NW: true},
    gtm: {uniqueEventId: 17, start: 1764179936281},
    event: "purchase",
    eventModel: {
    ecomm_pagetype: "purchase",
    send_to: "AW-8244320/URrSCJSe-MoZ3qpcD",
    transaction_id: "20921",
    currency: "SAR",
    country: "SA",
    value: 340,
    new_customer: false,
    tax: 41.73913,
    shipping: 20,
    delivery_postal_code: "",
    aw_feed_country: "SA",
    aw_feed_language: "ar",
    items: [
    {
    id: "gla_20579",
    price: 139,
    google_business_vertical: "retail",
    name: "لحاف أطفال شتوي مخمل فرو برسومات كرتونية – 4 قطع ناعمة" +
    " ودافئة - hkt-04",
    quantity: 2
    }
    ]
    }
    }

    otherwise id should be (gla_20583)

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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    Thank you for sharing the details. I’d like to clarify that Google for WooCommerce (official plugin) primarily handles:

    • Syncing your WooCommerce products with Google Merchant Center.
    • Running Google Ads campaigns, including Performance Max and Smart Shopping.
    • Generating product feeds with correct pricing, stock, and variation data.
    • Enhanced conversion tracking for Google Ads / GA4 (if enabled).

    However, it does not push events to Google Tag Manager (GTM) or create a Data Layer.

    Since you are seeing purchase events in the Data Layer, this is coming from another plugin, custom code, or your theme. Could you please let us know which plugin or tool you are using to send GTM / Data Layer events? This will help us identify the cause and guide you more accurately.

    Also, please share System Status Report which you can find via WooCommerce > Status. Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.

    Thread Starter mfrashcom

    (@mfrashcom)

    Thanks for fast replay

    But i confim it by disabling plugin after that there isn’t any datelayer sent to gtm

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    To assist you better, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    • System Status Report which you can find via WooCommerce > Status

    Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.

    Thread Starter mfrashcom

    (@mfrashcom)

    Hi @mfrashcom,

    Thank you for sharing the report. I can see that only Google for WooCommerce is active. I also reviewed the code you provided earlier and noticed the ID you’re referring to. That ID is not intended for GTM, so I’m not sure how it appeared in your GTM view or whether you pulled it from Google Analytics or GTM preview mode.

    The ID in the object you shared is actually a Google Merchant Center ID, which means you’re listening to the wrong event and capturing the wrong data. Google for WooCommerce is not designed to send data to GTM, and the object you’re seeing is part of the Google Merchant integration—this is why the ID appears as gla_20579.

    The number 20579 may be a product or variation ID, but the “gla_” prefix indicates that it belongs to the Google Merchant feed, not the GTM data layer. If you’re getting it via GTM preview mode then it is normal since those data are also used with Google Analytics not GTM

    Thread Starter mfrashcom

    (@mfrashcom)

    Hello

    As i said before i already disabled plugin and pushing data stopped once i disable it

    And about datalayer it sent by wrong way, it should send variation id but it send parent product id so it make dismatch between google ad and google merchant because parent product doesn’t sync with Google merchant, I’m sure 100 % that plugin pushing date to gtm

    Hi @mfrashcom,

    Thank you for getting back and I understand your concern and what you’re trying to pass across. However you seems to have misunderstood my previous response.

    As i said before i already disabled plugin and pushing data stopped once i disable it

    When using GTM in preview mode, you may see events related to Google Analytics and Google Ads. Google for WooCommerce does send events, which I have confirmed, but the event GTM is picking up is not intended for GTM use. Those events are specifically for Google Merchant Center. The gla_id is a Google Merchant ID, and it is shared across GMC, GA4, and Google Ads.

    And about datalayer it sent by wrong way, it should send variation id but it send parent product id so it make dismatch between google ad and google merchant because parent product doesn’t sync with Google merchant, I’m sure 100 % that plugin pushing date to gtm

    To clarify again, this data layer or object is not intended for use with GTM. Google for WooCommerce does send events, but they are not designed for GTM. You’re seeing this data layer because you’re in preview mode, which is normal—GTM preview mode captures any Google-related data sent to their products, including GA4, Merchant Center, and Ads.

    Thread Starter mfrashcom

    (@mfrashcom)

    now I’m not talking about event i talk about datelayer has sent during purchase process, that data sent by Google for woocommerce, if you aren’t believe that i can make video for you before disable plugin and after disable how is data stopped

    Hi @mfrashcom,

    I’m not disputing that an event was sent; what I’m clarifying is that the event is intended for Google Analytics, not for use in GTM. Could you share a video showing how you’re accessing or pulling this event data in GTM?

    Thread Starter mfrashcom

    (@mfrashcom)

    hello

    i create video to prove what i said before activating no add to cart or purchase event or data layer after activate plugin you can see both event with datalayer

    here is link https://youtu.be/MsIeyBfyX2s

    Hi @mfrashcom,

    Thank you for getting back to me and for sharing the video. The video actually confirms everything I explained earlier.

    To clarify, events are being sent and that is not in dispute. However, because Google for WooCommerce is active and already connected to Google Merchant Center or has been previously set up, it sends events and data to both Google Merchant Center and Google Analytics.

    During the Google for WooCommerce setup, you also connect Google Ads and Google Merchant Center, and all of these services communicate with Google Analytics.

    In your video, you are using Google Tag Assistant with Google Tag Manager Preview. So when you click Add to Cart or proceed to checkout, events are indeed being sent as previously explained. However, these events are intended for Google Analytics, not for GTM use.

    Google Tag Assistant and GTM Preview will detect any events sent to Google Analytics or any Google service involving analytics or ads, but that does not mean those events are meant to be used in GTM for product identification. If you want to set up add to cart or similar events specifically through GTM, you will need to track those events with dedicated plugins and not Google for WooCommerce.

    An example of such plugin is: https://ww.wp.xz.cn/plugins/gtm-ecommerce-woo/

    Thread Starter mfrashcom

    (@mfrashcom)

    but when i use that plugin it send purchase event 2 times in gtm how i can stop pushing data from google for woocommerce

    Hi @mfrashcom,

    To clarify, Google Analytics and Google Merchant don’t send events from their platforms back into WooCommerce. Only Google for WooCommerce sends events to Google Analytics and Google Merchant, and because these are Google-related events, Tag Assistant and GTM preview can detect them. These events can’t be disabled without breaking Google for WooCommerce.

    If you need to track additional events, you can simply ignore the ones coming from Google for WooCommerce and instead use the plugin I previously recommended to track specific events.

    I’ll go ahead and mark this thread as resolved. If you have any more questions, feel free to reach out. We’d also greatly appreciate it if you could take a moment to leave a review about the plugin and your support experience here: https://ww.wp.xz.cn/support/plugin/google-listings-and-ads/reviews/#new-post

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

The topic ‘data layer on gtm not correct’ is closed to new replies.