Upfluence sales tracking - Squarespace
Updated over a week ago

Upfluence allows any user to track the sales made on their site and run affiliate marketing campaigns. Thanks to this, you can easily collaborate with influencers and pay them depending on the sales made.

In the general guide, we explain how to configure this sales tracking system on all CMS on the market. However, each CMS has its own specificities and this guide simplifies the configuration.


You configured our tracking script on your website and want to install it on a Squarespace ecommerce store? This guide has been made for you!

Upfluence sales tracking - Squarespace

We have tried to make it easier for you by replacing the necessary values in the script and assigning the different information correctly.

Generate your personal script link

From your integrations settings, scroll down until you see the tracking script section. Then, click on the “Generate script” button, this will open a dedicated modal

Enter the website and ecommerce platform on which the script will be installed. This will identify the site when you generate affiliate links later on. Press “Generate script” to create your own script.

Once done, we will provide you with two scripts that must be installed in two different places on your website.

NOTE: We advise you to copy the first script in a notepad in the meantime because you will have to use it in the next step.


Installation

These three steps are mandatory to track sales.

1. Find the script installation section in Squarespace

To enable you to install the scripts, please identify the script installation section in your Squarespace administrator interface. This section is located in Settings > Advanced > Code injection.

2. Install the first script

Find the "HEADER" script section in the code injection page and cop the “Step 1 - Load the script” script generated in Upfluence and paste it here. Once done, save your modifications.

2. Install the ORDER CONFIRMATION PAGE

Find the “ORDER CONFIRMATION PAGE" script section in the code injection page and copy the script below.

This script is similar to the "Step 2 - Script" in Upfluence but we have already replaced the default script values to make the installation easier for you.

<script> _upf.push([ 'order', { 'order_id': { orderId }, // required 'order_name': '{orderId}', // required 'amount': { orderSubtotal }, // required 'currency': 'EUR', // required customer: { email: '{customerEmailAddress}' } } ]); </script>

JavaScript

Once the setup is done, it should look like this. Please, again, save the modifications and make sure everything's has been properly saved.


NOTE: We highly recommend doing a test order with an affiliate link to make sure everything's has been properly configured before sending the links to influencers.

The installation is now complete. Please follow this guide if you want to learn how to generate affiliate links and send them to influencers: Workflow: How to add discount codes or affiliate links


Variable Descriptions

Variable

Description

{orderId}

The order number of the confirmed order

{orderSubtotal}

The subtotal of the confirmed order

{customerEmailAddress}

The customer's email address, as they enter it in the “Your Email” section at checkout

For further assistance, please feel free to contact us by clicking on the "Talk to a person" option within our chat feature. We're here to help!

Did this answer your question?