Connecting Adobe Experience Manager to Matomo
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. Matomo can be self-hosted with no third party in the chain, which makes it the one analytics destination where the data genuinely never leaves infrastructure you control. The join between them succeeds or fails on one thing: whether the first-party visitor ID reaches the commerce order behind AEM before the conversion happens, because Matomo can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
AEM to Matomo: a third analytics system needs a stated reason
Only add Matomo beside Adobe Analytics for a stated reason such as data residency. Deploy the tag through Adobe Tags, then have the commerce backend send orders through the HTTP Tracking API with the commerce order ID and the Matomo visitor ID stored at checkout. Set the cookie on the root domain so the checkout subdomain keeps the visitor.
Most AEM sites already run Adobe Analytics, so adding Matomo creates a second analytics answer next to the first, plus the commerce numbers. That is worth doing when there is a real requirement: data residency, a public-sector or privacy mandate, or a team that needs raw visit logs. Without one, Matomo becomes the third number in every meeting. Write down which question Matomo answers and which stays with Adobe before you deploy anything.
Deploying the Matomo tag through Adobe Tags on cached AEM pages is simple, because it runs in the browser. Orders are where it gets harder. AEM never sees the transaction, so the commerce backend sends the order through the HTTP Tracking API as an ecommerce order, with the commerce order ID as the Matomo order ID and the Matomo visitor ID read from the browser cookie at checkout and stored on the order. Skip that capture and server-sent orders arrive as new visitors with no campaign, so Matomo shows direct traffic producing the revenue.
The checkout usually runs on a different subdomain or application from AEM, so set the Matomo cookie on the root domain, or the visitor who read three articles gets a new ID when they reach the cart.
AEM → Matomo · what breaks
Why this join usually fails — AEM → Matomo
- 01
The first-party visitor ID 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
Owning the pipeline means owning the outage
The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.
- 04
Nothing reconciles afterwards
Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.
AEM → Matomo · the fix
What working looks like — AEM → Matomo
The first-party visitor ID on every order
Conversions arriving in Matomo
The event lands in your own database and is queryable directly, including the raw log, which most analytics products do not expose.
Reconciled against the source
Adobe Experience Manager's own records are the reference, not either dashboard.
AEM → Matomo · architecture
How AEM and Matomo 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
Matomo needs a click to match
The site ID, the visitor identifier and the event or ecommerce order. Self-hosted instances additionally need the tracker endpoint reachable and the database keeping up, which hosted tools do not fail at.
- 3
The identifier is the bridge
The first-party visitor ID, 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
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
AEM → Matomo · normal or broken
Working vs. broken, side by side — AEM → Matomo
Normal, not a fault
The first-party visitor ID 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
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Reconciles with the source
Matomo's count and Adobe Experience Manager's records agree within a few percent over a closed window.
Actually broken
The first-party visitor ID 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
The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.
Nobody has reconciled it
The dashboard shows a number and no one has compared it to Adobe Experience Manager.
AEM → Matomo · diagnose
Diagnostic order — AEM → Matomo
- 01
Count orders carrying the first-party visitor ID
- 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 tracker reachability and database lag before debugging any tag
On self-hosted analytics the answer is infrastructure more often than instrumentation.
- 05
Read the match rate, not the success message
Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.
AEM → Matomo · prove
How it gets proven — AEM → Matomo
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 first-party visitor ID confirmed present on a live order.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- Conversions confirmed sourced from the commerce system, with the Adobe Analytics difference explained rather than reconciled.
AEM → Matomo · free audit
What we check in the free audit
- Count orders carrying the first-party visitor ID
- Follow one real conversion end to end
- Map which system answers which question before building
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
Your commerce system — AEM manages experiences, not transactions.
Free30 minutesNo obligation
AEM → Matomo · when not to buy
When you don't need this — AEM → Matomo
- If Matomo 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 first-party visitor ID.
- If Adobe Analytics already answers your reporting needs, the remaining work is only feeding ad platforms — a much smaller scope.
- If you have no privacy or ownership requirement and no team to run it, a hosted product removes the only real cost of this one.
AEM → Matomo · what we deliver
What gets built — AEM → Matomo
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 Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
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 → Matomo questions, answered
Yes. Both can be deployed through Adobe Tags, but they count visits and attribute orders differently by design. Pick one as the reference for orders and say which one in your reports.
Send them from the commerce backend through Matomo's HTTP Tracking API as ecommerce orders, using the visitor ID captured from the Matomo cookie at checkout so the order joins the original visit.
Almost always because the first-party visitor ID 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.
Matomo sets its own first-party cookie and, when self-hosted on your domain, is not a third-party request at all. That means ad blockers and browser tracking-prevention affect it far less than a hosted analytics tag — one of the few genuine measurement advantages available under current privacy conditions.
Your commerce system's order event. Send from the commerce layer, server-side. Dispatcher caching makes any per-request template logic unreliable.
Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.
More on AEM → Matomo
- 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 → Matomo fits in the rest of your tracking
- Sitecore → MatomoConnecting Sitecore to Matomo
- Webflow → MatomoConnecting Webflow to Matomo
- Umbraco → MatomoConnecting Umbraco to Matomo
- AEM → Adobe AnalyticsConnecting Adobe Experience Manager to Adobe Analytics
- AEM → AmplitudeConnecting Adobe Experience Manager to Amplitude
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Drupal Commerce → MatomoConnecting Drupal Commerce to Matomo
- Craft → MatomoConnecting Craft CMS to Matomo
Free · 30 min
Get AEM and Matomo joined properly
Free30 minutesNo obligation
