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.

1.

Sale tracking code

Log into yourSquarespace.com store's Admin Page and navigate to Settings> Advanced> CodeInjection.

Place this code into the Order Confirmation Page section:

<script type="text/javascript">
	document.write(unescape("%3Cscript id=%27pap_x2s6df8d%27 src=%27" + (("https:" == document.location.protocol) ? "https://" : "http://") + "URL_TO_PostAffiliatePro/scripts/trackjs.js%27 type=%27text/javascript%27%3E%3C/script%3E"));</script> 
<script type="text/javascript">
	
	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 tointegrate your site with the click tracking code - you can placethe click tracking code into the Footer section in Code Injection.