Skip to main content
Swell → AwinIntegration guide

Connecting Swell to Awin

Swell is headless commerce with subscriptions built in, which puts two conversion types in one system: a one-off order and a recurring plan that will bill again next month. Awin is a traditional last-click affiliate network, and last-click is the whole problem: whoever touched the customer most recently takes the commission, which is a structural invitation for voucher-code sites to intercept sales you had already won. The join between them succeeds or fails on one thing: whether the Awin click reference, awc reaches the Swell order before the conversion happens, because Awin can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Swell to Awin: awc that survives a headless storefront

Single-page Swell storefronts can rewrite the landing URL, so store awc in a first-party cookie on first load and write it into cart metadata. Post the sale from the paid-order webhook with the Swell order ID as order reference, value as your terms define it and a commission group. Never post renewals, and decline early refunds and cancellations.

The awc parameter arrives on the landing URL, and on a headless Swell storefront the first thing a single-page app does is often rewrite that URL during client-side routing. If the parameter is not stored before the router runs, it is gone. Capture it on first load into a first-party cookie and write it into the Swell cart's metadata when the cart is created, so the order carries it into the webhook.

Post the sale server-to-server from the Swell paid-order webhook with the awc, the Swell order ID as the order reference, the order value net of tax and shipping as your terms define it, and the right commission group. Subscription stores need a deliberate decision: commission the first payment only, or set up a separate group for subscription sales. Never post renewals as new sales, because Awin will treat every billing cycle as a fresh commissionable order.

Refunds and cancellations inside the first period are the validation question. Awin holds sales as pending, so decline a sale when the Swell order is refunded or the subscription is canceled before your approval period ends. Also look at which Swell coupon codes are being used on Awin-tracked orders; a voucher site appearing at checkout is exactly where Awin's dedup flag earns its keep.

Swell → Awin · what breaks

Why this join usually fails — Swell → Awin

  1. 01

    The Awin click reference, awc never reaches Swell

    Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.

  2. 02

    Renewals indistinguishable from new orders

    In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.

  3. 03

    Voucher-code publishers intercepting sales at the checkout

    A customer arrives from a paid ad, reaches the basket, opens a new tab to search for a discount code, clicks a voucher site's link and returns to complete the order. Under last-click the voucher site earns the commission on a sale your advertising produced. This is not a fringe case; on many programmes it is the largest single publisher category.

  4. 04

    Nothing reconciles afterwards

    Awin's reporting shows the sale, the publisher and the commission group. Read the publisher type and the time between click and sale — a click seconds before the order tells you what happened.

Swell → Awin · the fix

What working looks like — Swell → Awin

  • The Awin click reference, awc on every order

  • Conversions arriving in Awin

    The sale appears as pending, publishers see it in their reporting, and it validates after your approval period.

  • Reconciled against the source

Swell → Awin · architecture

How Swell and Awin actually connect

  1. 1

    Swell holds the truth

    A subscription's first payment and its renewals are the same object type in most exports. Sending both means one acquisition produces a conversion every billing cycle.

  2. 2

    Awin needs a click to match

    Awin needs the click reference, a unique order reference, the order value and the commission group. Missing the click reference means the sale is untracked and the publisher will query it.

  3. 3

    The identifier is the bridge

    The Awin click reference, awc, captured at the visit and carried into the Swell order.

  4. 4

    The event source decides reliability

    Send one-off orders and first subscription payments. Renewals belong in a retention figure.

  5. 5

    Deduplication at the destination

    Awin deduplicates on your order reference. It also supports a dedup flag so you can decline to commission sales that another channel already claimed — which is the feature most advertisers do not know exists and should be using.

Swell → Awin · normal or broken

Working vs. broken, side by side — Swell → Awin

Normal, not a fault

  • The Awin click reference, awc present on the order

  • Sent from the Swell order and subscription webhooks

  • Deduplicated correctly

    Awin deduplicates on your order reference. It also supports a dedup flag so you can decline to commission sales that another channel already claimed — which is the feature most advertisers do not know exists and should be using.

  • Reconciles with the source

Actually broken

  • The Awin click reference, awc missing on most records

    Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.

  • Sent from the browser

    In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.

  • Counted twice, or not at all

    A customer arrives from a paid ad, reaches the basket, opens a new tab to search for a discount code, clicks a voucher site's link and returns to complete the order. Under last-click the voucher site earns the commission on a sale your advertising produced. This is not a fringe case; on many programmes it is the largest single publisher category.

  • Nobody has reconciled it

Swell → Awin · diagnose

Diagnostic order — Swell → Awin

  1. 01

    Count orders carrying the Awin click reference, awc

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare monthly conversion count against new customer count

    If conversions exceed new customers, renewals are being counted as acquisition.

  4. 04

    Segment publishers by type and check where the click happened in the journey

    Voucher and cashback clicks that occur within seconds of an order are interception, not acquisition. Use the deduplication flag rather than paying for both.

  5. 05

    Read the match rate, not the success message

    Awin's reporting shows the sale, the publisher and the commission group. Read the publisher type and the time between click and sale — a click seconds before the order tells you what happened.

Swell → Awin · prove

How it gets proven — Swell → Awin

Source of truth

Swell orders and subscriptions by date, held apart from each other.

  • The Awin click reference, awc confirmed present on a live order.
  • Validated sales reconciled per order reference against your own records, with voucher-sourced sales identified and the paid-media overlap stated.
  • First payments reconciled against imported conversions, with renewals reported separately.

Swell → Awin · free audit

What we check in the free audit

  • Count orders carrying the Awin click reference, awc
  • Follow one real conversion end to end
  • Compare monthly conversion count against new customer count
  • Segment publishers by type and check where the click happened in the journey
  • Read the match rate, not the success message

Checked against

Swell orders and subscriptions by date, held apart from each other.

Get my free conversion tracking audit

Free30 minutesNo obligation

Swell → Awin · when not to buy

When you don't need this — Swell → Awin

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Awin click reference, awc.
  • A store selling only one-off products does not have the renewal problem.
  • If you run no affiliate programme this is irrelevant. If you do, the commission structure by publisher type will change your economics more than the tracking accuracy will.

Swell → Awin · what we deliver

What gets built — Swell → Awin

  • Identifier capture into Swell

    Write the identifier into customer metadata so the first payment can be attributed and renewals can be recognised as renewals.

  • Event source: the Swell order and subscription webhooks

    Send one-off orders and first subscription payments. Renewals belong in a retention figure.

  • Dispatch to Awin

    Server-to-server conversion posting from your order system, or the tracking pixel where server posting is not available.

  • Reversals where they exist

    Refunds and cancellations inside the first period reverse.

Written guarantee

95%+ tracking accuracy

Measured against Swell orders and subscriptions by date, held apart from each other.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Swell → Awin questions, answered

Usually the awc parameter was dropped by client-side routing before it was saved. Store it on first page load and attach it to the Swell cart's metadata.

Free · 30 min

Get Swell and Awin joined properly

Free30 minutesNo obligation