• I created a small function to connect your plugin to “Woocommerce Brands” plugin and add the product’s brand in your tracking data. Check the code below (for updates track: https://gist.github.com/amirhmoradi/0745ebcd5d66f4fa78dde867ca47a4d6 )

    <?php 
    
    // Add product brand to stape sst gtm:
    function ax_set_product_brand_taxonomy(){
      return 'product_brand';
    }
    add_filter( 'gtm_server_side_product_brand_taxonomy', 'ax_set_product_brand_taxonomy', 1 );
  • The topic ‘Add product brand to tracking data’ is closed to new replies.