Skip to main content
Contentful → AwinIntegration guide

Connecting Contentful to Awin

Contentful is headless content only — it has no checkout, no orders and no customers, which is the single most important thing to establish before anyone quotes for work. 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 front-end conversion, not a Contentful record 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

Contentful storefronts on Awin: catch awc before the cache

On a Contentful storefront, capture Awin's awc in edge middleware or client code into a first-party cookie on every route, because cached static landing pages run no server code. Carry it onto the commerce order as an attribute and post the conversion server-to-server with awc, order reference and commission group, using Awin's deduplication flag against voucher sites.

Awin's ready-made plugins for commerce platforms assume the platform renders the checkout pages. On a Contentful build the front end is your own Next.js or similar app, so the plugin route may cover the order data but not the landing page where the awc click reference arrives. That landing page is often statically generated and served from a CDN, which means no server code runs to read awc from the URL.

Capture awc in edge middleware or in client code that writes a first-party cookie on every route, then pass it into the cart and onto the order in the commerce platform as an order attribute. The conversion should post server-to-server from the commerce system with the awc value, the order reference and the commission group. A confirmation-page tag is a backup, and on a single-page checkout it fires only if the route change triggers it.

Content sites built on Contentful often run their own coupon and gift-guide pages. When a voucher site intercepts a sale, the awc on the order is the voucher publisher's, not the content partner's. Record the channel that last drove the visit alongside the order and use Awin's deduplication flag, so sales your own content or paid media won are not commissioned to a coupon site.

Contentful → Awin · what breaks

Why this join usually fails — Contentful → Awin

  1. 01

    The Awin click reference, awc never reaches Contentful

    Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis.

  2. 02

    Blaming the CMS for a front-end problem

    Headless setups fail at the front end — client-side routing that fires one pageview per session, an identifier lost on a route change — and the CMS gets blamed. Contentful is not in that path at all.

  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.

Contentful → Awin · the fix

What working looks like — Contentful → Awin

  • The Awin click reference, awc on every conversion

  • 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

Contentful → Awin · architecture

How Contentful and Awin actually connect

  1. 1

    Contentful holds the truth

    Contentful stores content and serves it via API. The commercial record lives in your commerce platform, your CRM or your billing system, and that is where measurement belongs.

  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 front-end conversion, not a Contentful record.

  4. 4

    The event source decides reliability

    Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.

  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.

Contentful → Awin · normal or broken

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

Normal, not a fault

  • The Awin click reference, awc present on the conversion

  • Sent from your commerce, CRM or billing system

  • 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

    Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis.

  • Sent from the browser

    Headless setups fail at the front end — client-side routing that fires one pageview per session, an identifier lost on a route change — and the CMS gets blamed. Contentful is not in that path at all.

  • 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

Contentful → Awin · diagnose

Diagnostic order — Contentful → Awin

  1. 01

    Count conversions carrying the Awin click reference, awc

  2. 02

    Follow one real conversion end to end

  3. 03

    Establish which system holds the conversion before anything else

    In a headless stack it is never the CMS, and starting there wastes the engagement.

  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.

Contentful → Awin · prove

How it gets proven — Contentful → Awin

Source of truth

Whatever system takes the money — Contentful holds none of it.

  • The Awin click reference, awc confirmed present on a live conversion.
  • Validated sales reconciled per order reference against your own records, with voucher-sourced sales identified and the paid-media overlap stated.
  • The conversion confirmed sourced from the commerce or CRM system rather than from anything in the content layer.

Contentful → Awin · free audit

What we check in the free audit

  • Count conversions carrying the Awin click reference, awc
  • Follow one real conversion end to end
  • Establish which system holds the conversion before anything else
  • Segment publishers by type and check where the click happened in the journey
  • Read the match rate, not the success message

Checked against

Whatever system takes the money — Contentful holds none of it.

Get my free conversion tracking audit

Free30 minutesNo obligation

Contentful → Awin · when not to buy

When you don't need this — Contentful → Awin

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the Awin click reference, awc.
  • There is no Contentful-specific tracking build. The work is in your front-end framework and your commerce system, and we would say so rather than bill for the CMS.
  • 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.

Contentful → Awin · what we deliver

What gets built — Contentful → Awin

  • Identifier capture into Contentful

    Capture and persist the identifier in the front-end application, server-side, and carry it into whichever system records the conversion.

  • Event source: your commerce, CRM or billing system

    Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.

  • 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

    Handled wherever the money lives.

Written guarantee

95%+ tracking accuracy

Measured against Whatever system takes the money — Contentful holds none of it.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Contentful → Awin questions, answered

Capture awc in your front-end app or edge middleware into a first-party cookie, attach it to the order in your commerce platform, and post the conversion server-to-server.

Free · 30 min

Get Contentful and Awin joined properly

Free30 minutesNo obligation