Bigcommerce: Difference between revisions
Jump to navigation
Jump to search
Ben.robson (talk | contribs) |
Ben.robson (talk | contribs) |
||
| Line 5: | Line 5: | ||
To Add GTM: | To Add GTM: | ||
- Click on Storefront > My Themes | - Click on Storefront > My Themes | ||
- Click on | - Click on Advanced > Theme Editor | ||
- Under Templates, find base.html & add both sections here | - Under Templates, find base.html & add both sections here | ||
Revision as of 14:48, 15 July 2021
Tag Manager
https://support.bigcommerce.com/articles/Public/Accessing-and-Customizing-Template-Files
To Add GTM:
- Click on Storefront > My Themes - Click on Advanced > Theme Editor - Under Templates, find base.html & add both sections here
https://support.bigcommerce.com/articles/Public/Passing-Order-Data-to-Affiliate-Programs#tracking-variables
adding Conversion Tracking
Advanced settings -> Affiliate Conversion Tracking
This also requires the tag manager to be inputted into the "Affiliate Conversion Tracking" section as well
Conversion Tracking Code
<script>
var dataLayer = window.dataLayer || [];
dataLayer.push({'order_id' : '%%ORDER_ID%%','order_value' : '%%ORDER_AMOUNT%%', 'event' : 'order-submitted'});
</script>