Skip to main content
Squarespace Integration
David Rolenc avatar
Written by David Rolenc
Updated over a month ago

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

  1. In your Squarespace admin environment, go to the section: Website > Website Tools > Code Injection

  2. Paste the following script into the Header section.

    <!-- 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.

  3. Paste the following code on the same page in your website settings under the Order Confirmation Page section (accessible in your admin at Website > Website Tools > Code Injection)

    <!-- 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: "{orderId}",
    customParams: {
    advS1: "{customerEmailAddress}"
    },
    amount: {
    value: "{orderSubtotal}"
    }
    });
    </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 an amount that includes shipping, please refer to this article and use a different provided variable other than {orderSubtotal} - https://support.squarespace.com/hc/en-us/articles/205815908-Using-code-injection#toc-order-confirmation-page.


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.

Did this answer your question?