Connecting Drupal Commerce to Adobe Analytics
Drupal Commerce is self-hosted commerce inside a CMS built for complex content, which means the store is one part of a much larger site you fully control. Adobe Analytics processes data on the way in through rules you configure, which means the same event can be recorded differently by two report suites and both will look authoritative. The join between them succeeds or fails on one thing: whether the Experience Cloud ID, plus whatever eVar you designate reaches the Drupal Commerce order before the conversion happens, because Adobe Analytics can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Drupal Commerce to Adobe Analytics: order number as purchase ID
Store the ECID on the Drupal Commerce order during checkout, then post the purchase from the order placement hook through the Data Insertion or Edge API with the order number as purchase ID and a products string built from variation SKUs. Decide whether revenue is order total or item subtotal, and handle refunds via Data Sources or reconciliation.
Adobe deduplicates orders on the purchase ID, and on Drupal Commerce the natural value is the order number, not the internal entity ID that some themes print. Pick one, use it everywhere, and use the same value when you reconcile against commerce_order. The confirmation page is the trap: Drupal's checkout complete step can re-render on refresh or be served from cache, so a browser-side purchase beacon without a purchase ID records the same order twice, or not at all.
Sending from the server is cleaner. Read the ECID from the visitor's Adobe cookie during checkout, store it on the order as a field, and post the purchase through the Data Insertion or Edge API from the order placement hook with the purchase ID, currency and a products string built from order items, using each product variation's SKU. Check whether the contributed Adobe Analytics module for your Drupal version handles the page tags; it will not handle server-side purchases for you.
Decide what revenue means before the eVar work. Drupal order totals include adjustments for tax, shipping and promotions, so pick whether Adobe receives the total or the item subtotal and match it in reconciliation. Refunds do not reverse in Adobe on their own; check whether your report suite uses Data Sources for returns, or reconcile them against Drupal payments instead.
Drupal Commerce → Adobe Analytics · what breaks
Why this join usually fails — Drupal Commerce → Adobe Analytics
- 01
The Experience Cloud ID, plus whatever eVar you designate never reaches Drupal Commerce
Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run.
- 02
Configurable workflow states nobody agreed on
Drupal Commerce lets each install define its own order states. Two people reporting on the same store routinely count different states and never reconcile.
- 03
Processing rules rewriting data before anyone sees it
Rules run before storage and are frequently configured years earlier by someone who has left. A campaign variable can be overwritten, defaulted or dropped on the way in, and the reports will look consistent and be wrong.
- 04
Nothing reconciles afterwards
Use a raw data feed or Data Debugger to see what actually arrived, not the processed report. Those are different things and only one of them shows the truth.
Drupal Commerce → Adobe Analytics · the fix
What working looks like — Drupal Commerce → Adobe Analytics
The Experience Cloud ID, plus whatever eVar you designate on every order
Conversions arriving in Adobe Analytics
The hit is processed through VISTA and processing rules, lands in the report suite, and becomes available under whatever allocation the eVar specifies.
Reconciled against the source
Drupal Commerce → Adobe Analytics · architecture
How Drupal Commerce and Adobe Analytics actually connect
- 1
Drupal Commerce holds the truth
You own the database, so the truth is exactly as good as the query. Pin down which order states count as revenue before comparing anything — Drupal's workflow states are configurable per install, so no two sites agree by default.
- 2
Adobe Analytics needs a click to match
An eVar with the right persistence and allocation, an event configured in the report suite, and processing rules that do not quietly rewrite what arrived.
- 3
The identifier is the bridge
The Experience Cloud ID, plus whatever eVar you designate, captured at the visit and carried into the Drupal Commerce order.
- 4
The event source decides reliability
Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.
- 5
Deduplication at the destination
Adobe deduplicates on purchase ID for orders. Omit it and a customer refreshing a confirmation page records the order again, which is the single most common inflation in Adobe implementations.
Drupal Commerce → Adobe Analytics · normal or broken
Working vs. broken, side by side — Drupal Commerce → Adobe Analytics
Normal, not a fault
The Experience Cloud ID, plus whatever eVar you designate present on the order
Sent from the Drupal Commerce order placement hook
Deduplicated correctly
Adobe deduplicates on purchase ID for orders. Omit it and a customer refreshing a confirmation page records the order again, which is the single most common inflation in Adobe implementations.
Reconciles with the source
Actually broken
The Experience Cloud ID, plus whatever eVar you designate missing on most records
Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run.
Sent from the browser
Drupal Commerce lets each install define its own order states. Two people reporting on the same store routinely count different states and never reconcile.
Counted twice, or not at all
Rules run before storage and are frequently configured years earlier by someone who has left. A campaign variable can be overwritten, defaulted or dropped on the way in, and the reports will look consistent and be wrong.
Nobody has reconciled it
Drupal Commerce → Adobe Analytics · diagnose
Diagnostic order — Drupal Commerce → Adobe Analytics
- 01
Count orders carrying the Experience Cloud ID, plus whatever eVar you designate
- 02
Follow one real conversion end to end
- 03
List the order states in use and agree which count as revenue
Do this before any technical work — it resolves more Drupal Commerce disputes than any code change.
- 04
Read the processing rules and the eVar allocation settings
Before debugging the tag. On mature Adobe implementations the explanation is upstream of the browser far more often than in it.
- 05
Read the match rate, not the success message
Use a raw data feed or Data Debugger to see what actually arrived, not the processed report. Those are different things and only one of them shows the truth.
Drupal Commerce → Adobe Analytics · prove
How it gets proven — Drupal Commerce → Adobe Analytics
Source of truth
Drupal's commerce_order records in your own database, filtered to completed states.
- The Experience Cloud ID, plus whatever eVar you designate confirmed present on a live order.
- Orders reconciled against the raw feed with purchase ID deduplication verified, then against the processed report suite.
- Order field data confirmed populated on an order placed through a fully warmed cache as an anonymous visitor.
Drupal Commerce → Adobe Analytics · free audit
What we check in the free audit
- Count orders carrying the Experience Cloud ID, plus whatever eVar you designate
- Follow one real conversion end to end
- List the order states in use and agree which count as revenue
- Read the processing rules and the eVar allocation settings
- Read the match rate, not the success message
Checked against
Drupal's commerce_order records in your own database, filtered to completed states.
Free30 minutesNo obligation
Drupal Commerce → Adobe Analytics · when not to buy
When you don't need this — Drupal Commerce → Adobe Analytics
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Experience Cloud ID, plus whatever eVar you designate.
- If your Drupal site is content-only with commerce elsewhere, work at the commerce system instead — this is the wrong layer.
- If you are already on GA4 and not obliged to use Adobe, running both means two versions of every number and a standing argument about which is right.
Drupal Commerce → Adobe Analytics · what we deliver
What gets built — Drupal Commerce → Adobe Analytics
Identifier capture into Drupal Commerce
Capture the identifier and persist it as order field data through a hook on order placement, server-side, so it never depends on what the cache served.
Event source: the Drupal Commerce order placement hook
Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.
Dispatch to Adobe Analytics
Server-side via the Data Insertion or Edge API, with the ECID and the configured variables.
Reversals where they exist
Order state transitions to refunded or cancelled are recorded and can drive reversals.
Written guarantee
95%+ tracking accuracy
Measured against Drupal's commerce_order records in your own database, filtered to completed states.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Drupal Commerce → Adobe Analytics questions, answered
Send the Drupal order number as the purchase ID on every purchase, and ideally send the purchase from the order placement hook rather than the confirmation page.
Either, as long as it is consistent. Drupal totals include tax, shipping and promotion adjustments, so state which one you send and reconcile against the same figure.
Almost always because the Experience Cloud ID, plus whatever eVar you designate never reached the Drupal Commerce order. Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run. Measure coverage before debugging the dispatch.
Identity is the ECID, with visitor stitching configurable on top. The click identifier is not native — it lives in an eVar you assign, with an expiry and an allocation model you choose, and those two settings silently decide what your attribution reports say.
The Drupal Commerce order placement hook. Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.
Use a raw data feed or Data Debugger to see what actually arrived, not the processed report. Those are different things and only one of them shows the truth.
More on Drupal Commerce → Adobe Analytics
- Squarespace → Adobe AnalyticsConnecting Squarespace Commerce to Adobe Analytics
- Flow → Adobe AnalyticsConnecting Flow Commerce to Adobe Analytics
- Drupal Commerce → Google AdsConnecting Drupal Commerce to Google Ads
RELATED GUIDES
Where Drupal Commerce → Adobe Analytics fits in the rest of your tracking
- Craft → Adobe AnalyticsConnecting Craft CMS to Adobe Analytics
- Concrete CMS → Adobe AnalyticsConnecting Concrete CMS to Adobe Analytics
- Contentful → Adobe AnalyticsConnecting Contentful to Adobe Analytics
- Drupal Commerce → GA4Connecting Drupal Commerce to GA4
- Drupal Commerce → MatomoConnecting Drupal Commerce to Matomo
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Sanity → Adobe AnalyticsConnecting Sanity to Adobe Analytics
- Statamic → Adobe AnalyticsConnecting Statamic to Adobe Analytics
Free · 30 min
Get Drupal Commerce and Adobe Analytics joined properly
Free30 minutesNo obligation
