Skip to main content
AfterSell → AwinIntegration guide

Connecting AfterSell to Awin

AfterSell works through checkout extensions and post-purchase pages, which puts its offers inside Shopify's sandboxed surfaces where your own scripts cannot reach. 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 AfterSell upsell 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

AfterSell upsells and Awin commission: decide what publishers earn

First decide in your program terms whether AfterSell upsells earn commission. Then send the conversion server-side from the order record with the awc stored on the cart, the order reference, and original cart lines and upsell lines in separate commission groups. Make browser tags agree, and amend or decline returned upsell lines before approval.

An accepted AfterSell offer raises the order value after the publisher's job was done. The customer arrived through a cashback or content publisher, bought, and then said yes to an add-on your checkout offered. Whether that add-on is commissionable is a program decision, and the tracking should implement it rather than leave it to whichever tag happened to read the total.

Awin lets you split an order's value across commission groups. Send the conversion server-side from the order record with the awc you stored on the cart, the order reference, and the original cart lines and the AfterSell lines in separate commission groups, so you can pay a lower rate, or nothing, on upsell revenue. Make sure any browser-side tag agrees, since a page-fired tag sees a different total from the order once the upsell lands.

Post-purchase add-ons are returned more often than items customers went looking for, because the decision took one click. Amend or decline those lines in Awin before transactions are approved, and use the dedup flag where another channel already claimed the sale. Write the upsell policy into your program terms; publishers query missing commission, and the terms are your answer.

AfterSell → Awin · what breaks

Why this join usually fails — AfterSell → Awin

  1. 01

    The Awin click reference, awc never reaches AfterSell

    Extension surfaces are isolated by design. Attempting to instrument them client-side does not work and is not supported.

  2. 02

    Trying to instrument a sandbox

    Time gets spent attempting to observe checkout extension behaviour from the storefront. It cannot be done, by design, and every hour spent on it is an hour not spent on the server-side path that works.

  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.

AfterSell → Awin · the fix

What working looks like — AfterSell → 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

AfterSell → Awin · architecture

How AfterSell and Awin actually connect

  1. 1

    AfterSell holds the truth

    Checkout UI extensions run sandboxed. Nothing you write can observe them, so the only reliable view of what the customer accepted is the order itself.

  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 AfterSell upsell order.

  4. 4

    The event source decides reliability

    Send the final order total from the webhook, with upsell line items identified.

  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.

AfterSell → Awin · normal or broken

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

Normal, not a fault

  • The Awin click reference, awc present on the order

  • Sent from the Shopify order webhook

  • 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

    Extension surfaces are isolated by design. Attempting to instrument them client-side does not work and is not supported.

  • Sent from the browser

    Time gets spent attempting to observe checkout extension behaviour from the storefront. It cannot be done, by design, and every hour spent on it is an hour not spent on the server-side path that works.

  • 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

AfterSell → Awin · diagnose

Diagnostic order — AfterSell → Awin

  1. 01

    Count orders carrying the Awin click reference, awc

  2. 02

    Follow one real conversion end to end

  3. 03

    Confirm the conversion is sourced from the order, not from a page

    On modern Shopify checkout there is no supported page-based option left, so this is the only correct architecture.

  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.

AfterSell → Awin · prove

How it gets proven — AfterSell → Awin

Source of truth

The final Shopify order total, read from the order record.

  • 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.
  • Final order totals reconciled from the webhook against imported conversions.

AfterSell → 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
  • Confirm the conversion is sourced from the order, not from a page
  • Segment publishers by type and check where the click happened in the journey
  • Read the match rate, not the success message

Checked against

The final Shopify order total, read from the order record.

Get my free conversion tracking audit

Free30 minutesNo obligation

AfterSell → Awin · when not to buy

When you don't need this — AfterSell → Awin

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Awin click reference, awc.
  • If your conversions already come from the order webhook, checkout extensions change nothing for you.
  • 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.

AfterSell → Awin · what we deliver

What gets built — AfterSell → Awin

  • Identifier capture into AfterSell

    Do not try to instrument the checkout surface. Read the order server-side, which is the supported and more reliable path anyway.

  • Event source: the Shopify order webhook

    Send the final order total from the webhook, with upsell line items identified.

  • 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 reverse.

Written guarantee

95%+ tracking accuracy

Measured against The final Shopify order total, read from the order record.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

AfterSell → Awin questions, answered

That is your program's call, but many advertisers pay less or nothing on revenue the checkout generated after the click. Separate commission groups let tracking enforce the rule.

Free · 30 min

Get AfterSell and Awin joined properly

Free30 minutesNo obligation