Skip to main content
Saleor → MarketoIntegration guide

Connecting Saleor to Marketo

Saleor is headless and GraphQL-first, which means the storefront and the commerce engine are separate applications and the identifier has to survive a boundary that traditional platforms do not have. 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 Saleor 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

Saleor to Marketo: only for B2B storefronts with a sales team

Marketo fits only B2B or wholesale Saleor storefronts with salespeople following up. Upsert the lead by lowercased order email through Marketo's REST API, then record a custom activity for the paid order with order number, total and currency from the paid-order webhook. Send staff draft orders as a separate activity, and skip already-sent order numbers.

Marketo exists to score leads for a sales team, and most Saleor stores have neither leads nor a sales team; their buyers check out and leave. For those, sending orders to Marketo creates a tidy database nobody acts on. The pair makes sense when Saleor runs a B2B or wholesale storefront and reorders, account growth and quote requests are things a salesperson follows up.

In that case, upsert the lead by the order email through Marketo's REST API, then record a custom activity for the paid order with the order number, total and currency, sent from the paid-order webhook. Lowercase the email first, because a buyer who checked out as a guest and later registered with different capitalization should not become two leads. Draft orders created by staff in the Saleor Dashboard for negotiated deals are worth sending as a separate activity, since they mark a deal in progress.

Marketo does not deduplicate activities, so Saleor webhook redeliveries can score the same order twice. Keep a record of order numbers already sent and skip repeats. Then check that a scoring rule actually reads the activity; if nobody built one, the integration changes no one's call list.

Saleor → Marketo · what breaks

Why this join usually fails — Saleor → Marketo

  1. 01

    The lead record, keyed on email never reaches Saleor

    The storefront holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there.

  2. 02

    A storefront that knows the click and an API that holds the money

    Headless architectures split exactly the two things attribution needs to join. If the storefront does not deliberately write the identifier into order metadata, the connection does not exist anywhere.

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

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

Saleor → Marketo · the fix

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

Saleor → Marketo · architecture

How Saleor and Marketo actually connect

  1. 1

    Saleor holds the truth

    In a headless setup the storefront is one of several possible clients. Attributing from it means measuring one channel of a system designed to have many.

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

    The identifier is the bridge

    The lead record, keyed on email, captured at the visit and carried into the Saleor order.

  4. 4

    The event source decides reliability

    Send fully paid orders at their net total, sourced from the API.

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

Saleor → Marketo · normal or broken

Working vs. broken, side by side — Saleor → Marketo

Normal, not a fault

  • The lead record, keyed on email present on the order

  • Sent from the Saleor order webhook

  • 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 holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there.

  • Sent from the browser

    Headless architectures split exactly the two things attribution needs to join. If the storefront does not deliberately write the identifier into order metadata, the connection does not exist anywhere.

  • 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

Saleor → Marketo · diagnose

Diagnostic order — Saleor → Marketo

  1. 01

    Count orders carrying the lead record, keyed on email

  2. 02

    Follow one real conversion end to end

  3. 03

    Inspect order metadata on a live order for the identifier

    Either it is on the order or the attribution is guesswork. There is no middle state.

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

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

Saleor → Marketo · prove

How it gets proven — Saleor → Marketo

Source of truth

Saleor orders by payment status, read from the API rather than inferred from the storefront.

  • 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.
  • Paid orders reconciled from the API against imported conversions.

Saleor → 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
  • Inspect order metadata on a live order for the identifier
  • Check the lead's activity log after a test conversion
  • Read the match rate, not the success message

Checked against

Saleor orders by payment status, read from the API rather than inferred from the storefront.

Get my free conversion tracking audit

Free30 minutesNo obligation

Saleor → Marketo · when not to buy

When you don't need this — Saleor → Marketo

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the lead record, keyed on email.
  • If you run a single storefront and no other clients, the added complexity of headless attribution buys you nothing over a standard integration.
  • If your sales team does not act on lead scores, pushing conversions into Marketo produces a tidier database and changes nothing about revenue.

Saleor → Marketo · what we deliver

What gets built — Saleor → Marketo

  • Identifier capture into Saleor

    Capture in the storefront and write the identifier into order metadata through the API at checkout, so it lives on the order rather than in a session.

  • Event source: the Saleor order webhook

    Send fully paid orders at their net total, sourced from the API.

  • 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 and cancellations reverse.

Written guarantee

95%+ tracking accuracy

Measured against Saleor orders by payment status, read from the API rather than inferred from the storefront.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Saleor → Marketo questions, answered

Only if it sells B2B and a sales team acts on Marketo scores. For consumer stores a lifecycle email platform is the better fit.

Free · 30 min

Get Saleor and Marketo joined properly

Free30 minutesNo obligation