As mentioned within our 'Can I use Sauce with my store?' article - Sauce can be used with any platform: after all, it's simply a set of code snippets that you can paste into any website, blog, or store. There is no official Sauce integration with Squarespace, but see the following for pointers:

Installing any of the Sauce embeds

Check out the 'Code Block' Squarespace article for how to add a code snippet to any of your pages. The article also covers adding a custom HTML sidebar or footer for your theme for example - useful for where you want your feed on every page of your store- or for the People Power Campaigns embed to appear sitewide.

Installing the Sauce conversion code
To track sales through Squarespace, within our Sauce account, you'll want to use the 'Code injection' feature, and will want to start with their corresponding help article. For the conversion code, you'll want to enter your Sauce code snippet into the 'Order confirmation page' field:

Important, you'll want to swap out the 'liquid variables' from your Sauce order variables, to use the values and syntax that Squarespace supports. Thus, you'll want to use you'll want to change this:

<script>
window.snapppt_order_number = '{{ order_number }}';
window.snapppt_order_total = '{{ total_price }}';
window.snapppt_order_currency = '{{ shop.currency }}';
window.snapppt_account = "XXXXX";
</script>
<script src="//snapppt.com/conversion-tracker.js" defer></script>

To this:

<script>
window.snapppt_order_number = '{ orderId }';
window.snapppt_order_total = '{{ orderGrandTotal }}';
window.snapppt_account = "XXX";
</script>
<script src="//snapppt.com/conversion-tracker.js" defer></script>

Note that you will have your own snapppt_account ID (rather than the XXX) and that it appears Squarespace does not make the currency available, so this has been removed in the updated code snippet (although it wouldn't matter if you leave it). Any other questions? Do let us know!

Did this answer your question?