Skip to main content
Klaviyo → X AdsIntegration guide

Connecting Klaviyo to X Ads

Klaviyo holds the profile, the email engagement and — where it is wired to your store — the order. 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 Klaviyo profile 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

Klaviyo to X Ads: Rescuing twclid From the In-App Browser

A Klaviyo popup submitted in X's in-app browser is often the only moment you hold twclid and an identity, so write twclid to a profile property. Send the signup to the X Conversions API with hashed email, twclid and a conversion_id shared with the pixel. For store purchases, recover twclid by looking up the Klaviyo profile by order email.

Most X ad clicks open in the X in-app browser, where storage is short-lived. A Klaviyo signup popup submitted inside that browser is often the only moment the visitor is both identified and still carrying twclid. Write twclid to a profile property on that submit. The purchase usually comes days later from the welcome email in Safari or Chrome, where the store session has no trace of X.

Send the signup to the X Conversions API as an event defined in X Events Manager, with the hashed email and twclid, and with a conversion_id shared with the pixel, since the pixel may also have fired in the in-app browser. For the purchase, send from the store and recover twclid by looking up the Klaviyo profile by order email. Without that lookup the email-driven order has no link to X at all.

X traffic often signs up at a decent rate for a giveaway or discount popup and then buys at a poor one. Segment Klaviyo profiles by acquisition source and compare purchase rates before calling X a strong list-building channel. Check whether Klaviyo offers a native X audience sync; otherwise export hashed emails for an X custom audience and exclude recent buyers.

Klaviyo → X Ads · what breaks

Why this join usually fails — Klaviyo → X Ads

  1. 01

    The twclid click identifier never reaches Klaviyo

    Klaviyo identifies profiles by email, which the visitor supplies at signup — often long before or long after the ad click. If the identifier is not written to a profile property at the moment of signup, there is no way to reconstruct which click created the profile.

  2. 02

    Klaviyo is a mirror, not the system of record

    Order data in Klaviyo arrives via a sync. Sending revenue from the mirror rather than the source adds a delay and a class of discrepancy that is genuinely hard to debug later.

  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.

Klaviyo → X Ads · the fix

What working looks like — Klaviyo → X Ads

  • The twclid click identifier on every profile

  • 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

Klaviyo → X Ads · architecture

How Klaviyo and X Ads actually connect

  1. 1

    Klaviyo holds the truth

    Klaviyo profiles are identity-first: the email address is the key. That makes it a natural place to hold an identifier across sessions and devices, and an awkward place to source purchase events, because Klaviyo's order data is a mirror of the store's rather than the original.

  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 Klaviyo profile.

  4. 4

    The event source decides reliability

    Send from a flow webhook on the metric you care about, or read events through the API. Sourcing purchases from Klaviyo rather than the store adds a hop and a sync delay — prefer the store when the store is available.

  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.

Klaviyo → X Ads · normal or broken

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

Normal, not a fault

  • The twclid click identifier present on the profile

  • Sent from the Klaviyo Events API, or a flow webhook

  • 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

    Klaviyo identifies profiles by email, which the visitor supplies at signup — often long before or long after the ad click. If the identifier is not written to a profile property at the moment of signup, there is no way to reconstruct which click created the profile.

  • Sent from the browser

    Order data in Klaviyo arrives via a sync. Sending revenue from the mirror rather than the source adds a delay and a class of discrepancy that is genuinely hard to debug later.

  • 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

Klaviyo → X Ads · diagnose

Diagnostic order — Klaviyo → X Ads

  1. 01

    Count profiles carrying the twclid click identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether the profile carries the identifier property

    On profiles created during a paid campaign. Then confirm the signup path writes it, not just the ones created manually or by import.

  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.

Klaviyo → X Ads · prove

How it gets proven — Klaviyo → X Ads

Source of truth

Klaviyo's own metric reports for the same window, cross-checked against the store's order records.

  • The twclid click identifier confirmed present on a live profile.
  • Conversions reconciled per order against imported figures, with deduplication verified on a live test.
  • Klaviyo's counts reconciled against the store's order records before either is used as evidence.

Klaviyo → X Ads · free audit

What we check in the free audit

  • Count profiles carrying the twclid click identifier
  • Follow one real conversion end to end
  • Check whether the profile carries the identifier property
  • Compare engagement rate against conversion rate by campaign
  • Read the match rate, not the success message

Checked against

Klaviyo's own metric reports for the same window, cross-checked against the store's order records.

Get my free conversion tracking audit

Free30 minutesNo obligation

Klaviyo → X Ads · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred profiles and count how many carry the twclid click identifier.
  • For revenue events, use your store as the source rather than Klaviyo. Use this integration for the audience and engagement side, which is what Klaviyo is actually authoritative about.
  • 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.

Klaviyo → X Ads · what we deliver

What gets built — Klaviyo → X Ads

  • Identifier capture into Klaviyo

    Write the click identifier to a custom profile property at signup, and update it on subsequent identified sessions so the most recent paid touch is available.

  • Event source: the Klaviyo Events API, or a flow webhook

    Send from a flow webhook on the metric you care about, or read events through the API. Sourcing purchases from Klaviyo rather than the store adds a hop and a sync delay — prefer the store when the store is available.

  • Dispatch to X Ads

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

  • Reversals where they exist

    Klaviyo mirrors refunds from the store where the integration supports it, but treat the store as authoritative for anything financial.

Written guarantee

95%+ tracking accuracy

Measured against Klaviyo's own metric reports for the same window, cross-checked against the store's order records.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Klaviyo → X Ads questions, answered

Save twclid to the profile when the visitor signs up from the X in-app browser, then attach it to the purchase you send to X's Conversions API by looking up the profile by email.

Free · 30 min

Get Klaviyo and X Ads joined properly

Free30 minutesNo obligation