Connecting Medusa to Marketo
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. Marketo scores leads rather than counting conversions, which means what you send it does not report a number — it changes who your sales team calls tomorrow. The join between them succeeds or fails on one thing: whether the lead record, keyed on email reaches the Medusa order before the conversion happens, because Marketo can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Medusa to Marketo: B2B orders and quotes on the lead record
Only for B2B Medusa builds. Send quote requests, first company orders and missed reorders from a subscriber to Marketo's REST API: upsert the lead by order email and log a predefined custom activity with order ID, total and currency. Write a marker into order metadata so event-bus redelivery doesn't repeat activities.
Marketo only makes sense for a Medusa build that sells to businesses, typically one with company accounts, quotes or approval steps layered on top of the core. In that shape the useful Marketo signal is rarely the paid order itself; it is the quote request, the first order from a new company, and the reorder that never came. Send those from a Medusa subscriber to the Marketo REST API: upsert the lead on the order's email, then log a custom activity whose type you have created in Marketo admin first, with order ID, total and currency as attributes the scoring rules can read.
The way this pair breaks is Medusa's event bus redelivering. Subscribers can run more than once after a retry or restart, and every rerun adds another activity and another score bump. Write a marker into the order's metadata once Marketo accepts the activity, and have the subscriber check it before sending. Separately, buyers often check out with a different address than the one on their webinar form, so lowercase both sides and expect some duplicate leads that sales will need to merge.
If the store is consumer DTC, Marketo is the wrong destination. A shopper who has just paid needs no lead score, and an email platform handles post-purchase messaging with far less configuration.
Medusa → Marketo · what breaks
Why this join usually fails — Medusa → Marketo
- 01
The lead record, keyed on email never reaches Medusa
The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created.
- 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.
- 03
A scoring threshold crossed by a duplicate
Unlike an ad platform, a duplicate here has an operational consequence: a lead is marked sales-ready, routed, and called by a person. Doing that on the strength of an event counted twice wastes the most expensive resource in the funnel.
- 04
Nothing reconciles afterwards
Marketo shows the activity log on the lead record with the resulting score change. Read the lead, not the API response, and verify no duplicate lead was created.
Medusa → Marketo · the fix
What working looks like — Medusa → Marketo
The lead record, keyed on email on every order
Conversions arriving in Marketo
The activity lands on the lead, scoring rules evaluate, and the lead may move into a nurture programme or into the sales queue.
Reconciled against the source
Medusa → Marketo · architecture
How Medusa and Marketo actually connect
- 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
Marketo needs a click to match
Marketo needs the lead's email and the activity or custom object you are recording, with the fields the scoring rules actually reference. An activity that no scoring rule looks at changes nothing.
- 3
The identifier is the bridge
The lead record, keyed on email, captured at the visit and carried into the Medusa order.
- 4
The event source decides reliability
Send orders at payment capture, at the paid total.
- 5
Deduplication at the destination
Marketo deduplicates leads on email by default, but activities are not deduplicated. A purchase pushed twice can trigger a scoring rule twice and push a lead over a threshold it should not have crossed.
Medusa → Marketo · normal or broken
Working vs. broken, side by side — Medusa → Marketo
Normal, not a fault
The lead record, keyed on email present on the order
Sent from a Medusa subscriber on order payment capture
Deduplicated correctly
Marketo deduplicates leads on email by default, but activities are not deduplicated. A purchase pushed twice can trigger a scoring rule twice and push a lead over a threshold it should not have crossed.
Reconciles with the source
Actually broken
The lead record, keyed on email 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
Unlike an ad platform, a duplicate here has an operational consequence: a lead is marked sales-ready, routed, and called by a person. Doing that on the strength of an event counted twice wastes the most expensive resource in the funnel.
Nobody has reconciled it
Medusa → Marketo · diagnose
Diagnostic order — Medusa → Marketo
- 01
Count orders carrying the lead record, keyed on email
- 02
Follow one real conversion end to end
- 03
Check which event your subscriber listens to
One line of code, and it decides whether you are counting orders or counting money.
- 04
Check the lead's activity log after a test conversion
One activity or two, and did the score move by the amount the rule specifies? That is the whole test.
- 05
Read the match rate, not the success message
Marketo shows the activity log on the lead record with the resulting score change. Read the lead, not the API response, and verify no duplicate lead was created.
Medusa → Marketo · prove
How it gets proven — Medusa → Marketo
Source of truth
Medusa orders by payment status, emitted from your own subscriber code.
- The lead record, keyed on email confirmed present on a live order.
- Activities confirmed on single lead records with score changes matching the configured rules, and no duplicate leads created.
- Payment-captured orders reconciled against imported conversions.
Medusa → Marketo · free audit
What we check in the free audit
- Count orders carrying the lead record, keyed on email
- Follow one real conversion end to end
- Check which event your subscriber listens to
- Check the lead's activity log after a test conversion
- Read the match rate, not the success message
Checked against
Medusa orders by payment status, emitted from your own subscriber code.
Free30 minutesNo obligation
Medusa → Marketo · when not to buy
When you don't need this — Medusa → Marketo
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the lead record, keyed on email.
- If every payment method you accept is instant, the two events nearly coincide and the distinction costs more than it returns.
- If your sales team does not act on lead scores, pushing conversions into Marketo produces a tidier database and changes nothing about revenue.
Medusa → Marketo · what we deliver
What gets built — Medusa → Marketo
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 Marketo
The Marketo REST API, posted server-side to create or update the lead and record the activity.
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.
From $400 · See packages
FAQ
Medusa → Marketo questions, answered
Usually not the score; a paid order should move the lead to a customer lifecycle stage and out of acquisition nurture. Score quote requests and first-time company orders instead.
Store a sent flag in the order's metadata after a successful call and check it at the start of the subscriber. Marketo deduplicates leads on email but not activities.
Almost always because the lead record, keyed on email never reached the Medusa order. The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created. Measure coverage before debugging the dispatch.
Marketo resolves to a lead by email address, with a Munchkin cookie tying anonymous web activity to that lead once known. Send an activity with a new email and you create a duplicate lead rather than updating one — and duplicate leads in a scoring system produce two half-scored people instead of one qualified one.
A Medusa subscriber on order payment capture. Send orders at payment capture, at the paid total.
Marketo shows the activity log on the lead record with the resulting score change. Read the lead, not the API response, and verify no duplicate lead was created.
More on Medusa → Marketo
- Stripe → MarketoConnecting Stripe to Marketo
- PayPal → MarketoConnecting PayPal to Marketo
- Shopify → MarketoConnecting Shopify to Marketo
RELATED GUIDES
Where Medusa → Marketo fits in the rest of your tracking
- Wix → MarketoConnecting Wix Stores to Marketo
- Saleor → MarketoConnecting Saleor to Marketo
- PrestaShop → MarketoConnecting PrestaShop to Marketo
- Medusa → SalesforceConnecting Medusa to Salesforce
- Medusa → 6senseConnecting Medusa to 6sense
- FashionConversion tracking for fashion brands, reported net of returns
- Magento → MarketoConnecting Magento to Marketo
- WooCommerce Subscriptions → MarketoConnecting WooCommerce Subscriptions to Marketo
Free · 30 min
Get Medusa and Marketo joined properly
Free30 minutesNo obligation
