How does referral tracking work?

An order gets attributed to an affiliate in one of three ways: a referral link, a unique discount code, or a connected customer. Attribution comes first, then the commission calculation, and it only happens when the method's conditions are met. For links, that includes the customer's cookie consent under Shopify's customer privacy settings.

The three attribution methods

Referral links carry a tracking code such as sacode and can include optional UTM parameters. When a customer visits through a link, Shopify's customer privacy and cookie-consent rules decide whether the tracking cookie can be set at all.

Discount codes work at checkout instead. With standard codes, a unique reusable code assigned to an affiliate identifies that affiliate when the customer applies it. With single-use codes, the customer claims a unique one-time code after clicking the affiliate's referral link; the reserved name on the affiliate is not a working Shopify code.

Connected customers are a Pro feature. With it enabled, a customer who completes a first referred purchase can become connected to the referring affiliate, and later purchases can stay associated with that affiliate under the feature's rules.

From click to commission

The customer opens the affiliate's link, or uses the affiliate's code during checkout. If Shopify's privacy requirements and the customer's consent permit it, the tracking cookie is set. The customer completes the purchase through Shopify checkout, the order flows to Simple Affiliate for referral and commission processing, and the commission rules in effect when the referral was made are applied.

Nothing is estimated from the click alone. The completed Shopify order, plus the rules at referral time, determines the result.

Rules that catch people out

  • A link click may not create a tracking cookie when the customer hasn't granted the consent Shopify's privacy settings require.
  • Connected-customer attribution begins only after a first referred purchase, and only with the Pro feature enabled.
  • Built-in anti-spam controls can filter self-referrals, and can help filter suspicious affiliate signup activity too.

Pick methods to match how your customers buy. Links suit campaign tracking, codes work entirely at checkout, and connected customers keep attribution going when the Pro feature is active.

Changelog releases

This topic appears in the following release notes: