Connecting Adobe Experience Manager to Segment
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. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the commerce order behind AEM before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
AEM to Segment: one collector, or two tag stacks fighting
Decide whether the Experience Cloud ID or Segment's anonymousId is canonical, and store the ECID as a trait. Load analytics.js through Adobe Tags, then send Order Completed server-side from the commerce engine with the order number as order_id, the stored anonymousId, userId, click identifiers and consent. Remove any confirmation-template Order Completed.
Adding Segment to an AEM site that already runs Adobe Analytics through Adobe Tags creates two collection layers with two identities: the Experience Cloud ID and Segment's anonymousId. Decide which one is canonical before writing a single track call. If Segment is meant to feed ad platforms and a warehouse while Adobe keeps reporting, store the ECID as a trait so the two can be joined, and leave Adobe's own data flow alone.
Load analytics.js through Adobe Tags or a client library, not inline in a component, so the cached page does not freeze anything per visitor. Product and content views can be client-side. Order Completed should be sent from the commerce engine server-side using Segment's ecommerce spec, with the order number as order_id, the anonymousId read in the browser and stored on the cart, and userId once the customer is known. Carry click identifiers as properties and consent state with every event.
The usual AEM failure is a second Order Completed fired from the confirmation page template, which on a cache hit may not run, and on a miss duplicates the server event. Pick the server event and remove the template one.
AEM → Segment · what breaks
Why this join usually fails — AEM → Segment
- 01
The userId and anonymousId 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
One bad event multiplied across every destination
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
- 04
Nothing reconciles afterwards
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
AEM → Segment · the fix
What working looks like — AEM → Segment
The userId and anonymousId on every order
Conversions arriving in Segment
Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.
Reconciled against the source
Adobe Experience Manager's own records are the reference, not either dashboard.
AEM → Segment · architecture
How AEM and Segment actually connect
- 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
Segment needs a click to match
Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.
- 3
The identifier is the bridge
The userId and anonymousId, 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
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
AEM → Segment · normal or broken
Working vs. broken, side by side — AEM → Segment
Normal, not a fault
The userId and anonymousId 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
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
Reconciles with the source
Segment's count and Adobe Experience Manager's records agree within a few percent over a closed window.
Actually broken
The userId and anonymousId 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
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
Nobody has reconciled it
The dashboard shows a number and no one has compared it to Adobe Experience Manager.
AEM → Segment · diagnose
Diagnostic order — AEM → Segment
- 01
Count orders carrying the userId and anonymousId
- 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
Check identity resolution before checking anything downstream
If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.
- 05
Read the match rate, not the success message
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
AEM → Segment · prove
How it gets proven — AEM → Segment
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 userId and anonymousId confirmed present on a live order.
- An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
- Conversions confirmed sourced from the commerce system, with the Adobe Analytics difference explained rather than reconciled.
AEM → Segment · free audit
What we check in the free audit
- Count orders carrying the userId and anonymousId
- Follow one real conversion end to end
- Map which system answers which question before building
- Check identity resolution before checking anything downstream
- Read the match rate, not the success message
Checked against
Your commerce system — AEM manages experiences, not transactions.
Free30 minutesNo obligation
AEM → Segment · when not to buy
When you don't need this — AEM → Segment
- If Segment 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 userId and anonymousId.
- If Adobe Analytics already answers your reporting needs, the remaining work is only feeding ad platforms — a much smaller scope.
- If you send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.
AEM → Segment · what we deliver
What gets built — AEM → Segment
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 Segment
Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.
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 → Segment questions, answered
Yes, but keep one canonical identity and store the other as a trait. Running both without a join leaves two incompatible visitor counts.
From the commerce engine, server-side, with the stored anonymousId. Confirmation-page templates behind the dispatcher are unreliable.
Almost always because the userId and anonymousId 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.
Segment identifies people by anonymousId before they are known and userId afterwards, and the alias between them is what stitches a session to a customer. Click identifiers travel as event properties or traits rather than as a matching key — Segment does not match anything itself, it forwards. That distinction changes the whole design: get the identity resolution right and every downstream destination inherits it.
Your commerce system's order event. Send from the commerce layer, server-side. Dispatcher caching makes any per-request template logic unreliable.
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
More on AEM → Segment
- AEM → Google AdsConnecting Adobe Experience Manager to Google Ads
- AEM → MetaConnecting Adobe Experience Manager to Meta Conversions API
- AEM → GA4Connecting Adobe Experience Manager to GA4
RELATED GUIDES
Where AEM → Segment fits in the rest of your tracking
- Drupal Commerce → SegmentConnecting Drupal Commerce to Segment
- Concrete CMS → SegmentConnecting Concrete CMS to Segment
- Contentful → SegmentConnecting Contentful to Segment
- AEM → BigQueryConnecting Adobe Experience Manager to BigQuery
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Statamic → SegmentConnecting Statamic to Segment
- Webflow → SegmentConnecting Webflow to Segment
- Duda → SegmentConnecting Duda to Segment
Free · 30 min
Get AEM and Segment joined properly
Free30 minutesNo obligation
