Skip to main content

BigCommerce Integration

Written by David Rolenc
Updated over a week ago

To successfully integrate tracking for your BigCommerce store, you should first complete the instructions in the Quick Setup section of your Trackdesk system. Once that is done, follow this guide to set up tracking for both clicks and conversions.


1. Step-by-Step Instructions

Step 1: Set Up Click Tracking

First, you'll need to add the click tracking script to your storefront header.

  1. In your BigCommerce admin, go to Storefront > Script Manager.

  2. Click the Create a Script button.

  3. Fill in the following details:

    • Script name: Trackdesk click tracking

    • Placement: Header

    • Location: Storefront pages

  4. Paste the following script into the script box and click Save:

    <!-- 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 Trackdesk Tenant ID.


Step 2: Set Up Conversion Tracking

Next, connect your conversion tracking to capture successful orders.

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

  2. Paste the following code into the Conversion Tracking Code box and click Connect when finished:

    <!-- 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 Trackdesk Tenant ID and YOUR_SELECTED_CONVERSION_TYPE with the specific conversion type you want to use for tracking (e.g., "sale").


Customizing Order Amounts

If you prefer to track different order values, for example, the total excluding coupons or other discounts, you can use different BigCommerce variables instead of %%ORDER_AMOUNT%%. Please refer to the BigCommerce documentation for a full list of available variables


2. Testing Your Integration

Before launching your program, it's important to verify that clicks and conversions are being tracked correctly. You can perform a test by following the standard Trackdesk testing steps to ensure everything is connected properly.

Did this answer your question?