Skip to main content
COD Affiliate
Documentation

COD Affiliate Documentation

Everything you need to set up and run an affiliate program built for Cash on Delivery.

1

Overview

COD Affiliate is an affiliate, influencer and referral program manager built for Cash on Delivery Shopify stores. You create affiliates, share their tracking links, and the app attributes orders and confirms commissions on delivery — so returned and cancelled orders are never paid. It is merchant-facing: you manage everything from your Shopify admin.

Affiliate management

Create affiliates with custom commission rates and statuses.

Link tracking

Unique ?ref links with first-party cookie attribution.

Commission control

Approve or decline in bulk, with commissions confirmed on delivery.

Storefront block

One-click Theme App Extension tracking, no code.

2

Getting started

You can be live in a few minutes. Install the app, turn on tracking, create an affiliate and share their link.

  1. 1
    Install the app

    Add COD Affiliate from the Shopify App Store and open it from your Shopify admin. The 14-day free trial needs no credit card.

  2. 2
    Turn on storefront tracking

    In the theme editor, enable the "Affiliate Tracking" app block so referral visits are recorded across your store.

  3. 3
    Set your defaults

    In settings, choose a default commission, attribution window, approval rule and tracking parameter.

  4. 4
    Create your first affiliate

    Add an affiliate to generate their unique tracking link, then copy it and share it.

  5. 5
    Place a test order

    Visit your store through the affiliate's link and place a test order to confirm it is attributed correctly.

3

Creating affiliates

An affiliate can be an influencer, partner, reseller or loyal customer. Each one gets a unique link, its own commission rate and a status you control.

Affiliate details

Add the affiliate's name and contact details; the app generates their unique tracking link automatically.

Commission override

Use your default commission, or set a custom percentage or flat amount for this specific affiliate.

Status

Set Approved, Pending or Disabled to control whether their link earns commissions.

Tracking-only mode

Give a partner a working link that records orders but never earns a commission.

The affiliate list shows live stats — conversions, pending and earned — with a one-click button to copy each tracking link.

5

Commissions & approval

Commissions are confirmed on delivery by default, so you only pay for orders that actually arrive. Review and clear them from the Pending Commissions queue.

Commission rules

Set a percentage of the order or a flat amount, applied as your default or overridden per affiliate.

Trigger

Choose when a commission is created: on order, on payment, on delivery or manual.

Pending queue

See every commission awaiting your decision in one place after delivery.

Bulk approve or decline

Approve or decline many commissions at once, and add a reason when you decline.

Payouts are manual and handled outside the app — the queue tells you exactly what each affiliate has earned so you can pay them your own way.

6

Attribution

Attribution decides which affiliate gets credit for an order. Configure the window and the model, and the app matches orders through several signals.

Attribution window

Credit an affiliate for orders placed within 1 to 365 days of the click (default 60).

Attribution models

Choose first-touch, last-touch, linear or position-based crediting.

Order matching

Orders are matched by checkout token, then cart token, then hashed email, then cookie.

Test orders

Include or exclude test orders so your stats stay clean.

Pick the window and model that fit your sales cycle — longer windows suit considered purchases, shorter ones suit impulse buys.

7

Storefront setup

Tracking runs on your storefront through a one-click theme block, with an automatic fallback so it works on any theme.

  1. 1
    Open the theme editor

    From your Shopify admin, open Online Store and edit your live theme.

  2. 2
    Enable the tracking block

    Add and enable the "Affiliate Tracking" app block — no code required.

  3. 3
    Rely on the ScriptTag fallback

    On themes that do not support app blocks, a ScriptTag keeps tracking working automatically.

  4. 4
    Verify a referral

    Open your store through a test ?ref link and confirm the visit and order are recorded.

8

Troubleshooting & FAQ

Quick answers to the most common setup questions.

Orders are not attributed

Confirm the "Affiliate Tracking" block is enabled on your live theme and that you visited through a valid ?ref link within the attribution window.

A commission did not confirm

If your trigger is set to on delivery, the commission only confirms once the order is marked delivered — returned or cancelled orders never confirm.

The tracking parameter is wrong

Check the custom tracking parameter in settings; links must use the same parameter name (default "ref").

Need more help?

Contact our support team from the link in the sidebar — we typically reply within minutes.

Launch an affiliate program COD can trust

Everything you need to set up and run an affiliate program built for Cash on Delivery.

Add to Shopify

CODRocket Support

Typically replies within minutes

Start Chat