Affiliate tracking - See who reffered your customer

Introduction

Do you have other companies, agents or influencers promoting your webshop, and want to know who brought you how many customers? Then you can use affiliate links.


In short, you will generate one shop link (URL "tail") for each of your marketing partners. When the customer clicks on such a custom link, Sharefox notices this tail, and you can see who gave you that customer.


What it does

When a customer lands on your site with ?affiliatePartnerCode=CODE in the URL and then adds an item to cart (that’s when the order is created), Sharefox checks if there’s a pre-created affiliate Order Tag with:

  • Type: Affiliate
  • 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. That’s it.


Typical use cases

  • Influencers and partners can share links like https://yourshop.no/product/xyz?affiliatePartnerCode=GYM2024
  • Local partners (gyms, hotels, events), newsletters, paid ads, QR codes
  • Internal campaigns you want to compare quickly without a new analytics setup

Before you start (one-time setup)

  1. In Admin go to Settings → Others → Order Tags.

    Click Add and create a tag with:

    • Type: Affiliate
    • Value (Name): your referral code (e.g. GYM2024 , INFLUENCER_JANE )
  2. Keep the tag Active

    Heads-up: The match is case-insensitive (gym2024 = GYM2024 ). Tags must be pre-created; we don’t auto-create them.


How to use it

  1. Share links with your partners/influencers:

    https://yourshop.no/... ?affiliatePartnerCode=YOURCODE

  2. Customer visits the link → adds a product to cart → order is created → if the tag exists, we attach Affiliate: YOURCODE to the order.

Persistence window

  • The code is remembered for up to 14 days from first capture
  • Add ?affiliatePartnerCode=none to any URL to clear the saved code (useful for testing or switching codes)
  • If the saved code is older than 14 days, it’s ignored automatically

Where you’ll see the tag

  • Orders list: tags are visible; you can search by assigned tags in the search input.
  • Order details: see assigned tags on the order.

Quick “reporting” (manual)

  • In Orders, search for the affiliate code (or Affiliate type) to list the orders that matched
  • Use Export to Excel from Orders to pull the filtered list for sharing or payouts handled outside Sharefox
  • Alternatively use publish the General Accounting Report and filter the order data based on the order tags field
  • You can use such manual reports in order to calculate any commissions for your partners

Troubleshooting

  • No tag added?
    • Make sure the tag exists before the customer adds to cart: Type = Affiliate, Value = CODE, Active.
    • Confirm the customer actually added to cart after visiting the link (orders are created on Add to Cart).
    • 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.

FAQ

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: You can manually adjust tags on the order in Admin if needed

Q: Can I use it on any page?

A: Yes. The ?affiliatePartnerCode=CODE parameter can be added to any site URL

Still need help? Contact Us Contact Us