Skip to content
← Back to blog
May 18, 2026 · cod · affiliate-marketing · shopify · tracking

Three ways to track affiliate sales for Cash on Delivery Shopify stores

Duplicate product, referral link, discount code — how each tracking method holds up against the realities of TikTok in-app browsers, ad-blockers, and COD attribution.

There are essentially three working methods to attribute a sale to an affiliate on Shopify. Each one has different strengths, different failure modes, and different fit depending on where the affiliate is publishing and how the buyer is reaching your checkout.

For Cash on Delivery merchants, the choice matters more than for card-only stores — because in COD markets, the bulk of traffic comes through paid social (TikTok, Instagram, Facebook), where the standard cookie-based affiliate model is the least reliable.

This post is a practical comparison of the three methods, with concrete guidance on which to assign to which type of affiliate.

Method 1 — Duplicate product

How it works: You create a hidden duplicate of the product, with a unique handle, and assign it to a specific affiliate. The affiliate’s traffic lands directly on that duplicate product page. When an order is placed on that product, attribution is structural — the product itself encodes the affiliate identity.

What survives: Everything. Ad-blockers don’t matter. Third-party cookies don’t matter. In-app browsers (TikTok’s webview, Instagram’s webview, Messenger’s webview) don’t matter. The buyer is literally on a different URL with a different SKU. There is no signal to lose.

Tradeoffs:

  • The product duplicate is a separate SKU in your catalog, which means SKU sprawl over time if you onboard many affiliates. (COD Affiliates handles cleanup when an affiliate is removed.)
  • You can’t run the same merchandise photos against multiple affiliates with shared inventory tracking unless you wire up Shopify’s inventory groups carefully. Most stores accept this complexity in exchange for clean attribution.
  • The buyer never sees the affiliate’s name. Some merchants want affiliates to feel “credited” in the buyer’s experience — duplicate product is invisible. (Use referral link if visibility matters.)

Best fit:

  • TikTok creators driving traffic to in-app browsers
  • Instagram creators using the in-app link sticker
  • Paid media buyers running Facebook/Instagram ads where attribution often fails
  • Any affiliate publishing in environments where cookies will be killed

This is the most reliable method for COD markets where mobile-in-app-browser traffic dominates.

How it works: The classic. Each affiliate gets a unique link with a tracking parameter (typically a UTM, sometimes a custom slug like your-shop.com/r/maria). When the buyer clicks, a first-party cookie is set with the affiliate ID. When the buyer eventually checks out, the cookie is read and the commission attaches.

What survives: First-party cookies, mostly. Cross-device only if the buyer is signed into Shopify customer accounts. Most desktop browsers without aggressive privacy extensions handle this fine.

Tradeoffs:

  • Falls apart in iOS Safari with Intelligent Tracking Prevention (ITP), which expires first-party cookies set via redirects after 7 days, and aggressively short windows in private modes.
  • In TikTok and Instagram in-app browsers, cookies are isolated per session — open the app again later, and the cookie is gone. Many cancel-and-rebuy COD journeys break here.
  • Works fine in desktop blog reader traffic, email click-through, YouTube description links, podcast show notes.

Best fit:

  • Bloggers writing review posts (desktop traffic, organic SEO)
  • YouTubers with affiliate links in video descriptions
  • Email newsletters where the recipient clicks from desktop
  • Podcasters with show-note links

If your traffic is mostly desktop-based, referral link is the simplest and most familiar to affiliates. If it’s mostly mobile in-app, it’s the weakest.

Method 3 — Discount code

How it works: Assign a unique discount code to each affiliate (MARIA10, DIEGO5, JUNE15, whatever). The affiliate promotes the code verbally or visually. The buyer types the code in at checkout. The code maps to the affiliate.

The “discount” can be a real percentage off, a flat dollar amount, or zero — just a tracking code that does nothing for the buyer but identifies the affiliate. Some merchants run tracking-only codes with no discount when the affiliate already has audience-driven conversion.

What survives: Everything that doesn’t involve cookies or links. Doesn’t matter where the buyer clicked from. Doesn’t matter what browser they’re on. Doesn’t matter if they took a screenshot and typed the URL manually. The code at checkout is the only signal needed.

Tradeoffs:

  • The buyer must remember and enter the code. Drop-off is real — typing a code on mobile is friction. A real discount mitigates this (people are motivated to enter codes that save money).
  • The discount cuts into your margin unless you treat it as part of the affiliate’s commission budget (e.g., affiliate gets 10% commission or an 8% commission plus a 10% discount the buyer types in — pick one, not both).
  • Some buyers see a code field and feel obligated to find a code, sending them off-site to coupon sites. Generally not a big issue at COD store scale, but worth knowing.

Best fit:

  • TikTok / Instagram creators who say “use code MARIA10 at checkout” in the video
  • Podcast hosts reading the code out loud
  • Streamers, YouTubers, anywhere the call-to-action is verbal
  • Any influencer working off short-form video

For influencer-led COD marketing — which is most of the action in LATAM and SEA — this is the cleanest fit.

How to decide per affiliate

A rough rule that holds up in practice:

Affiliate publishes on…Use
TikTok, Instagram Reels, short-form videoDiscount code (verbal) or Duplicate product (link)
YouTube video descriptions, podcastsReferral link + optional discount code as backup
Blog posts, organic content, email newslettersReferral link
Facebook/Instagram paid adsDuplicate product (avoid attribution loss)
WhatsApp lists, Telegram channelsDiscount code

Don’t force one method on all affiliates. The cleanest setup is to let each affiliate pick the method that fits their channel — and to track all three under the same commission model.

A note about COD confirmation

Whichever method you use, the commission state machine is what matters most for a Cash on Delivery store. Tracking the order to an affiliate is the attribution problem. Knowing that the order actually collected — that the buyer received the package, paid in cash, and the shop got the money — is the settlement problem.

A standard affiliate app solves attribution and then assumes settlement happened. For card-only stores that assumption is fine. For COD stores, it isn’t.

COD Affiliates tracks all three methods above and adds a confirmation flow: commissions stay Pending until the order is marked as paid in Shopify, then flip to Confirmed. Your affiliates only ever see the real number. Your dashboard doesn’t lie about what you owe.

Install COD Affiliates from the Shopify App Store → — free for the first 100 merchants, forever.

Stop paying commission on orders that cancel at the door.

Install COD Affiliates from the Shopify App Store. Free for the first 100 merchants — forever.