Support » Plugin: GTM4WP » gtm4wp_productdata missing on the WC archive page

  • Hi Thomas!

    I built a WooCommerce Archive page with Pro from Themeco. Before doing that, I deconstructed the Storefront structure to ensure that I was using the correct classes and structures.

    However, after enabling the “Track enhanced e-commerce” option, I looked for the gtm4wp_productdata span that should appear inside each product list item. It is not there.

    Is there anything I can do for it to appear?

    If not, can I drop this at the end of the looped list element, and replace the values with appropriate dynamic data?

    <span class=”gtm4wp_productdata” style=”display:none; visibility:hidden;” data-gtm4wp_product_id=”205″ data-gtm4wp_product_name=”Album” data-gtm4wp_product_price=”15″ data-gtm4wp_product_cat=”Music” data-gtm4wp_product_url=”https://example.com/shop/music/album/&#8221; data-gtm4wp_product_listposition=”1″ data-gtm4wp_productlist_name=”General Product List” data-gtm4wp_product_stocklevel=”” data-gtm4wp_product_brand=””></span>

    Thank you!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.