Skip to main content
Referly connects to Ecwid through an app you install from the Ecwid App Market. Once it’s installed, Referly watches every order in your store, works out which affiliate sent that customer, and creates the sale and the commission for you. Refunds, cancellations and deleted orders reverse the commission the same way. Everything is set up during install. The app registers itself for order notifications and puts Referly’s tracking script on your storefront for you — there’s no snippet to paste, no API key to create, and no webhook to configure.
If you set Ecwid up before the app existed, your order-confirmation snippet still works and nothing has broken. Moving to the app gets you refunds, coupon codes, renewals and product-level data, none of which the snippet could report.
Referly and Ecwid connected by sync arrows

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.
That’s it. You don’t need access to your website’s code.

Step 1: Install the Referly app

1

Open the app

In Referly, open your program, go to Settings, then Integrations. Under Sales tracking, select Add integration and choose Ecwid. Click Install the Referly app on Ecwid. You can also find Referly in the Ecwid App Market directly.If you’re using Referly’s setup wizard instead (the Setup Integration button at the top right of the Integrations page) and pick Ecwid as your website, its Connect Ecwid step has the same install button.Already installed it? Open your Ecwid admin, go to Apps → Referly, and select Connect an affiliate program → there.
2

Approve the permissions

Ecwid shows you what the app can access — orders, products, customers and discount coupons — and asks you to confirm.
3

Pick your affiliate program

Referly opens to finish the connection. If you started from inside Referly, or you only have one program, your store connects automatically. If you have several programs and installed from the App Market, choose which one the store belongs to.Once it’s connected, you’ll see Store connected and be taken back to the Referly app in your Ecwid admin. If you started from inside Referly’s setup steps on the Integrations page, you land back there instead, with a message confirming your Ecwid store is connected.
The Ecwid guide in Referly's integration setup, with step 1 Connect your Ecwid store and its Install the Referly app on Ecwid button, and step 2 Verify the tracking script

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.
The tracker can take a couple of minutes to appear on your storefront after connecting. If the verification check in Referly doesn’t pass straight away, wait a moment and try again — and check your storefront address, not your Ecwid admin URL.

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 2 of the Ecwid guide, Verify the tracking script is live on your site, with the storefront address and the Verify button

Step 3: Decide how affiliates will promote you

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.
Ecwid coupons are either single-use or unlimited — there’s no “use this 25 times” setting. If you set a redemption limit above one in Referly, it’s tracked in Referly’s reporting but not enforced at your checkout.

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:
  1. A discount code on the order that belongs to one of your affiliates.
  2. The referral recorded by the tracking script when the shopper clicked an affiliate link.
  3. An existing customer’s history — this is what attributes subscription renewals to the affiliate who won the original sale.
If none of those match, the order is still recorded so your revenue reporting stays complete, just without an affiliate attached.
The click reference is stored on the order as 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

1

Visit your store through an affiliate link

Use a real affiliate’s referral link from your Affiliates page, in a private or incognito window.
2

Check the click landed

In Referly, open that affiliate’s record and confirm the click count went up. If it didn’t, the tracker isn’t live yet — re-run the verification in Step 2.
3

Buy something

Complete a small order. If your test payment method leaves the order awaiting payment, mark it paid in your Ecwid admin — Referly records the sale when the order is paid.
4

Check the result in Referly

Open Customers to find the buyer attached to the affiliate, Sales to confirm the amount, and Rewards to see the commission.
5

Test the refund too

Refund the test order in Ecwid and watch the commission reverse in Referly. Then delete the test customer and sale from your Customers and Sales pages.
referly-ecwid-sale

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:
1

Install the app

Follow Step 1 above.
2

Remove the confirmation page code

In your Ecwid control panel go to Settings, then General, then Tracking & Analytics, and clear the Custom tracking code on Order Confirmation page box. Leaving it in place can record the same order twice.
3

Remove the old tracking script

If you added Referly’s script to your site by hand, take it out — the app adds it for you now.
Everything already tracked stays exactly as it is.

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.
When no program is connected, the page says No affiliate program connected yet and shows a Connect an affiliate program → button. It opens Referly in a new tab, where you sign in (or create a free account) and pick the program.

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

Give it a couple of minutes after connecting, then check again. Make sure you’re verifying your storefront address and not your Ecwid admin URL. If your Ecwid store is embedded in your own website rather than using Ecwid’s Instant Site, the app only adds the tracker to Ecwid-rendered pages — add the tracking script to the rest of your site as well so clicks on your other pages are recorded.
Referly records a sale when the order is paid. If your orders sit in Awaiting payment, nothing is recorded until you mark them paid. Check the order’s payment status in your Ecwid admin.
The shopper didn’t arrive through an affiliate link in that browser and didn’t use an affiliate’s discount code, or they cleared their cookies between arriving and buying. Test with a fresh private window and a real affiliate’s link.
Check the coupon was created from Referly with Ecwid as the source, and that it’s assigned to that affiliate. Codes created directly in Ecwid aren’t linked to anyone until you sync them into Referly.
Ecwid supports single-use or unlimited coupons only. A limit above one is recorded in Referly’s reporting but can’t be enforced at your checkout.
Reversals only apply while the reward is on hold. If it was already approved and paid, Referly leaves it — adjust it by hand on the Sales page. See Reward holds.
Disconnect Ecwid in that program’s Integrations page, then open your Ecwid admin, go to Apps → Referly, and select Connect an affiliate program →. If you have more than one program, you’ll be asked which one to use. If you only have one, the store connects to it automatically.
If Referly shows Referly’s connection to your Ecwid store was rejected. Reconnect the store and try again. while creating discount codes, open your Ecwid admin, go to Apps → Referly, and select Reconnect. Then create the codes again.

Coupons

Give each affiliate their own Ecwid discount code.

Commission plans overview

Percentage, flat, per-product or recurring.

Reward holds

How refunds reverse commissions before payout.

Integrations overview

See every tool Referly connects to.
Last modified on October 23, 2026