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

In order to successfully integrate tracking of your Squarespace 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 Squarespace admin environment, go to the section: Website > Website Tools > Code Injection

  2. Paste following script to section Header

    <!-- 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 to the same page in your website settings to section Order Confirmation Page (accessible in your admin in 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 value with 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 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?