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 programopen in new window.

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:

  1. Log in to Partneroopen in new window
  2. Go to Programs
  3. Choose your Program if there is more than one
  4. On the left sidebar, go to Integration under Program
  5. Copy the Partnero Universal snippet

After copying your unique Partnero Universal JavaScript snippet, follow these steps to log into your Squarespace account:

  1. Navigate to Website
  2. Proceed to Website Tools
  3. Choose Code Injection
  4. 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>