• google require this on product page, but my product page is missing it ??

    ————-
    <script>
    // Measure a view of product details. This example assumes the detail view occurs on pageload,
    // and also tracks a standard pageview of the details page.
    dataLayer.push({
    ‘ecommerce’: {
    ‘detail’: {
    ‘actionField’: {‘list’: ‘Apparel Gallery’}, // ‘detail’ actions have an optional list property.
    ‘products’: [{
    ‘name’: ‘Triblend Android T-Shirt’, // Name or ID is required.
    ‘id’: ‘12345’,
    ‘price’: ‘15.25’,
    ‘brand’: ‘Google’,
    ‘category’: ‘Apparel’,
    ‘variant’: ‘Gray’
    }]
    }
    }
    });
    </script>

    —————–

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter logen007

    (@logen007)

    @duracelltomi please help me :s

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    I checked this page:
    https://novelegend.com/products/buddha-and-flower-white-butterfly-orchid-religion-canvas-wall-art/

    This is a variable product. On this page, the required data layer code is not executed during pageload. Instead, if you select all the necessary product attributes, a gtm4wp.changeDetailViewEEC custom event is fired that includes the required code:

    `
    {
    event: “gtm4wp.changeDetailViewEEC”,
    ecommerce: {
    currencyCode: “USD”,
    detail: {
    products: [
    {
    name: “Buddha And Flower White Butterfly Orchid Religion Canvas Wall Art”,
    id: 201287,
    price: 34.95,
    category: “Religion”,
    stocklevel: “998”,
    brand: undefined,
    variant: “1-piece,medium,no-framed”
    }
    ]
    }
    },
    ecomm_prodid: “201287”,
    ecomm_pagetype: “product”,
    ecomm_totalvalue: 34.95
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missing Ecommerce Measurement In single product page’ is closed to new replies.