Skip to main content
Medusa → Adobe AnalyticsIntegration guide

Connecting Medusa to Adobe Analytics

Medusa is a Node commerce engine you extend in your own codebase, which makes the conversion event a piece of application code — and therefore something that can be tested rather than hoped for. 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 Medusa 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

Medusa orders into Adobe Analytics with ECID from the cart

Write the Adobe ECID into Medusa cart metadata when the Web SDK sets it, so it reaches the order. A payment-capture subscriber then sends the purchase through the Edge API with variant SKUs, quantities, line totals and the order's own currency. Use the display ID as purchase ID to dedupe browser hits, and send refunds as separate events.

Because a Medusa storefront is a separate app from the backend, the Adobe ECID only exists in the storefront's browser session. Write it into cart metadata when the Web SDK first sets it, and it reaches the order automatically at completion. Your subscriber on payment capture can then send the purchase server-side through the Edge API with the ECID, so the order joins the visit that produced it even if the shopper closed the tab before the confirmation page loaded.

Medusa gives you everything Adobe's products variable wants: each line item's variant SKU, quantity and line total, plus the order's currency and region. Send the purchase in the order's currency and let the report suite convert, rather than converting in your subscriber, since Medusa stores can run several regions with different currencies. Use the order's display ID as the purchase ID.

That purchase ID is what keeps this pair honest. Many headless builds also fire a browser purchase on the confirmation page, and Adobe deduplicates purchases that share a purchase ID, so the browser hit and the subscriber hit count once. Without it you double revenue for every shopper who reaches the confirmation page. Refunds should go in as a separate refund event keyed to the same order, not as negative purchases.

Medusa → Adobe Analytics · what breaks

Why this join usually fails — Medusa → Adobe Analytics

  1. 01

    The Experience Cloud ID, plus whatever eVar you designate never reaches Medusa

    The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created.

  2. 02

    Firing on order placed rather than payment captured

    They are different events and the gap between them contains every failed and pending payment. Order-placed is the easier hook and the wrong one.

  3. 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.

  4. 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.

Medusa → Adobe Analytics · the fix

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

Medusa → Adobe Analytics · architecture

How Medusa and Adobe Analytics actually connect

  1. 1

    Medusa holds the truth

    Because you own the event handlers, the conversion can fire from the payment-captured event specifically rather than from whatever the frontend happened to render.

  2. 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. 3

    The identifier is the bridge

    The Experience Cloud ID, plus whatever eVar you designate, captured at the visit and carried into the Medusa order.

  4. 4

    The event source decides reliability

    Send orders at payment capture, at the paid total.

  5. 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.

Medusa → Adobe Analytics · normal or broken

Working vs. broken, side by side — Medusa → Adobe Analytics

Normal, not a fault

  • The Experience Cloud ID, plus whatever eVar you designate present on the order

  • Sent from a Medusa subscriber on order payment capture

  • 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

    The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created.

  • Sent from the browser

    They are different events and the gap between them contains every failed and pending payment. Order-placed is the easier hook and the wrong one.

  • 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

Medusa → Adobe Analytics · diagnose

Diagnostic order — Medusa → Adobe Analytics

  1. 01

    Count orders carrying the Experience Cloud ID, plus whatever eVar you designate

  2. 02

    Follow one real conversion end to end

  3. 03

    Check which event your subscriber listens to

    One line of code, and it decides whether you are counting orders or counting money.

  4. 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.

  5. 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.

Medusa → Adobe Analytics · prove

How it gets proven — Medusa → Adobe Analytics

Source of truth

Medusa orders by payment status, emitted from your own subscriber code.

  • 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.
  • Payment-captured orders reconciled against imported conversions.

Medusa → 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
  • Check which event your subscriber listens to
  • Read the processing rules and the eVar allocation settings
  • Read the match rate, not the success message

Checked against

Medusa orders by payment status, emitted from your own subscriber code.

Get my free conversion tracking audit

Free30 minutesNo obligation

Medusa → Adobe Analytics · when not to buy

When you don't need this — Medusa → 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 every payment method you accept is instant, the two events nearly coincide and the distinction costs more than it returns.
  • 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.

Medusa → Adobe Analytics · what we deliver

What gets built — Medusa → Adobe Analytics

  • Identifier capture into Medusa

    Write the identifier into cart metadata at first touch so it is carried onto the order automatically at completion.

  • Event source: a Medusa subscriber on order payment capture

    Send orders at payment capture, at the paid total.

  • Dispatch to Adobe Analytics

    Server-side via the Data Insertion or Edge API, with the ECID and the configured variables.

  • Reversals where they exist

    Refunds emit their own event and should reverse.

Written guarantee

95%+ tracking accuracy

Measured against Medusa orders by payment status, emitted from your own subscriber code.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Medusa → Adobe Analytics questions, answered

Save it in cart metadata from the storefront when the Web SDK sets it; Medusa carries cart metadata onto the order when the cart completes.

Free · 30 min

Get Medusa and Adobe Analytics joined properly

Free30 minutesNo obligation