Skip to main content
Upfluence sales tracking (AST) - Prestashop
Updated over 6 months 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 Prestashop e-commerce store? Then this guide has been made for you!

Upfluence sales tracking - Prestashop

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 the 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 header installation section in PrestaShop

To enable you to install the scripts, please identify the header script installation section in your PrestaShop theme files interface. This should be located in your theme folder > header.tpl

2. Install the first script

Open the header.tpl page and paste the “Step 1 - Load the script” script in the <head> tag. This will add the script on every page of your site.

3. Find the order confirmation installation section in PrestaShop

To enable you to install the scripts, please identify order confirmation the script installation section in your PrestaShop theme files interface. This should be located in your theme folder > order-conformation.tpl

4. Install the second script

Open the order-conformation.tpl page and paste the script below in the <body> tag. This will add the script on your order confirmation page.

This script is similar to the "Step 2 - Send orders" 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: { $order.details.reference }, // required order_name: '{$order.details.reference}', // required amount: { $order.subtotals }, // required currency: "USD", // required, customer: { email: '{$customer.email}' } } ]); </script>

JavaScript

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

{$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

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?