Skip to main content
Shopify → AwinIntegration guide

Connecting Shopify to Awin

Shopify is the system of record for the order, and its admin numbers are the ones the business runs on. 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 Shopify 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

Shopify to Awin: the awc value on the order, not the thank-you page

Capture awc on landing into a first-party cookie, overwrite it only on a newer Awin click, and write it to a cart attribute so the paid order carries it. Post the sale server-side with the Shopify order ID as order reference and value after discounts, before shipping and tax. Send refunds and cancellations as amendments before validation closes.

Awin's last-click model makes the awc value the commission decision, and on Shopify it has to survive two hops: from the landing URL into a first-party cookie on the storefront, then from the storefront into the order. Capture awc on landing, overwrite it only when a newer Awin click arrives, and write it to a cart attribute so the paid order carries it. Post the sale server-side with the Shopify order ID as the order reference, the value after discounts and before shipping and tax unless your terms say otherwise, and the commission group derived from the line items.

Check whether Awin's Shopify app covers your setup before building, and confirm what it sends as order value and whether it reads the click reference from the order or from a browser event. Shopify's discount codes are useful against voucher interception: the order records the code used, so you can match a code to the publisher it was issued to and decline or deduplicate sales where a voucher click landed seconds before purchase.

The Shopify-specific failure is amendment. Orders get edited after placement, partially refunded, or cancelled, and none of that changes the pending sale in Awin unless you send the amendment before validation closes. Map refunds/create and cancellations to Awin's amend or decline step by order reference, and reconcile weekly.

Shopify → Awin · what breaks

Why this join usually fails — Shopify → Awin

  1. 01

    The Awin click reference, awc never reaches Shopify

    Shopify's checkout is locked down. Custom scripts on the checkout steps are not permitted on standard plans, and the old additional-scripts route is gone, so the identifier has to be captured on the storefront and carried into the order through cart or order attributes rather than read at the checkout itself.

  2. 02

    Checkout extensibility hides what you need

    Shopify deliberately restricts what runs during checkout. Setups that assumed free rein there broke when the platform moved to Checkout Extensibility, and many stores have been quietly under-reporting since.

  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.

Shopify → Awin · the fix

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

Shopify → Awin · architecture

How Shopify and Awin actually connect

  1. 1

    Shopify holds the truth

    The order carries line items, discounts, shipping, tax, currency and the customer. Note which figure you intend to report — total, subtotal, or net of shipping and tax — because most mismatches between Shopify and an ad platform turn out to be two people comparing two different numbers.

  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 Shopify order.

  4. 4

    The event source decides reliability

    Send when Shopify says the order is paid, from your server. This also covers draft orders, POS, and the customer who closes the tab on the thank-you page — none of which a pixel on the order-status page will ever see.

  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.

Shopify → Awin · normal or broken

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

Normal, not a fault

  • The Awin click reference, awc present on the order

  • Sent from the orders/paid 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

    Shopify's checkout is locked down. Custom scripts on the checkout steps are not permitted on standard plans, and the old additional-scripts route is gone, so the identifier has to be captured on the storefront and carried into the order through cart or order attributes rather than read at the checkout itself.

  • Sent from the browser

    Shopify deliberately restricts what runs during checkout. Setups that assumed free rein there broke when the platform moved to Checkout Extensibility, and many stores have been quietly under-reporting since.

  • 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

Shopify → Awin · diagnose

Diagnostic order — Shopify → Awin

  1. 01

    Count orders carrying the Awin click reference, awc

  2. 02

    Follow one real conversion end to end

  3. 03

    Open a recent paid order and read its note attributes

    If the identifier is not on the order, nothing downstream can attribute it. Check ten orders, not one — partial coverage is the normal failure, not total absence.

  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.

Shopify → Awin · prove

How it gets proven — Shopify → Awin

Source of truth

Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.

  • 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.
  • Order totals in Shopify Admin reconciled per order, not on the summed total, over a closed window.

Shopify → 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
  • Open a recent paid order and read its note attributes
  • Segment publishers by type and check where the click happened in the journey
  • Read the match rate, not the success message

Checked against

Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.

Get my free conversion tracking audit

Free30 minutesNo obligation

Shopify → Awin · when not to buy

When you don't need this — Shopify → Awin

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Awin click reference, awc.
  • Shopify's own native channel integrations already cover simple single-currency stores adequately. If your admin numbers and platform numbers already agree, you do not need this.
  • 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.

Shopify → Awin · what we deliver

What gets built — Shopify → Awin

  • Identifier capture into Shopify

    Capture the click identifier on the storefront, write it to a cart attribute so it becomes an order note attribute, and read it back server-side from the order. That path survives the checkout domain hop that breaks cookie-based approaches.

  • Event source: the orders/paid webhook

    Send when Shopify says the order is paid, from your server. This also covers draft orders, POS, and the customer who closes the tab on the thank-you page — none of which a pixel on the order-status page will ever see.

  • 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/create fires with the original order reference, so refunds and cancellations can be reversed at the destination.

Written guarantee

95%+ tracking accuracy

Measured against Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Shopify → Awin questions, answered

Most often the awc value never reached the order because it was only read from a cookie on the thank-you page, which Shopify no longer lets you script. Store it as a cart attribute and post from the order.

Free · 30 min

Get Shopify and Awin joined properly

Free30 minutesNo obligation