Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save amirhmoradi/0745ebcd5d66f4fa78dde867ca47a4d6 to your computer and use it in GitHub Desktop.
Save amirhmoradi/0745ebcd5d66f4fa78dde867ca47a4d6 to your computer and use it in GitHub Desktop.
Woocommerce Brands Add Brand to Stape.io Server-Side GTM
<?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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment