Skip to main content
Upfluence sales tracking (AST) - Ecwid
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 an Ecwid checkout? This guide has been made for you!

Upfluence sales tracking - Ecwid

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.

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 Ecwid

To enable you to install the scripts, please identify the script installation section in your Ecwid administrator interface. This section is located in Configuration > Settings > General > Tracking & Analytics.

2. Install the first script on your CMS

Assuming you are using Ecwid as a checkout module on a third party CMS, deploying the first script will depend on which vendor you use. If you are unsure which CMS is your website running on, you can easily find out using this free service, or asking the webmaster responsible for the website.

If, however, you are using the native ECWID site builder, you need to follow a different path. You can go to Sales Channels > Website > SEO Paste the first snippet of code in the box under the title ‘Header meta tags and site verification’.

2. Install the ORDER CONFIRMATION PAGE

Scrolling all the way down to the “Custom tracking code on Order Confirmation page" script section, click “Enable”, followed by “Edit Code”. A pop up will appear, allowing you to copy/paste the following snippet.

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. Please note that the <#noescape> tag is necessary for the data to be passed on the right format. Similarly, adding ?js_string at the end of text variables is necessary, as disclosed in the following Ecwid documentation.

<script> <#noescape> _upf.push( ['order', { order_id: ${order.number}, // required amount: ${order.total}, // required currency: 'USD', // required, items: [{name: '${orderItem.name?js_string}', amount: ${orderItem.price}, currency: 'USD'}], customer: { customer_id: ${customer.name}, first_name: '${customer.name?js_string}', email: '${customer.email?js_string}', } } ] ) </#noescape> </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

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?