In order to successfully integrate tracking of your BigCommerce store you will need to set up your system by following instructions in the Quick setup section in the system and then tracking for clicks and conversions by following the guide below.
In your BigCommerce admin environment, go to the section: Storefront > Script Manager
Use the Create a Script button
Fill in the necessary information to the script
Script name: Trackdesk click tracking
Placement: Header
Location: Storefront pages
Paste the script and click Save to apply the script to your storefront.
<!-- Trackdesk tracker begin -->
<script async src="//cdn.trackdesk.com/tracking.js"></script>
<script>
(function(t,d,k){(t[k]=t[k]||[]).push(d);t[d]=t[d]||t[k].f||function(){(t[d].q=t[d].q||[]).push(arguments)}})(window,"trackdesk","TrackdeskObject");
trackdesk('YOUR TENANT ID', 'click');
</script>
<!-- Trackdesk tracker end -->Make sure to replace YOUR TENANT ID with your actual tenant ID.
Navigate to section Settings > Data solutions > and click Connect next to Affiliate Conversion Tracking
Paste the following code into the Conversion Tracking Code box and click Connect when you are done.
<!-- Trackdesk tracker begin -->
<script async src="//cdn.trackdesk.com/tracking.js"></script>
<script>
(function(t,d,k){(t[k]=t[k]||[]).push(d);t[d]=t[d]||t[k].f||function(){(t[d].q=t[d].q||[]).push(arguments)}})(window,"trackdesk","TrackdeskObject");
trackdesk('YOUR TENANT ID', 'conversion', {
conversionType: 'YOUR SELECTED CONVERSION TYPE',
externalId: "%%ORDER_ID%%",
customParams: {
advS1: "%%ORDER_EMAIL%%"
},
amount: {
value: "%%ORDER_AMOUNT%%"
}
});
</script>
<!-- Trackdesk tracker end -->Make sure to replace 'YOUR TENANT ID' with your actual tenant ID.
Make sure to replace 'YOUR SELECTED CONVERSION TYPE' with the conversion type you want to use for tracking.
Using different amount variant
If you wish to use a different amount for tracking of orders, for example values without coupons and other discounts, please refer to this article and use a different provided variable other than %%ORDER_AMOUNT%% - https://support.bigcommerce.com/s/article/Passing-Order-Data-to-Affiliate-Programs.
Testing Your Integration
Please remember to test the creation of clicks and conversions before starting your program. This way you can verify that tracking has been set up correctly. You can create a test click and conversion by following the steps described here.