• Hi,
    I have missing keys and values on the view_item_list various events.

    1. Prices of the suggested products all show as “0.00”.
    This occurs on view_item_list and seems to be connected to the URL parameter that selects the product color (?attribute_pa_color). Without this parameter the prices appear OK (although they appear as strings. See issue 2 below)

    2a. Product prices are sometimes numeric and sometimes strings depending on the event. I presume this is wrong behavior.
    2b. When the URL has a parameter (attribute_pa_color) to control color, the list index type is a string. When no URL parameter is included the list index type is numeric.

    3. Google_business_vertical is undefined. I have set to Retail in the plugin settings, and this worked fine in v1.13

    4. Key which should be “id” now shows as undefined (although its value is populated). This also worked fine in v1.13.

    Errors 3 and 4 occur on view_item_list, select_item, view_item, add_to_cart, and probably others.

    Here is an example of the 1st item in an item array of suggested products for view_item_list.

    dataLayer.push({
      event: "view_item_list",
      ecommerce: {
        currency: "EUR",
        items: [
          {
            item_id: "B&W-705-S2",
            item_name: "Bowers & Wilkins 705 S2",
            item_brand: "Bowers & Wilkins",
            price: "0.00",
            item_category: "Navidad",
            item_list_name: "Productos de venta dirigida",
            index: "1",
            google_business_vertical: undefined,
            undefined: "B&W-705-S2"
          },
    • This topic was modified 3 years, 3 months ago by gtmoverblue.

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

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Items missing keys and values. Changing types.’ is closed to new replies.