Skip to main content
Firebase Auth → AwinIntegration guide

Connecting Firebase Authentication to Awin

Firebase Auth is usually the identity layer in a mobile-first product, which means the user ID it issues is the only thing connecting a web visit to an in-app purchase. 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 Firebase user identity 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

Awin commissions when the click is on web and the purchase in-app

Save the awc to the Firebase user document at web sign-up, since later app purchases have no Awin cookie. Report the sale from your server when billing confirms the first payment, with the stored awc and your billing order ID as order reference. Wire app store refund notifications to decline transactions, and check whether app sales are commissionable.

Awin tracks a sale through the awc on a web landing page. Firebase products often convert in the app: the user clicks an affiliate link, signs up on the web, and pays later through an app store. Save the awc to the Firebase user document at web sign-up, because the app purchase happens where no Awin cookie exists.

Report the sale from your server when billing confirms the first payment, with the awc from the user document and your billing order ID as Awin's order reference. App store purchases add a wrinkle: Apple and Google handle refunds, and you only learn of one through their server notifications. Wire those to decline the Awin transaction before it is approved.

Check your Awin program terms for whether app store sales are commissionable at all and at what net value, since the store's fee comes out first. Users who started anonymous and linked at sign-up keep their UID, so the awc stays attached; users who created a second account with another sign-in method do not, and their purchase arrives with no click reference.

Firebase Auth → Awin · what breaks

Why this join usually fails — Firebase Auth → Awin

  1. 01

    The Awin click reference, awc never reaches Firebase Auth

    Anonymous authentication creates users before signup, and linking an anonymous account to a real one is a step teams frequently skip.

  2. 02

    Anonymous accounts never linked to real ones

    Firebase's anonymous auth is convenient and creates a separate user. If it is not linked at signup, the pre-signup activity and the paying customer are two different people in every downstream system.

  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.

Firebase Auth → Awin · the fix

What working looks like — Firebase Auth → Awin

  • The Awin click reference, awc on every account

  • 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

    Firebase Authentication's own records are the reference, not either dashboard.

Firebase Auth → Awin · architecture

How Firebase Auth and Awin actually connect

  1. 1

    Firebase Authentication holds the truth

    Firebase holds identity, not revenue. Its value to measurement is that it gives a stable key that survives the web-to-app transition where every cookie dies.

  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 Firebase user identity.

  4. 4

    The event source decides reliability

    Send paid conversions keyed on the user identity. Signups and anonymous sessions are stages, not revenue.

  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.

Firebase Auth → Awin · normal or broken

Working vs. broken, side by side — Firebase Auth → Awin

Normal, not a fault

  • The Awin click reference, awc present on the account

    Visible on the record itself in Firebase Authentication, not merely captured somewhere on the site.

  • Sent from your billing system, keyed on the user ID

  • 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

    Awin's count and Firebase Authentication's records agree within a few percent over a closed window.

Actually broken

  • The Awin click reference, awc missing on most records

    Anonymous authentication creates users before signup, and linking an anonymous account to a real one is a step teams frequently skip.

  • Sent from the browser

    Firebase's anonymous auth is convenient and creates a separate user. If it is not linked at signup, the pre-signup activity and the paying customer are two different people in every downstream system.

  • 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

    The dashboard shows a number and no one has compared it to Firebase Authentication.

Firebase Auth → Awin · diagnose

Diagnostic order — Firebase Auth → Awin

  1. 01

    Count accounts carrying the Awin click reference, awc

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether anonymous accounts are linked or orphaned at signup

    Orphaned anonymous users are the most common Firebase identity failure and they silently break every cross-signup funnel.

  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.

Firebase Auth → Awin · prove

How it gets proven — Firebase Auth → Awin

Against Firebase Authentication's own records, not against either platform's dashboard.

Source of truth

Your billing system, keyed on the Firebase user ID.

  • The Awin click reference, awc confirmed present on a live account.
  • Validated sales reconciled per order reference against your own records, with voucher-sourced sales identified and the paid-media overlap stated.
  • Paid conversions reconciled per linked user identity against imported conversions.

Firebase Auth → Awin · free audit

What we check in the free audit

  • Count accounts carrying the Awin click reference, awc
  • Follow one real conversion end to end
  • Check whether anonymous accounts are linked or orphaned at signup
  • Segment publishers by type and check where the click happened in the journey
  • Read the match rate, not the success message

Checked against

Your billing system, keyed on the Firebase user ID.

Get my free conversion tracking audit

Free30 minutesNo obligation

Firebase Auth → Awin · when not to buy

When you don't need this — Firebase Auth → Awin

  • If Awin already reports conversions that reconcile against Firebase Authentication's records within a few percent, this join is working and there is nothing to buy.
  • Measure identifier coverage yourself first — pull your last hundred accounts and count how many carry the Awin click reference, awc.
  • If you do not use anonymous auth, the linking problem does not arise.
  • 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.

Firebase Auth → Awin · what we deliver

What gets built — Firebase Auth → Awin

  • Identifier capture into Firebase Auth

    Capture the identifier on the web, write it to custom claims or your own user document at first auth, and link anonymous accounts rather than creating duplicates.

  • Event source: your billing system, keyed on the user ID

    Send paid conversions keyed on the user identity. Signups and anonymous sessions are stages, not revenue.

  • 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

    Cancellations reverse against the same identity.

Written guarantee

95%+ tracking accuracy

Measured against Your billing system, keyed on the Firebase user ID.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Firebase Auth → Awin questions, answered

Not through browser tracking. Store the awc on the Firebase user at web sign-up and report the app purchase server-to-server from billing.

Free · 30 min

Get Firebase Auth and Awin joined properly

Free30 minutesNo obligation