Skip to main content
Contact Form 7 → AwinIntegration guide

Connecting Contact Form 7 to Awin

Contact Form 7 is free, everywhere, and stores nothing by default — which is the whole problem. 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 Contact Form 7 submission 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

Contact Form 7 leads on Awin: the awc value rarely reaches the form

Confirm your Awin program pays for leads first. Set a first-party cookie from awc at landing, copy it into a hidden Contact Form 7 field on submit, and post the lead server-side from wpcf7_mail_sent with the lead commission group and a stable order reference, the Flamingo message ID or your own row ID, so leads can be validated.

Awin programs usually commission sales, but lead-based commission groups exist for quote requests and sign-ups; confirm your program is configured for leads before building anything. A CF7 submission then becomes a lead conversion carrying the awc value, a unique order reference, the lead commission group and either zero or the fixed amount you pay.

The common break is page position. The awc parameter arrives on the landing URL, so a [hidden awc default:get] field only works if the form sits on that exact page. A publisher click that lands on a blog post and converts on /contact arrives at the form with an empty field. Set a first-party cookie from awc at landing, copy it into the hidden field on submit, and post the conversion server-side from the wpcf7_mail_sent hook alongside Awin's own tag.

Contact Form 7 also has no reference to send. Awin deduplicates on order reference and you validate leads during the approval period, so you need a stable ID that you can look up again weeks later: the Flamingo message ID or your own table's row. Without stored submissions you cannot decline the spam and duplicate leads you were charged for, because nothing links Awin's pending transaction back to an email in somebody's inbox.

Contact Form 7 → Awin · what breaks

Why this join usually fails — Contact Form 7 → Awin

  1. 01

    The Awin click reference, awc never reaches Contact Form 7

    There is no entries table to write to, so the identifier has to be captured into a hidden field and persisted by whatever you add for storage. Contact Form 7 submits over AJAX, so the page does not reload and anything expecting a navigation event never fires.

  2. 02

    AJAX submission means no page load to hook

    Setups that fire a conversion on thank-you-page load simply never fire. Setups that listen for the DOM event miss anyone whose script execution was blocked or deferred.

  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.

Contact Form 7 → Awin · the fix

What working looks like — Contact Form 7 → Awin

  • The Awin click reference, awc on every submission

  • 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

Contact Form 7 → Awin · architecture

How Contact Form 7 and Awin actually connect

  1. 1

    Contact Form 7 holds the truth

    Out of the box Contact Form 7 emails the submission and keeps no record. Before any attribution work is meaningful, submissions have to be stored somewhere queryable. That is step one and it is not optional.

  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 Contact Form 7 submission.

  4. 4

    The event source decides reliability

    Fire server-side from PHP. The browser-side wpcf7mailsent DOM event exists and is commonly used, but it depends on the visitor's browser executing correctly and on the AJAX response arriving — the server hook does not.

  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.

Contact Form 7 → Awin · normal or broken

Working vs. broken, side by side — Contact Form 7 → Awin

Normal, not a fault

  • The Awin click reference, awc present on the submission

  • Sent from the wpcf7_mail_sent hook

  • 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

    There is no entries table to write to, so the identifier has to be captured into a hidden field and persisted by whatever you add for storage. Contact Form 7 submits over AJAX, so the page does not reload and anything expecting a navigation event never fires.

  • Sent from the browser

    Setups that fire a conversion on thank-you-page load simply never fire. Setups that listen for the DOM event miss anyone whose script execution was blocked or deferred.

  • 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

Contact Form 7 → Awin · diagnose

Diagnostic order — Contact Form 7 → Awin

  1. 01

    Count submissions carrying the Awin click reference, awc

  2. 02

    Follow one real conversion end to end

  3. 03

    Confirm submissions are being stored at all

    If the only record is an email inbox, there is nothing to reconcile and no way to prove any number. Fix storage before touching attribution.

  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.

Contact Form 7 → Awin · prove

How it gets proven — Contact Form 7 → Awin

Source of truth

Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.

  • The Awin click reference, awc confirmed present on a live submission.
  • Validated sales reconciled per order reference against your own records, with voucher-sourced sales identified and the paid-media overlap stated.
  • Stored submissions confirmed to match the email record for the same period, before any attribution claim is made.

Contact Form 7 → Awin · free audit

What we check in the free audit

  • Count submissions carrying the Awin click reference, awc
  • Follow one real conversion end to end
  • Confirm submissions are being stored at all
  • Segment publishers by type and check where the click happened in the journey
  • Read the match rate, not the success message

Checked against

Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.

Get my free conversion tracking audit

Free30 minutesNo obligation

Contact Form 7 → Awin · when not to buy

When you don't need this — Contact Form 7 → Awin

  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the Awin click reference, awc.
  • If you are on Contact Form 7 and serious about attribution, moving to a form plugin that stores entries is often cheaper than working around the one that does not. We will say so rather than bill for the workaround.
  • 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.

Contact Form 7 → Awin · what we deliver

What gets built — Contact Form 7 → Awin

  • Identifier capture into Contact Form 7

    Hidden field populated from a first-party cookie, plus a storage layer so the submission and its identifier survive past the email. The wpcf7_before_send_mail hook is where both happen.

  • Event source: the wpcf7_mail_sent hook

    Fire server-side from PHP. The browser-side wpcf7mailsent DOM event exists and is commonly used, but it depends on the visitor's browser executing correctly and on the AJAX response arriving — the server hook does not.

  • 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

    Nothing to reverse. Spam filtering before the send is the equivalent concern.

Written guarantee

95%+ tracking accuracy

Measured against Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Contact Form 7 → Awin questions, answered

Yes, if the program has a lead commission group. Send each submission with the awc value and a unique reference from your stored entries, then approve or decline during validation.

Free · 30 min

Get Contact Form 7 and Awin joined properly

Free30 minutesNo obligation