Connecting Adobe Experience Manager to X Ads
AEM sits inside the wider Adobe stack, which usually means Adobe Analytics is already in place and answering a different question from your ad platforms. 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 commerce order behind AEM 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
AEM to X Ads: twclid from in-app sessions, sent from commerce
X traffic opens in an in-app browser, so capture twclid at the CDN or commerce layer, not in cached AEM templates, and persist it on the cart. Send the purchase from the commerce order to the X Conversions API with the order number as conversion ID, value, hashed email and twclid; any Adobe Tags pixel purchase must share that ID.
Most X traffic opens inside the app's in-app browser, so the AEM landing page loads in a short-lived, partitioned context that may not be the one where the purchase happens. If the visitor reopens the product in their default browser to pay, the X pixel cookie stays behind. The only copy of twclid that survives is the one you persisted server-side, ideally on the commerce cart at landing.
Capture twclid at the CDN or in the commerce layer rather than in a component template, since cached AEM output is shared across visitors. Then send the purchase from the commerce order event to the X Conversions API with the order number as the conversion ID, the value, hashed email and the stored twclid. If the X pixel also runs through Adobe Tags, set the same conversion ID on its purchase event, or X counts every order twice and small X volumes make that look like a good week.
Adobe Analytics usually files this traffic under a t.co or social referrer and reports a much lower conversion rate than X does. Neither is wrong: X credits engagements Adobe cannot see. Check the X number against orders that actually carry a twclid.
AEM → X Ads · what breaks
Why this join usually fails — AEM → X Ads
- 01
The twclid click identifier never reaches AEM
Dispatcher caching in front of AEM serves stored output, the Adobe data layer has its own conventions that may not carry your identifier, and enterprise release cycles slow every iteration.
- 02
Three systems that will never agree
Adobe Analytics, your commerce system and your ad platforms each measure differently. The useful work is deciding which answers which question, not forcing them to match.
- 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.
- 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.
AEM → X Ads · the fix
What working looks like — AEM → 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
Adobe Experience Manager's own records are the reference, not either dashboard.
AEM → X Ads · architecture
How AEM and X Ads actually connect — AEM → X Ads
- 1
Adobe Experience Manager holds the truth
In most AEM deployments the commerce engine is separate, and Adobe Analytics reports on its own model with its own attribution. None of those three will agree by default and that is expected rather than broken.
- 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
The identifier is the bridge
The twclid click identifier, captured at the visit and carried into the commerce order behind AEM.
- 4
The event source decides reliability
Send from the commerce layer, server-side. Dispatcher caching makes any per-request template logic unreliable.
- 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.
AEM → X Ads · normal or broken
Working vs. broken, side by side — AEM → X Ads
Normal, not a fault
The twclid click identifier present on the order
Visible on the record itself in Adobe Experience Manager, not merely captured somewhere on the site.
Sent from your commerce system's order event
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
X Ads's count and Adobe Experience Manager's records agree within a few percent over a closed window.
Actually broken
The twclid click identifier missing on most records
Dispatcher caching in front of AEM serves stored output, the Adobe data layer has its own conventions that may not carry your identifier, and enterprise release cycles slow every iteration.
Sent from the browser
Adobe Analytics, your commerce system and your ad platforms each measure differently. The useful work is deciding which answers which question, not forcing them to match.
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
The dashboard shows a number and no one has compared it to Adobe Experience Manager.
AEM → X Ads · diagnose
Diagnostic order — AEM → X Ads
- 01
Count orders carrying the twclid click identifier
- 02
Follow one real conversion end to end
- 03
Map which system answers which question before building
In an Adobe stack this framing saves more time than any implementation detail.
- 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.
- 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.
AEM → X Ads · prove
How it gets proven — AEM → X Ads
Against Adobe Experience Manager's own records, not against either platform's dashboard.
Source of truth
Your commerce system — AEM manages experiences, not transactions.
- The twclid click identifier confirmed present on a live order.
- Conversions reconciled per order against imported figures, with deduplication verified on a live test.
- Conversions confirmed sourced from the commerce system, with the Adobe Analytics difference explained rather than reconciled.
AEM → 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
- Map which system answers which question before building
- Compare engagement rate against conversion rate by campaign
- Read the match rate, not the success message
Checked against
Your commerce system — AEM manages experiences, not transactions.
Free30 minutesNo obligation
AEM → X Ads · when not to buy
When you don't need this — AEM → X Ads
- If X Ads already reports conversions that reconcile against Adobe Experience Manager's records within a few percent, this join is working and there is nothing to buy.
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the twclid click identifier.
- If Adobe Analytics already answers your reporting needs, the remaining work is only feeding ad platforms — a much smaller scope.
- 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.
AEM → X Ads · what we deliver
What gets built — AEM → X Ads
Identifier capture into AEM
Capture the identifier server-side and persist it to the commerce order, and if you use the Adobe client data layer, add the identifier explicitly rather than assuming it propagates.
Event source: your commerce system's order event
Send from the commerce layer, server-side. Dispatcher caching makes any per-request template logic unreliable.
Dispatch to X Ads
The X Conversions API, posted server-side with the click identifier and hashed customer data.
Reversals where they exist
Handled at the commerce layer.
Written guarantee
95%+ tracking accuracy
Measured against Your commerce system — AEM manages experiences, not transactions.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
AEM → X Ads questions, answered
X credits conversions after engagements and clicks inside its own windows, and Adobe loses in-app sessions. Compare against commerce orders that carry a stored twclid.
Yes, for page events. Send purchases from the commerce order through the Conversions API and share the conversion ID with any pixel purchase event.
Almost always because the twclid click identifier never reached the commerce order behind AEM. Dispatcher caching in front of AEM serves stored output, the Adobe data layer has its own conventions that may not carry your identifier, and enterprise release cycles slow every iteration. Measure coverage before debugging the dispatch.
X appends twclid to the landing URL and the pixel stores it. It behaves like other click identifiers, with the usual caveat that a large share of X traffic arrives through the in-app browser, where storage is partitioned and short-lived.
Your commerce system's order event. Send from the commerce layer, server-side. Dispatcher caching makes any per-request template logic unreliable.
Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.
More on AEM → X Ads
- AEM → Google AdsConnecting Adobe Experience Manager to Google Ads
- AEM → Microsoft AdsConnecting Adobe Experience Manager to Microsoft Ads
- AEM → Apple Search AdsConnecting Adobe Experience Manager to Apple Search Ads
RELATED GUIDES
Where AEM → X Ads fits in the rest of your tracking
- X Ads · Local servicesX Ads conversion tracking for local service businesses
- X Ads · B2BX Ads conversion tracking for B2B companies
- X Ads × CRM DealsHow to reconcile X Ads against your CRM's closed-won deals
- X Ads · Comparison page → demoHow to track comparison page visit to demo request for X Ads
- Umbraco → X AdsConnecting Umbraco to X Ads
- AEM → MetaConnecting Adobe Experience Manager to Meta Conversions API
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Drupal Commerce → X AdsConnecting Drupal Commerce to X Ads
Free · 30 min
Get AEM and X Ads joined properly
Free30 minutesNo obligation
