Affiliate order tracking for Squarespace
This guide provides detailed instructions on how to integrate Partnero into Squarespace websites for straightforward order tracking.
Please note that before proceeding with the integration, you should already have an affiliate program created on Partnero. If you haven't created a program yet, refer to our guide on creating an affiliate program.
Visitors tracking
Visitor tracking enables the identification of referral visits to your website.
For accurate tracking and attribution of referral visits and signups to the appropriate partners, you need to install the Partnero Universal script on your Squarespace website via custom code injection.
To find the snippet, please follow these steps:
- Log in to Partnero
- Go to Programs
- Choose your Program if there is more than one
- On the left sidebar, go to Integration under Program
- Copy the Partnero Universal snippet
After copying your unique Partnero Universal JavaScript snippet, follow these steps to log into your Squarespace account:
- Navigate to Website
- Proceed to Website Tools
- Choose Code Injection
- Insert the Partnero Universal Script into the HEADER section.
Example of Partnero Universal
<!-- Partnero Universal -->
<script>
(function(p,t,n,e,r,o){ p['__partnerObject']=r;function f(){
var c={ a:arguments,q:[]};var r=this.push(c);return "number"!=typeof r?r:f.bind(c.q);}
f.q=f.q||[];p[r]=p[r]||f.bind(f.q);p[r].q=p[r].q||f.q;o=t.createElement(n);
var _=t.getElementsByTagName(n)[0];o.async=1;o.src=e+'?v'+(~~(new Date().getTime()/1e6));
_.parentNode.insertBefore(o,_);})(window, document, 'script', 'https://app.partnero.com/js/universal.js', 'po');
po('settings', 'assets_host', 'https://assets.partnero.com');
po('program', 'PUBLIC_PROGRAM_ID', 'load');
</script>
<!-- End Partnero Universal -->
Sales tracking on checkout
Scroll down until you reach the ORDER STATUS PAGE section. In this area, paste the following script:
<script>
po('transactions', 'create', {
data: {
key: '{orderId}',
amount: {orderSubtotal},
customer: {
key: '{customerEmailAddress}',
email: '{customerEmailAddress}'
}
},
options: {
create_customer: true
}
});
</script>