Skip to main content
Affirm → X AdsIntegration guide

Connecting Affirm to X Ads

Affirm is longer-term financed BNPL, typically on higher-ticket items, which adds a credit decision between the checkout and the sale. X is a conversation platform where a large share of engagement is discussion rather than intent, which makes the gap between engagement metrics and conversions unusually wide. The join between them succeeds or fails on one thing: whether the twclid click identifier reaches the Affirm charge before the conversion happens, because X Ads can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Affirm sales on X Ads: save twclid before the in-app browser hop

Persist twclid server-side on landing and write it onto the order with the email before the Affirm redirect. On capture, post a purchase to the X Conversions API with order ID as conversion ID, order total, twclid and hashed email, and prove on a live order that any confirmation-page pixel uses the same ID, since one duplicate distorts small volumes.

X traffic mostly arrives in the in-app browser, which has short-lived storage. An Affirm checkout started there can send the shopper through identity or bank verification, or into the Affirm app, and the purchase finishes somewhere the X pixel cookie doesn't exist. The return page fires nothing, and the conversion disappears even though the order is real.

Persist twclid server-side as soon as it lands and write it onto the order before the Affirm redirect, alongside the shopper's email. On capture, post a purchase to the X Conversions API with the order ID as the conversion ID, the order total, twclid and the hashed email. If the X pixel also fires on the confirmation page, it must send the same conversion ID, and you should prove that on a live order rather than assume it.

This is the pair where a duplicate hurts most. X conversion volume is usually small and an Affirm order is often several hundred dollars or more, so one double-counted order can make a campaign look profitable for a week. Report captured orders only, and check X-attributed Affirm revenue against your store's captured Affirm orders from X traffic for the same window. Engagement-heavy X campaigns can push people into checkout who then get declined; track that in your own data, not in X.

Affirm → X Ads · what breaks

Why this join usually fails — Affirm → X Ads

  1. 01

    The twclid click identifier never reaches Affirm

    The shopper leaves for Affirm's flow, is assessed, and returns only if approved. Both the redirect and the decline create paths where nothing fires on your site.

  2. 02

    A credit decision inside the checkout

    Declines are real volume that reached checkout and produced nothing. Counting checkout starts rather than captured charges overstates performance by the decline rate.

  3. 03

    Engagement mistaken for intent

    A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.

  4. 04

    Nothing reconciles afterwards

    Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.

Affirm → X Ads · the fix

What working looks like — Affirm → X Ads

  • The twclid click identifier on every order

  • Conversions arriving in X Ads

    The conversion is matched to a click or an engagement and becomes available for optimisation and reporting.

  • Reconciled against the source

Affirm → X Ads · architecture

How Affirm and X Ads actually connect

  1. 1

    Affirm holds the truth

    Affirm runs a real credit decision, so a shopper who reaches checkout may be declined. The order only exists if the financing was approved and captured.

  2. 2

    X Ads needs a click to match

    An event X recognises, a conversion identifier for deduplication, hashed customer information, and the click identifier where you have it.

  3. 3

    The identifier is the bridge

    The twclid click identifier, captured at the visit and carried into the Affirm charge.

  4. 4

    The event source decides reliability

    Fire on capture after approval, and tag the payment method — Affirm orders skew to higher ticket values that will distort a blended average.

  5. 5

    Deduplication at the destination

    X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.

Affirm → X Ads · normal or broken

Working vs. broken, side by side — Affirm → X Ads

Normal, not a fault

  • The twclid click identifier present on the order

  • Sent from your store's order webhook, on Affirm charge capture

  • Deduplicated correctly

    X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.

  • Reconciles with the source

Actually broken

  • The twclid click identifier missing on most records

    The shopper leaves for Affirm's flow, is assessed, and returns only if approved. Both the redirect and the decline create paths where nothing fires on your site.

  • Sent from the browser

    Declines are real volume that reached checkout and produced nothing. Counting checkout starts rather than captured charges overstates performance by the decline rate.

  • Counted twice, or not at all

    A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.

  • Nobody has reconciled it

Affirm → X Ads · diagnose

Diagnostic order — Affirm → X Ads

  1. 01

    Count orders carrying the twclid click identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare Affirm checkouts started, approved and captured

    The decline rate is a genuine cost of this payment method and it belongs in the report.

  4. 04

    Compare engagement rate against conversion rate by campaign

    On X the two frequently move in opposite directions, and that divergence is the finding rather than a measurement fault.

  5. 05

    Read the match rate, not the success message

    Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.

Affirm → X Ads · prove

How it gets proven — Affirm → X Ads

Source of truth

Your store's orders financed through Affirm, cross-checked against Affirm's settlement.

  • The twclid click identifier confirmed present on a live order.
  • Conversions reconciled per order against imported figures, with deduplication verified on a live test.
  • An approved Affirm order confirmed to report and a declined one confirmed not to.

Affirm → X Ads · free audit

What we check in the free audit

  • Count orders carrying the twclid click identifier
  • Follow one real conversion end to end
  • Compare Affirm checkouts started, approved and captured
  • Compare engagement rate against conversion rate by campaign
  • Read the match rate, not the success message

Checked against

Your store's orders financed through Affirm, cross-checked against Affirm's settlement.

Get my free conversion tracking audit

Free30 minutesNo obligation

Affirm → X Ads · when not to buy

When you don't need this — Affirm → X Ads

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the twclid click identifier.
  • If your average order value is low, Affirm is a poor fit for the payment method and the integration follows that.
  • If X is a brand and community channel for you rather than a performance one, measure it that way and do not force a conversion pipeline onto it.

Affirm → X Ads · what we deliver

What gets built — Affirm → X Ads

  • Identifier capture into Affirm

    Capture the identifier before checkout and store it on the order, so approved financing is attributable regardless of the return journey.

  • Event source: your store's order webhook, on Affirm charge capture

    Fire on capture after approval, and tag the payment method — Affirm orders skew to higher ticket values that will distort a blended average.

  • Dispatch to X Ads

    The X Conversions API, posted server-side with the click identifier and hashed customer data.

  • Reversals where they exist

    Refunds and cancelled financing both exist and should reduce the reported figure.

Written guarantee

95%+ tracking accuracy

Measured against Your store's orders financed through Affirm, cross-checked against Affirm's settlement.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Affirm → X Ads questions, answered

Usually the purchase completes after the in-app browser hands off to Affirm, and the confirmation page never fires the pixel. Send the purchase server-side on capture with the twclid stored on the order.

Free · 30 min

Get Affirm and X Ads joined properly

Free30 minutesNo obligation