BigCommerce integration
David Rolenc avatar
Written by David Rolenc
Updated over a week ago

In order to successfully integrate tracking of your BigCommerce store you will need to set up your system by instructions in the Quick setup section in the system and then tracking for clicks and conversions by following the guide below.

  1. In your BigCommerce admin environment, go to the section: Storefront > Script Manager

  2. Use Create a Script button

  3. Fill necesarry information to the script
    Script name: Trackdesk click tracking
    Placement: Header
    Location: Storefront pages

  4. Paste the script and click save to 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.

  5. Navigate to section Settings > section Data solutions > and click Connect next to Affiliate Conversion Tracking

  6. Past 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 click and conversion 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.

Did this answer your question?