Bigcommerce: Difference between revisions
Jump to navigation
Jump to search
Ben.robson (talk | contribs) |
|||
| Line 3: | Line 3: | ||
https://support.bigcommerce.com/articles/Public/Accessing-and-Customizing-Template-Files | https://support.bigcommerce.com/articles/Public/Accessing-and-Customizing-Template-Files | ||
To Add GTM: | |||
- Click on Storefront > My Themes | |||
- Click on Advnaced > Theme Editor | |||
- Under Templates, find base.html & add both sections here | |||
Revision as of 14:47, 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 Advnaced > 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>