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

    (@duracelltomi)

    The product attribute “brand” is not a standard attribute in WooCommerce. Several additional plugins use a bit different but similar methods to give you this functionality.

    I have already added a new option in the dev version of the plugin which will give you the ability to select a taxonomy that is used to add brands to your products

    Thread Starter matthewmiao

    (@matthewmiao)

    Can I try it out the dev version? I have a couple of custom attribute I want to push into dataLayer.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    I can not release any beta yet but you will find it on GitHub once it is ready:
    https://github.com/duracelltomi/gtm4wp/releases

    The WP.org repository is only getting stable versions.

    If you have any custom variable to put into the data layer, you might want to use the the gtm4wp_compile_datalayer filter which will get the content of the data layer during page load and you can modify or add any value.

    For WooCommerce product specific data layer additions use gtm4wp_eec_product_array which gets the product data in the first argument and the ecommerce action in the second argument.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to push brand into dataLayer’ is closed to new replies.