Support » Plugin: Google Tag Manager for WordPress » Add new Product Lists

  • Resolved costaleads

    (@costaleads)


    Hi, I am trying to understand more about the Product List, available in Enhanced Ecommerce data layer.

    I have seen some generic uses of this, like “General Product List” + “Related Products” + “Search Results”. However, my idea is to use it, to test various product displays, for performance. Such as;

    “Featured products homepage”
    “Featured products category pages”
    “Product placement position 1 Blog”
    “Product placement position 2 Blog”

    and similar. I hope you understand my purpose.

    I am doing this for a Woocommerce store, using the recommended gtm4wp.com plugin, and I can see that the generic Product Lists are being pushed.

    My questions are,
    1. how can I add new product lists?
    2. how to add products to these?
    3. how to push this new information to the datalayer?

    I have found very little information on this through Google.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    Product list names are currently not extensible or customizable by this plugin. What GTM4WP does is that it recognizes the type of product list by hooking into several WooCommerce actions.

    What you could do is to hook into the gtm4wp_eec_product_array filter. The first argument of this filter will be a single enhanced ecommerce product attribute array, the second argument will be a string identifying where it is being currently used. For your goals you should check the following values:

    widgetproduct
    productlist

    Then, within your own code, you can check what you want to check and alter the listname product attribute to whatever you want to see in your reports.

    Thread Starter costaleads

    (@costaleads)

    Thank you for such a detailed answer. Much appreciated. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add new Product Lists’ is closed to new replies.