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 Ecwid’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 Ecwid.
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 on your CMS
This script identifies users who click on affiliate links and attributes sales accordingly.
Log in to your Ecwid admin panel.
Go to Configuration > Settings > General > Tracking & Analytics.
If you are using Ecwid as a checkout module on a third-party CMS, follow your CMS vendor’s instructions to install the script.
If you're unsure which CMS your site runs on, check using this free tool or ask your webmaster.
For users with the Ecwid native site builder:
Go to Sales Channels > Website > SEO.
Paste the first script into the "Header meta tags and site verification" box.
Save your 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.
In your Ecwid admin panel, scroll down to Custom tracking code on the Order Confirmation page.
Click Enable, then click Edit Code.
A pop-up will appear—copy and paste the following script:
htmlCopyEdit<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>
Click Save to confirm changes.
💡 Important:
The
<#noescape>
tag is necessary for the data to be passed in the correct format.Add
?js_string
at the end of text variables (e.g.,${orderItem.name?js_string}
) to ensure proper formatting — Ecwid documentation.
Once the setup is done, it should look like below. Please, again, save the modifications and make sure everything's has been properly saved.
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!
Frequently asked questions
1. Does this system track recurring subscriptions?
No, this integration only tracks the first subscription purchase.
2. Where can I find a full list of Ecwid variables?