Affiliate tracking - See who reffered your customer
Benefits
Do you have other companies, agents or influencers that are interested to promote your webshop? Do you want to know who brought you how many customers? Then you can use the affiliate links.
In short, you can create webshop links / URLs with a special "tail" / affiliatePartnerCode parameter to any webshop link. When a customer uses such a link and creates an order, the a corresponding affiliate Order Tag will be added to the order:
- Partners can share links like
https://yourshop.no/product/xyz?affiliatePartnerCode=GYM2024
to their audience - Multiple affiliate codes can be created for each local partner (eg. gyms, hotels, events)
- Can also be used for internal campaigns (eg. newsletters, paid ads, QR codes) to quickly compare results without a new analytics setup
Technically: When a customer lands on your page with ?affiliatePartnerCode=CODE
in the URL and then adds an item to cart, Sharefox checks if there’s a pre-created affiliate Order Tag with type: Affiliate
and Value/Name: CODE
(case-insensitive). If there’s a match, the tag is added to the order (e.g. Affiliate: GYM2024
). If not, nothing happens.
How to use it
One-time setup: Create your tags
In Admin go to Settings → Others → Order Tags. Click Add to create your affiliate tags:
- Type:
Affiliate
- Value (Name): your referral code (e.g.
GYM2024
,INFLUENCER_JANE
)
Keep the tag Active. Heads-up: The match is case-insensitive (gym2024 = GYM2024). Tags must be pre-created (we don’t auto-create them)
Share links with your partners
Share links such as:
- https://yourshop.com?affiliatePartnerCode=YOURCODE
- https://yourshop.com/product-name?affiliatePartnerCode=YOURCODE
- https://yourshop.com/product-category-name?affiliatePartnerCode=YOURCODE
Customers visiting the link → adds a product to cart → order is created → if the tag exists, we attach Affiliate: YOURCODE
to the order.
Where you’ll see the tag
- Orders List: The tags are visible, you can both search and filter by the assigned tags. After filtering, you can also download the Order List as Excel, for example
- Order Page: See the assigned affiliate tags on the order page itself
- For a very detailed report with each order line, you can use the General Accounting Report. You can filter the report manually by the affiliate order tags of interest, eg. to calculate commissions for your partners
FAQ
Q: Can I use an affiliate tag on any page?
A: Yes. The ?affiliatePartnerCode=CODE
parameter can be added to any site URL
Q: Can I track multiple affiliates on one order?
A: No. This feature applies one affiliate tag if there’s a match at order creation
Q: Can I change the affiliate after the order exists?
A: Yes, you can manually adjust tags on the order in Admin if needed
Q: For how long is an affiliate tag used once clicked by a user?
A: The code is remembered for up to 14 days from first capture. If the saved code is older than 14 days, it is reset / ignored automatically
Q: How to remove an affiliate code once used (eg. during testing)?
A: Add ?affiliatePartnerCode=none
to any URL to clear the saved code
Troubleshooting
- No tag added?
- Make sure the tag exists before the customer adds the first product to cart: Type = Affiliate, Value = CODE, Active
- Confirm the customer actually added to cart after visiting the link (orders are created on the Add to Cart action)
- Check the 14-day window; stale codes are ignored
- Clear with
?affiliatePartnerCode=none
and try again
- Wrong casing? Doesn’t matter. Matching is case-insensitive