Skip to main content
Swell → X AdsIntegration guide

Connecting Swell to X Ads

Swell is headless commerce with subscriptions built in, which puts two conversion types in one system: a one-off order and a recurring plan that will bill again next month. 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 Swell order 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

Swell to X Ads: twclid, first orders and trial conversions

For Swell to X Ads, read twclid in the headless frontend on landing, post it to your server and store it in Swell cart or account metadata. Send the order from the Swell webhook to the X Conversions API with twclid, hashed email, value and the Swell order ID as conversion ID, shared with the pixel. Exclude renewals entirely.

With a headless Swell storefront you can make twclid survive X's in-app browser without relying on it: read the parameter in your frontend on landing, post it to your server straight away, and write it into the Swell cart or account metadata. The in-app browser often clears storage when the user closes it, so a buyer who comes back later through another browser only matches if the identifier was already stored server-side against an email.

Send the order from the Swell order webhook to the X Conversions API with the twclid, the hashed email, the order value and the Swell order ID as the conversion ID; if the X pixel fires in the storefront, give it the same ID. Exclude renewals entirely. X volumes are typically small, so a renewal leaking in shows up as a campaign that improves every month on its own.

Subscription brands on X often run free-trial offers, and that decides what X optimizes toward. A trial start with zero value tells X to find people who sign up for free things. If trials convert poorly, send the first paid subscription order as the conversion, and report trial starts separately in your own data.

Swell → X Ads · what breaks

Why this join usually fails — Swell → X Ads

  1. 01

    The twclid click identifier never reaches Swell

    Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.

  2. 02

    Renewals indistinguishable from new orders

    In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.

  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.

Swell → X Ads · the fix

What working looks like — Swell → 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

Swell → X Ads · architecture

How Swell and X Ads actually connect

  1. 1

    Swell holds the truth

    A subscription's first payment and its renewals are the same object type in most exports. Sending both means one acquisition produces a conversion every billing cycle.

  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 Swell order.

  4. 4

    The event source decides reliability

    Send one-off orders and first subscription payments. Renewals belong in a retention figure.

  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.

Swell → X Ads · normal or broken

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

Normal, not a fault

  • The twclid click identifier present on the order

  • Sent from the Swell order and subscription webhooks

  • 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

    Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.

  • Sent from the browser

    In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.

  • 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

Swell → X Ads · diagnose

Diagnostic order — Swell → X Ads

  1. 01

    Count orders carrying the twclid click identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare monthly conversion count against new customer count

    If conversions exceed new customers, renewals are being counted as acquisition.

  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.

Swell → X Ads · prove

How it gets proven — Swell → X Ads

Source of truth

Swell orders and subscriptions by date, held apart from each other.

  • The twclid click identifier confirmed present on a live order.
  • Conversions reconciled per order against imported figures, with deduplication verified on a live test.
  • First payments reconciled against imported conversions, with renewals reported separately.

Swell → 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 monthly conversion count against new customer count
  • Compare engagement rate against conversion rate by campaign
  • Read the match rate, not the success message

Checked against

Swell orders and subscriptions by date, held apart from each other.

Get my free conversion tracking audit

Free30 minutesNo obligation

Swell → X Ads · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the twclid click identifier.
  • A store selling only one-off products does not have the renewal problem.
  • 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.

Swell → X Ads · what we deliver

What gets built — Swell → X Ads

  • Identifier capture into Swell

    Write the identifier into customer metadata so the first payment can be attributed and renewals can be recognised as renewals.

  • Event source: the Swell order and subscription webhooks

    Send one-off orders and first subscription payments. Renewals belong in a retention figure.

  • 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 cancellations inside the first period reverse.

Written guarantee

95%+ tracking accuracy

Measured against Swell orders and subscriptions by date, held apart from each other.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Swell → X Ads questions, answered

Store twclid server-side and in Swell cart or account metadata as soon as the visitor lands, so a later order can still be matched.

Free · 30 min

Get Swell and X Ads joined properly

Free30 minutesNo obligation