• Hi, I’m contacting you about a problem with the data layer relating to the product pages of my e-commerce site as the actual data of the displayed product is not collected but the data of the related products is displayed instead.

    I followed all the instructions for the correct setting of your plugin but it doesn’t work correctly:https://gtm4wp.com/google-tag-manager-for-woocommerce/how-to-setup-enhanced-ecommerce-tracking-google-analytics-4-ga4-version

    link to product page test:https://antinfortunistica.ingrosstore.it/abbigliamento-certificato/giubbetto-hv-nomentana-antipioggia/

    data layer code:

    {
    event: "gtm.load",
    gtm: {
    uniqueEventId: 9,
    start: 1718293515724,
    allowlist: undefined,
    blocklist: undefined,
    whitelist: undefined,
    blacklist: undefined
    },
    tagTypeBlacklist: undefined,
    pagePostType: "product",
    pagePostType2: "single-product",
    pagePostAuthor: "Luca",
    productRatingCounts: [],
    productAverageRating: 0,
    productReviewCount: 0,
    productType: "variable",
    productIsVariable: 1,
    ecommerce: {
    currency: "EUR",
    items: [
    {
    item_id: 18794,
    item_name: "Giubbotto Softshell Rainbow",
    sku: 18794,
    price: "34.22",
    stocklevel: null,
    stockstatus: "instock",
    google_business_vertical: "retail",
    item_category: "Giubbotti da lavoro",
    id: 18794,
    item_list_name: "General Product List",
    index: 2,
    product_type: "variable",
    item_brand: ""
    },
    {
    item_id: 18694,
    item_name: "Pile Norvegia Sottozero",
    sku: 18694,
    price: "23.02",
    stocklevel: null,
    stockstatus: "instock",
    google_business_vertical: "retail",
    item_category: "Pile da lavoro",
    id: 18694,
    item_list_name: "General Product List",
    index: 3,
    product_type: "variable",
    item_brand: ""
    },
    {
    item_id: 16852,
    item_name: "Bermuda multitasche Gabardina",
    sku: 16852,
    price: "30.45",
    stocklevel: null,
    stockstatus: "instock",
    google_business_vertical: "retail",
    item_category: "Bermuda da lavoro",
    id: 16852,
    item_list_name: "General Product List",
    index: 4,
    product_type: "variable",
    item_brand: ""
    },
    {
    item_id: 16939,
    item_name: "Industria Stretch 1444 Blaklader pantaloncini",
    sku: 16939,
    price: "63.24",
    stocklevel: null,
    stockstatus: "instock",
    google_business_vertical: "retail",
    item_category: "Bermuda da lavoro",
    id: 16939,
    item_list_name: "General Product List",
    index: 5,
    product_type: "variable",
    item_brand: ""
    }
    ]
    }
    }

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

  • You must be logged in to reply to this topic.