Squarespace integration
The all-in-one solution for anyone looking to create a beautiful website.
Squarespace is a hosted solution of a website builder – whether you need simple pages, striking galleries, a professional blog, or an online store, it’s all included within Squarespace website. Everything is mobile-ready right from the start.
The integration is achieved by placing a sale tracking code into special sections of Squarespace interface. You can track order ID, subtotal and customer email. Unfortunately product ID is not available.
Sale tracking code
Log into your Squarespace.com store’s Admin Page and navigate to Website > Website Tools (under Utilities) > Code Injection.
Place this code into the Order Confirmation Page section:
<script id="pap_x2s6df8d" src="https://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
var sale = PostAffTracker.createSale();
sale.setTotalCost('{orderSubtotal}');
sale.setOrderID('{orderId}');
sale.setData1('{customerEmailAddress}');
PostAffTracker.register();
</script>
That’s it. Save your work and you are done.
Here is a list of all available variables in case you wanted to use it in the sale tracking:
- {orderId} – the unique ID of the confirmed order
- {orderSubtotal} – the subtotal of the confirmed order
- {orderSubtotalCents} – the subtotal of the confirmed order, in cents
- {orderGrandTotal} – the grand total of the confirmed order
- {orderGrandTotalCents} – the grand total of the confirmed order, in cents
- {customerEmailAddress} – the customer’s email address, as it was entered in the “Billing Info” section
Don’t forget to integrate your site with the click tracking code – you can place the click tracking code into the Footer section in Code Injection.