Skip to main content
CartHook → X AdsIntegration guide

Connecting CartHook to X Ads

CartHook does post-purchase one-click upsells specifically, which means every pound it adds arrives after the order was created and after any checkout-time conversion already fired. 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 CartHook post-purchase 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

CartHook and X Ads: settled order value, sent once, by order ID

On X, a checkout pixel plus a later server event with a different conversion ID double-counts CartHook orders. Use the Shopify order ID as conversion ID on both, with the settled total, or fire only from the server after the post-purchase window. Write twclid into a cart attribute on landing or add-to-cart, since in-app cookies are short-lived.

On X, a CartHook upsell can easily turn into a double count. The X pixel fires a purchase at checkout. Later, someone adds a server event to capture the upsell, using a different conversion ID. On X's typically small volumes, that doubling reads as a strong week, not a bug. Use the Shopify order ID as the conversion ID on both the browser and server events, and make sure the server event carries the settled total.

Better still, fire only from the server once the post-purchase window has closed. The twclid has to reach the Shopify order for that to work. X traffic often arrives in the in-app browser, where cookies are short-lived. So write twclid into a cart attribute on landing or at add-to-cart, not just into a cookie the pixel reads at checkout.

X is also where take rate tells you something new. Campaigns that win on engagement often bring buyers who decline every offer. Once settled value is reported, a campaign with fewer purchases but a high take rate can be the better one. Compare checkout value with settled value per campaign before changing bids.

CartHook → X Ads · what breaks

Why this join usually fails — CartHook → X Ads

  1. 01

    The twclid click identifier never reaches CartHook

    The offer runs after order creation, so anything that fired at checkout has already gone.

  2. 02

    Upsell revenue that no campaign ever gets credit for

    If the conversion fires at checkout, every pound the upsell adds is invisible. The campaigns bringing buyers most receptive to upsells look identical to those bringing the least receptive.

  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.

CartHook → X Ads · the fix

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

CartHook → X Ads · architecture

How CartHook and X Ads actually connect

  1. 1

    CartHook holds the truth

    A one-click upsell charges the stored payment method and appends to the same order. The order total changes; the checkout total does not.

  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 CartHook post-purchase order.

  4. 4

    The event source decides reliability

    Send the settled order total, with upsell contribution recorded separately so take rate is visible per campaign.

  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.

CartHook → X Ads · normal or broken

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

Normal, not a fault

  • The twclid click identifier present on the order

  • Sent from the Shopify order 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

    The offer runs after order creation, so anything that fired at checkout has already gone.

  • Sent from the browser

    If the conversion fires at checkout, every pound the upsell adds is invisible. The campaigns bringing buyers most receptive to upsells look identical to those bringing the least receptive.

  • 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

CartHook → X Ads · diagnose

Diagnostic order — CartHook → X Ads

  1. 01

    Count orders carrying the twclid click identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare checkout total against final settled total

    The gap is the revenue your conversion reporting is currently discarding.

  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.

CartHook → X Ads · prove

How it gets proven — CartHook → X Ads

Source of truth

The final Shopify order total after the post-purchase sequence completes.

  • The twclid click identifier confirmed present on a live order.
  • Conversions reconciled per order against imported figures, with deduplication verified on a live test.
  • Settled order totals reconciled against imported conversions for a closed week.

CartHook → 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 checkout total against final settled total
  • Compare engagement rate against conversion rate by campaign
  • Read the match rate, not the success message

Checked against

The final Shopify order total after the post-purchase sequence completes.

Get my free conversion tracking audit

Free30 minutesNo obligation

CartHook → X Ads · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the twclid click identifier.
  • Stores without post-purchase offers can report checkout value and the timing question does not arise.
  • 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.

CartHook → X Ads · what we deliver

What gets built — CartHook → X Ads

  • Identifier capture into CartHook

    Send the conversion from the order webhook once the post-purchase window closes, rather than at checkout.

  • Event source: the Shopify order webhook

    Send the settled order total, with upsell contribution recorded separately so take rate is visible per campaign.

  • 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; an upsell-only refund should reduce rather than reverse the order.

Written guarantee

95%+ tracking accuracy

Measured against The final Shopify order total after the post-purchase sequence completes.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

CartHook → X Ads questions, answered

Only if the conversion is sent with the settled Shopify order total. A pixel event fired at checkout reports the total before the upsell.

Free · 30 min

Get CartHook and X Ads joined properly

Free30 minutesNo obligation