- The plugin. This does the actual tracking. Everyone needs it.
- Your WooCommerce API keys. These let Referly read your product list, which is what makes product-based commissions possible. Skip it if every product pays the same rate.
What the WooCommerce integration can and can’t do
Before you start
You’ll need:- Administrator access to your WordPress site, so you can upload and activate a plugin.
- Your Referly program ID. You’ll find it on the WooCommerce guide inside Referly — open your program, go to Settings, then Integrations, and select the Woocommerce card. Your program ID is shown there, ready to copy.
- A recent backup of your site. Standard practice before adding any plugin.
Step 1: Install the Referly plugin on your site
Download the plugin
.zip — leave it zipped.Upload it to WordPress
.zip file you downloaded and select Install Now.Activate it
Step 2: Point the plugin at your program
Open the plugin settings
Enter your program ID
Step 3: Connect your API keys for product-based commission
Do this step only if you want to pay different commission rates on different products. It lets Referly read your product catalogue so you can pick products when building a commission plan. Orders are tracked with or without it.Generate the keys in WooCommerce
Check your permalinks first
Open the REST API settings
Fill in the key details
Generate and copy both values
Enter the keys in Referly
Open the integrations dialog
Paste your keys
https:// — for example https://www.example.com.Connect
How Referly decides who gets credit for an order
When an order goes through, Referly works through the following, and stops at the first match:- The click behind the visit. The plugin remembers who referred the shopper from the moment they land on your site, and sends that with the order.
- An external click ID. If the affiliate’s traffic carried an ad-network tracking ID, Referly can match on that instead.
- The affiliate’s link. If the reference is an affiliate’s link rather than a click, Referly matches the link.
- The coupon on the order. If the order used a coupon belonging to one of your affiliates, that affiliate is credited — no click needed at all.
Coupons
Referly can manage your WooCommerce coupons for you: create a coupon in Referly, assign codes to affiliates, and let them promote a code instead of a link. Redemption counts flow back so you can see which codes are working, and codes you edit or delete in WordPress stay in step. Set this up on the Coupons page — see Connect a coupon source and Create coupons.Step 4: Place a test order
Get a real affiliate's link
Visit your store through it
Confirm the click landed
Place an order
Check Referly
Refund it
Refunds
When you refund an order in WooCommerce, Referly finds the matching sale and removes it, so no commission is owed on money you gave back. The affiliate’s totals are recalculated straight away. This only happens while the commission is still within your payout window. Once that window has passed and the affiliate has been cleared for payout, the sale stays as it is — adjust it by hand if you want to claw it back. See Refunds and Payout schedule. Cancelling an order without refunding it doesn’t change anything in Referly.Disconnecting
There are two things to undo, depending on how far you went:- To stop tracking, deactivate the Referly plugin in your WordPress admin under Plugins.
- To remove your API keys, open Connect Integration in Referly, select WooCommerce, and choose Disconnect. You can also revoke the key on the WooCommerce side under WooCommerce, then Settings, then Advanced, then REST API.
Troubleshooting
Clicks aren't being counted
Clicks aren't being counted
Orders appear in Referly with no affiliate attached
Orders appear in Referly with no affiliate attached
No orders are appearing at all
No orders are appearing at all
Connecting the API keys fails
Connecting the API keys fails
https:// and match your store’s real address, with no trailing path.I can't pick products when building a commission plan
I can't pick products when building a commission plan
A refund didn't remove the commission
A refund didn't remove the commission