Upfluence enables you to track sales on your website and manage affiliate marketing campaigns, making it easy to collaborate with influencers and compensate them based on sales.
This guide provides step-by-step instructions for installing Upfluence’s sales tracking system on Prestashop’s checkout.
💡 If you haven’t set up the general tracking script yet, check out our Upfluence sales tracking guide for all CMS.
Step 1: Generate your tracking script
Go to Upfluence > Integrations > Tracking for Any Website.
Click "+ Add script".
Enter the following details:
Tracking script name: Choose a clear name for identification.
E-commerce platform: Pick Squarespace.
Click "Generate script" to receive your custom tracking script.
💡 Copy your script to a notepad — you may need to modify some values.
Step 2: Install the first script (tracking visits)
This script identifies users who click on affiliate links and attributes sales accordingly.
How to install the first script in PrestaShop
Log in to your PrestaShop admin panel.
Find the header script installation section:
Navigate to your theme folder.
Locate and open header.tpl.
Paste the first script inside the
<head>
tag.Click Save to confirm the changes.
✅ Now that the first script is installed, let’s install the second one!
Step 3: Install the order tracking script on the order confirmation page
This script tracks successful purchases and sends order data to Upfluence.
How to install the second script in PrestaShop
Find the order confirmation script installation section:
Navigate to your theme folder.
Locate and open order-confirmation.tpl.
Paste the following script inside the
<body>
tag:htmlCopyEdit<script> _upf.push([ [ 'order', { order_id: { $order.details.reference }, // required order_name: '{$order.details.reference}', // required amount: { $order.subtotals }, // required currency: "USD", // required, customer: { email: '{$customer.email}' } } ] ]); </script>
Click Save to confirm the changes.
You should now have two scripts installed:
The first script (tracking visits) in
header.tpl
The second script (tracking orders) in
order-confirmation.tpl
Step 4: Test your installation
Run a test order:
Use an affiliate link copied from Upfluence to visit your store.
Add products to your cart and complete a test purchase.
Check if the order data appears in Upfluence:
Go to "Network" > "Fetch/XHR" in the browser inspector.
Look for the "Fetch" event" and check that all required fields (
order_id
,amount
,currency
, etc.) are correctly sent.
✅ If everything is working, you're ready to start tracking sales!
Variable Descriptions
Variable | Description |
{$order.details.reference} | The order number of the confirmed order |
{$order.subtotals} | The subtotal of the confirmed order |
{$customer.email} | The customer's email address, as they enter it in the “Your Email” section at checkout |