Skip to main content
Cognito Forms → X AdsIntegration guide

Connecting Cognito Forms to X Ads

Cognito Forms supports conditional logic and payments, which means one form can be a survey, a registration and a checkout depending on which branch the visitor takes. 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 Cognito Forms entry 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

Cognito Forms to X Ads: twclid through the in-app browser

X clicks open in an in-app browser with short-lived storage, so prefill twclid into a hidden Cognito Forms field on the same page view. Send from the entry: paid branches as a purchase at the charged amount after payment, free branches as a separate lead or sign-up event, with the entry ID as conversion ID. Read payment status server-side.

Most X clicks open inside X's in-app browser, and that is exactly where a Cognito form gets filled in on a phone. Storage there is short-lived, so read twclid from the landing URL and prefill it into a hidden field on the same page view, rather than relying on a cookie set on an earlier visit.

Then send from Cognito's entry, not the browser. A paid branch becomes a purchase conversion at the charged amount once payment completes; a free branch becomes a lead or sign-up event, defined as a separate X event so the two never share a value. Use the Cognito entry ID as the conversion ID. X volumes for a single form are usually small, so a browser and server event without that shared ID looks like a good week rather than a bug. Test it deliberately with one real entry.

The payment hop is the second break. If the paid branch hands off to PayPal, the visitor leaves the page inside X's in-app browser and may not come back, so anything on a thank-you page undercounts paid entries specifically while free ones look fine. The entry's payment status, read server-side, is the only reliable signal on this traffic.

Cognito Forms → X Ads · what breaks

Why this join usually fails — Cognito Forms → X Ads

  1. 01

    The twclid click identifier never reaches Cognito Forms

    Forms are embedded and payments may hand off to a processor, breaking the session twice.

  2. 02

    One form, several outcomes, one conversion action

    Conditional logic means the same form produces a free enquiry from one visitor and a paid registration from another. A single conversion action averages them into a value that describes neither.

  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.

Cognito Forms → X Ads · the fix

What working looks like — Cognito Forms → X Ads

  • The twclid click identifier on every submission

  • 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

Cognito Forms → X Ads · architecture

How Cognito Forms and X Ads actually connect

  1. 1

    Cognito Forms holds the truth

    A form that sometimes takes payment and sometimes does not produces two completely different conversions from one submission event.

  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 Cognito Forms entry.

  4. 4

    The event source decides reliability

    Send paid submissions at their amount and unpaid ones as a separate lower-value action.

  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.

Cognito Forms → X Ads · normal or broken

Working vs. broken, side by side — Cognito Forms → X Ads

Normal, not a fault

  • The twclid click identifier present on the submission

  • Sent from your CRM or payment record

  • 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

    Forms are embedded and payments may hand off to a processor, breaking the session twice.

  • Sent from the browser

    Conditional logic means the same form produces a free enquiry from one visitor and a paid registration from another. A single conversion action averages them into a value that describes neither.

  • 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

Cognito Forms → X Ads · diagnose

Diagnostic order — Cognito Forms → X Ads

  1. 01

    Count submissions carrying the twclid click identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    List the branches your form can produce and their values

    Usually the first time anyone has, and it is normally the whole fix.

  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.

Cognito Forms → X Ads · prove

How it gets proven — Cognito Forms → X Ads

Source of truth

Your CRM or payment record, with the form branch recorded.

  • The twclid click identifier confirmed present on a live submission.
  • Conversions reconciled per order against imported figures, with deduplication verified on a live test.
  • Submissions reconciled by branch against imported conversions.

Cognito Forms → X Ads · free audit

What we check in the free audit

  • Count submissions carrying the twclid click identifier
  • Follow one real conversion end to end
  • List the branches your form can produce and their values
  • Compare engagement rate against conversion rate by campaign
  • Read the match rate, not the success message

Checked against

Your CRM or payment record, with the form branch recorded.

Get my free conversion tracking audit

Free30 minutesNo obligation

Cognito Forms → X Ads · when not to buy

When you don't need this — Cognito Forms → X Ads

  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the twclid click identifier.
  • A single-path form with no payment needs one action and nothing else.
  • 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.

Cognito Forms → X Ads · what we deliver

What gets built — Cognito Forms → X Ads

  • Identifier capture into Cognito Forms

    Pass the identifier into a hidden field and carry it through to the payment where one occurs.

  • Event source: your CRM or payment record

    Send paid submissions at their amount and unpaid ones as a separate lower-value action.

  • Dispatch to X Ads

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

  • Reversals where they exist

    Refunds reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your CRM or payment record, with the form branch recorded.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Cognito Forms → X Ads questions, answered

Capture twclid into a hidden field on the landing page, then send paid and unpaid entries from your server to X's Conversions API with the entry ID as the conversion ID.

Free · 30 min

Get Cognito Forms and X Ads joined properly

Free30 minutesNo obligation