Skip to main content
Umbraco → X AdsIntegration guide

Connecting Umbraco to X Ads

Umbraco is a .NET CMS common in mid-market and enterprise European organisations, which means IT governance is usually the binding constraint rather than technology. 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 Umbraco Commerce 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

Umbraco Commerce and X Ads: twclid stored as an order property

Capture twclid in the browser on the cached Umbraco landing page, post it to an uncached endpoint that sets a first-party cookie, and write it to the order at checkout. Send Purchase from the .NET order-finalized handler to the X Conversions API with twclid, hashed email, value, currency and the order number shared with any X pixel.

X traffic arrives mostly on phones, often in the X app's in-app browser, where storage does not last. On an Umbraco site, that page may also be cached at the edge, so the application never sees the twclid. Capture it in the browser on landing, post it to an uncached endpoint that sets a first-party cookie, and write it to an order property at checkout.

Send Purchase from the .NET order-finalized notification handler to the X Conversions API with the twclid, hashed email, value, currency and the order number as the conversion ID. If the X pixel fires on the order confirmation page, it must use the same order number, or each order counts twice, which on X's small volumes reads as a good week.

Build it right the first time, because in this segment the next correction waits for the next release. Test with an anonymous order placed from an X-style URL through the CDN, confirm the twclid on the order, and confirm X shows one conversion, not two. Refunds come back as order state changes and should be removed from your X reporting.

Umbraco → X Ads · what breaks

Why this join usually fails — Umbraco → X Ads

  1. 01

    The twclid click identifier never reaches Umbraco

    Output caching and CDN layers sit in front of most Umbraco deployments, and the deployment process itself frequently prevents quick iteration, which means getting the capture right the first time matters more here.

  2. 02

    Change control, not technology

    The build is straightforward and the release cycle is not. Scope the deployment process before committing to a timeline, because in this segment it is the schedule.

  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.

Umbraco → X Ads · the fix

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

Umbraco → X Ads · architecture

How Umbraco and X Ads actually connect

  1. 1

    Umbraco holds the truth

    You own the database. What you may not own is the release process — Umbraco sites in this segment often sit behind change control that adds weeks to any modification.

  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 Umbraco Commerce order.

  4. 4

    The event source decides reliability

    Fire from the .NET notification handler rather than a view, which may be cached at the edge.

  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.

Umbraco → X Ads · normal or broken

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

Normal, not a fault

  • The twclid click identifier present on the order

  • Sent from the Umbraco Commerce order-finalised notification

  • 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

    Output caching and CDN layers sit in front of most Umbraco deployments, and the deployment process itself frequently prevents quick iteration, which means getting the capture right the first time matters more here.

  • Sent from the browser

    The build is straightforward and the release cycle is not. Scope the deployment process before committing to a timeline, because in this segment it is the schedule.

  • 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

Umbraco → X Ads · diagnose

Diagnostic order — Umbraco → X Ads

  1. 01

    Count orders carrying the twclid click identifier

  2. 02

    Follow one real conversion end to end

  3. 03

    Establish the deployment and change-control process first

    It determines the timeline more than any technical question here.

  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.

Umbraco → X Ads · prove

How it gets proven — Umbraco → X Ads

Source of truth

Umbraco Commerce's order records in your own database, at agreed order states.

  • The twclid click identifier confirmed present on a live order.
  • Conversions reconciled per order against imported figures, with deduplication verified on a live test.
  • Order data confirmed populated on an order placed through the CDN as an anonymous visitor.

Umbraco → 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
  • Establish the deployment and change-control process first
  • Compare engagement rate against conversion rate by campaign
  • Read the match rate, not the success message

Checked against

Umbraco Commerce's order records in your own database, at agreed order states.

Get my free conversion tracking audit

Free30 minutesNo obligation

Umbraco → X Ads · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the twclid click identifier.
  • If the site is maintained by an internal IT team on a quarterly release cycle, plan the engagement around that rather than around the code.
  • 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.

Umbraco → X Ads · what we deliver

What gets built — Umbraco → X Ads

  • Identifier capture into Umbraco

    Capture the identifier and persist it to the order through a server-side notification handler in the application.

  • Event source: the Umbraco Commerce order-finalised notification

    Fire from the .NET notification handler rather than a view, which may be cached at the edge.

  • Dispatch to X Ads

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

  • Reversals where they exist

    Order state changes to refunded or cancelled are recorded.

Written guarantee

95%+ tracking accuracy

Measured against Umbraco Commerce's order records in your own database, at agreed order states.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Umbraco → X Ads questions, answered

Post from the .NET order-finalized handler with the twclid saved as an order property, hashed email and the order number as conversion ID.

Free · 30 min

Get Umbraco and X Ads joined properly

Free30 minutesNo obligation