
What the Ecwid integration can and can’t do
Before you start
You’ll need:- Admin access to your Ecwid control panel, so you can install an app.
- A Referly affiliate program. If you don’t have one yet, you’ll be able to create it during the connection.
Step 1: Install the Referly app
Open the app
Approve the permissions
Pick your affiliate program

What the app sets up for you
- Order notifications. Ecwid tells Referly when an order is placed, paid, refunded, cancelled or deleted.
- The tracking script. Referly’s affiliate tracker is added to every page of your storefront, including your Instant Site. This is what records clicks and remembers who referred a shopper.
- The connection to your program. Your store is linked to one Referly program, and every order from it is attributed there.
Step 2: Verify the tracking script
In Referly, the Ecwid setup shows a Verify the tracking script is live on your site check. Enter your storefront address and run it. A green result means clicks will be attributed. If it doesn’t pass, see the tracker isn’t detected below.
Step 3: Decide how affiliates will promote you
Referral links
Every affiliate gets a link to your store. When someone clicks it, the tracker records the click and remembers the referral until they check out — even if they come back days later.Discount codes
You can also give each affiliate their own discount code. Referly creates the coupon in your Ecwid store for you, and any order that uses it is credited to that affiliate whether or not they clicked a link. This is what makes offline, podcast and social promotion work. Create them under Coupons in Referly, choosing Ecwid as the source. See Coupons.How Referly decides who gets credit for an order
When an order comes in, Referly checks in this order and stops at the first match:- A discount code on the order that belongs to one of your affiliates.
- The referral recorded by the tracking script when the shopper clicked an affiliate link.
- An existing customer’s history — this is what attributes subscription renewals to the affiliate who won the original sale.
refererId, which means it also shows up on your own order exports, invoices and order emails. It’s a short number, not personal data, but it is visible to you and your staff.Step 4: Place a test order
Visit your store through an affiliate link
Check the click landed
Buy something
Check the result in Referly
Test the refund too
Refunds and cancellations
These are automatic. Refunding an order in Ecwid, cancelling it, or deleting it reverses the affiliate’s commission in Referly. A partial refund reverses the whole commission for that order rather than a proportion of it. If you’d rather pay a share, adjust the sale by hand on your Sales page. Reversals only apply while the reward is still on hold. If you already paid it out, Referly leaves it alone — see Reward holds.Subscriptions and renewals
If you sell subscriptions through Ecwid, each recurring charge creates a new order, and Referly records it as a renewal credited to the affiliate who won the original sale. That’s what powers recurring commissions. Ecwid doesn’t notify Referly when a subscription is cancelled, so nothing is marked as churned — the customer simply stops producing renewal orders.Moving from the old snippet setup
Stores set up before the app used two pasted snippets: a tracking script and a block of code on the order confirmation page. That setup still works, and installing the app does not break it. To move over:Install the app
Remove the confirmation page code
Remove the old tracking script
Manage the connection from your Ecwid admin
The Referly app has its own page inside Ecwid. Open your Ecwid admin and go to Apps → Referly. When your store is connected, the page shows the Connected program, confirms that orders, refunds and coupon codes sync automatically, and shows your Affiliates, Clicks, Referrals and Revenue totals. It has two buttons, and both open Referly in a new tab:- Reconnect refreshes your store’s connection. It doesn’t move the store: to connect it to a different program, disconnect it in Referly first.
- Open Referly dashboard → takes you to your Referly dashboard.
Disconnecting
Disconnecting in Referly stops tracking for that program and clears the app’s settings on your store, but it does not uninstall the app. To remove Referly from Ecwid entirely, open your Ecwid admin, go to Apps, and uninstall it there. Uninstalling from Ecwid disconnects the store in Referly automatically. Nothing already tracked is deleted — your affiliates, referred customers, sales and rewards all stay.Troubleshooting
The tracker isn't detected on my storefront
The tracker isn't detected on my storefront
Clicks are tracked but sales aren't
Clicks are tracked but sales aren't
Sales appear with no affiliate attached
Sales appear with no affiliate attached
A coupon code didn't credit the affiliate
A coupon code didn't credit the affiliate
My redemption limit isn't being enforced
My redemption limit isn't being enforced
I refunded an order but the commission is still there
I refunded an order but the commission is still there
I connected the wrong program
I connected the wrong program
Creating affiliate codes says the connection was rejected
Creating affiliate codes says the connection was rejected