How can I add other (custom) product data to the DataLayer Push?
-
I am using the default Woocommerce integration of your plugin, which gives us these variables: id, name, price, category and quantity.
Now I would like to add data like: brand, variant, coupon and ideally all other custom fields that we have added to the product. But I don’t know the exact array variable to add in the /integration/woocommerce.php file.
I first tried something like this, without result
"coupon" => $product_coupon
Do you know of a list of default product data or post meta?
https://wordpress.org/plugins/duracelltomi-google-tag-manager/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How can I add other (custom) product data to the DataLayer Push?’ is closed to new replies.