Blog Affiliate marketing Guide

Decide how links and discount codes should share credit

Set affiliate attribution rules for competing links and codes, then test eight hypothetical purchase journeys before you promise creators a commission.

Eight separate purchase paths carry link and discount-tag symbols toward one commission token per order.

Give each purchase one payable owner under a rule agreed before launch. A workable starting policy is to let a valid creator code win, then use the last eligible affiliate click when no creator code applies. Keep earlier touches as reporting assists. Those are recommended affiliate attribution rules, not universal platform defaults. If your software cannot enforce them, change the policy or establish a reviewed adjustment process before promising payment.

Decide what your program rewards

Code-first attribution rewards the creator associated with the code used at checkout. Last-click attribution rewards the latest recorded affiliate referral within a defined window. Neither proves who caused the customer to buy.

The tradeoff matters when a shopper discovers a product through one creator and later uses another creator's code. Modash's affiliate tracking article describes this conflict and the problem of publicly shared codes. Treat those as reasons to declare a rule. A code redemption alone cannot tell you where the shopper found that code.

Use code-first when you want an assigned code to remain a payable signal even without a recorded click. Prefer last eligible click when rewarding recorded referrals matters more, and your system supports that priority. In either case, tell creators what happens when another partner supplies the other signal.

Split commission only if you deliberately want to pay for multiple roles and can reproduce the split on a statement. Do not start splitting orders case by case because two creators complain. That creates different terms for equally situated partners.

Write a policy your records can support

The following is an illustrative code-first policy. Its window, rate and deadlines are hypothetical choices, not industry benchmarks or Shopify defaults.

Policy fieldIllustrative rule
Payable unitOne unique paid order, with one affiliate owner
Code priorityA single active, assigned creator code used on the order wins over affiliate clicks
Click fallbackWithout an eligible creator code, the latest recorded eligible affiliate click wins
Click windowPurchase must occur within 30 elapsed days after the click, including the exact boundary
Other touchesDirect visits, brand emails and generic store discounts do not overwrite an eligible affiliate click
Code-only ordersCredit the code owner without requiring a click, while the code is active
Conflicting recordsHold orders with multiple eligible creator codes or tied click timestamps for review
Missing evidenceNo automatic affiliate credit without an eligible code or recorded eligible click
Commission baseMerchandise revenue after discounts and merchandise refunds; exclude tax and shipping
Commission rate10% of that base; round each order's final commission to cents
Review and changesAllow claims within 30 days of the statement; record a policy version and effective timestamp

Define an eligible click as a referral your affiliate system records for an active, approved partner. Use UTC timestamps for the window calculation. Define how program departures and code expiry affect existing clicks before accepting creators.

A click window and a code's active period are different clocks. Under this policy, an old click may expire while a valid code still earns credit. If that outcome conflicts with your program's economics, change the code rule before launch. The guide to defining an affiliate attribution window covers the window decision in more detail.

For conflicts, have the program owner inspect the order and available event sequence. Hold the commission while the conflict remains unresolved. Give the affected creators the decision and reason, with customer details removed. Avoid inventing a click time or assigning an unknown shopper to a creator.

Apply the rule to eight purchase journeys

Every journey and amount below is hypothetical. A and B are fictional affiliates. All referenced codes are active unless stated otherwise. Each order has $100.00 in merchandise revenue after discounts, before the listed refund. All clicks are recorded and eligible except where the row says otherwise. Purchases occur after the described touches.

OrderPurchase journeyPayable ownerCommissionReason
H01A click 2 days before purchase; no codeA$10.00Eligible click fallback
H02A click 5 days before; B click 1 day before; no codeB$10.00Latest eligible affiliate click
H03A click 1 day before; B code at checkoutB$10.00Creator code takes priority
H04A click and A code on the same orderA$10.00One order earns one commission
H05A click 31 days before; no codeNone$0.00Click window expired
H06A click 31 days before; active A code at checkoutA$10.00Code remains eligible independently
H07A click 2 days before; brand email 1 day before; generic store codeA$10.00Neither later touch overrides A
H08No recorded click; B code; $40.00 merchandise refundB$6.00Code-only credit on retained revenue

For an eligible order, commission equals the commission base multiplied by the rate. H08 therefore pays ($100.00 minus $40.00) multiplied by 10%, or $6.00. The example rounds each final order amount to two decimal places using half-up rounding; no row requires a fractional-cent adjustment.

Across these eight orders, A receives $40.00 and B receives $26.00. Total commission is $66.00. There are seven credited orders, with $660.00 of retained merchandise revenue assigned to an affiliate. H05 retains $100.00 of merchandise revenue but generates no affiliate commission under this policy.

H03 can retain A as an assist in a separate report. Do not add its full revenue to both creators' payable totals. Likewise, a later cross-device purchase without a code needs a supported recorded connection before it can qualify as a click-based order. Do not fill that gap with a guess.

Refunds change the commission base after attribution. Keep both the original amount and the adjustment. Use the returns reconciliation guide when designing the separate payout review.

Check the software before publishing the promise

Current documentation supports specific mechanics, not every policy you might want.

Shopify's Collabs program documentation separates customer-discount settings from creator commission settings. It also says that moving a creator to a new program retains their link and code while applying the new commission and discount. Record when program terms change; the visible code alone does not identify the applicable terms.

Shopify's creator payment documentation says links or codes can earn commission. It describes a merchant-selected holding period of 1 to 90 days, during which cancellation or a full refund automatically cancels pending commission. That holding period concerns payment review. It does not establish the click window in our example.

These pages do not settle code-versus-link priority for every configuration. They also do not establish that Collabs implements the illustrative policy above. Before adopting it:

  1. Find the current documentation for your affiliate tool's precedence and window settings. Save the URL and configuration date.
  2. Ask support about unresolved cases, particularly competing creator codes and links.
  3. Reproduce the eight journeys in an approved test setup. Compare the order owner, commission base and amount with your policy.
  4. Verify that adjustments appear once in both the creator statement and the payment record.
  5. Stop launch if the written promise and the payable result disagree.

Use the affiliate-link testing checklist to organize the pre-publication run. This article's calculations are policy examples, not results from a tested store.

Keep disclosures in the launch checklist

For endorsements affecting US consumers, the FTC's influencer disclosure guidance says financial relationships should be disclosed clearly with the endorsement. A private commission policy does not communicate that relationship to shoppers.

Ask creators to make the earning relationship understandable near the recommendation, and review placement for the format they use. Check the rules for other markets separately. This is an operational checklist, not legal advice.

Send creators the chosen policy and the conflict examples before they publish. Then have the person who approves payouts work through H03 and H08 using your actual settings. Resolve any difference before the first live link goes out.

Sources

  1. How to Track Affiliate Sales: 5 Methods, Their Limitations, and What Actually Works Modashaccessed Sep 27, 2026
  2. Setting up and managing Collabs programs Shopify Help Centeraccessed Sep 27, 2026
  3. Getting paid for commissions on Shopify Collabs Shopify Help Centeraccessed Sep 27, 2026
  4. Disclosures 101 for Social Media Influencers Federal Trade Commissionaccessed Sep 27, 2026