Skip to main content
WooCommerce → MarketoIntegration guide

Connecting WooCommerce to Marketo

WooCommerce keeps the order in your own database, which is both the advantage and the reason nobody has wired it properly. 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 WooCommerce 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

WooCommerce to Marketo: B2B orders as activities on the lead

Marketo fits only WooCommerce stores selling to businesses with a sales team. Send purchases as a custom activity keyed on billing email, with value, products and billing company, using a customer meta field holding the Marketo lead ID where trade logins exist. Make reorders a separate activity type, and send refunds and cancellations.

Marketo belongs in this pair only when the WooCommerce store sells to businesses alongside a sales team: trade accounts, wholesale, or software and training sold online with larger deals closed by reps. A consumer store does not need lead scoring, and pushing every shopper into Marketo creates leads nobody should call.

Where it fits, the purchase becomes a custom activity on the lead, keyed on billing email, with order value, products and the company from the billing fields. Check the email before creating anything: WooCommerce buyers often pay with a personal email while Marketo knows them by a work address, which creates a second lead. If trade pricing requires a login, a customer meta field holding the Marketo lead ID is the most reliable link.

Decide what a purchase means for scoring. A first small order from a target account might rightly push a lead to sales; a reorder from an existing customer belongs with account management and should not reset the lead to MQL. Make reorders a different activity type, send refunds and cancelled trade orders so scores do not stay high on a deal that reversed, and confirm with the Marketo owner that a rule actually reads these activities.

WooCommerce → Marketo · what breaks

Why this join usually fails — WooCommerce → Marketo

  1. 01

    The lead record, keyed on email never reaches WooCommerce

    WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.

  2. 02

    Caching and optimization plugins eat the tracking

    The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.

  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.

WooCommerce → Marketo · the fix

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

WooCommerce → Marketo · architecture

How WooCommerce and Marketo actually connect

  1. 1

    WooCommerce holds the truth

    You own the database, so the truth is exactly as good as the query you write against it. Pin the status set first — whether processing, completed, or both count as a conversion changes the number by a lot and is the source of most arguments.

  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 WooCommerce order.

  4. 4

    The event source decides reliability

    Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.

  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.

WooCommerce → Marketo · normal or broken

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

Normal, not a fault

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

  • Sent from the woocommerce_payment_complete hook

  • 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

    WooCommerce sites are usually the most heavily plugged-in of any platform. Caching plugins serve a static page to the visitor, optimization plugins defer or strip scripts, and consent plugins block them entirely. Any of the three will stop an identifier being captured, and they fail silently.

  • Sent from the browser

    The page the customer sees is not the page your code assumed. This is the most common cause of WooCommerce tracking that worked at launch and silently stopped after a plugin update.

  • 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

WooCommerce → Marketo · diagnose

Diagnostic order — WooCommerce → Marketo

  1. 01

    Count orders carrying the lead record, keyed on email

  2. 02

    Follow one real conversion end to end

  3. 03

    Check order meta on ten recent orders

    Directly in the database or with a meta viewer. Then disable page caching for the checkout path and see whether coverage changes — if it does, caching is your cause.

  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.

WooCommerce → Marketo · prove

How it gets proven — WooCommerce → Marketo

Source of truth

WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.

  • 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.
  • Order meta confirmed present on orders placed while full page caching was active.

WooCommerce → 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 order meta on ten recent orders
  • Check the lead's activity log after a test conversion
  • Read the match rate, not the success message

Checked against

WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.

Get my free conversion tracking audit

Free30 minutesNo obligation

WooCommerce → Marketo · when not to buy

When you don't need this — WooCommerce → 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 small store with no caching layer and a single free plugin already reporting accurately, leave it alone.
  • If your sales team does not act on lead scores, pushing conversions into Marketo produces a tidier database and changes nothing about revenue.

WooCommerce → Marketo · what we deliver

What gets built — WooCommerce → Marketo

  • Identifier capture into WooCommerce

    Capture the click identifier and persist it as order meta on the order object with a small snippet in the theme's functions or a purpose-built plugin. Order meta lives in your own database, so it survives caching, plugin conflicts and the customer's browser.

  • Event source: the woocommerce_payment_complete hook

    Fire server-side from the PHP hook rather than from the thank-you page template. Page caching means the thank-you page cannot be relied on to execute anything, and on many stores it is served from cache to a paying customer.

  • Dispatch to Marketo

    The Marketo REST API, posted server-side to create or update the lead and record the activity.

  • Reversals where they exist

    The refund hooks carry the order ID, so reversals are straightforward once the identifier is on the order.

Written guarantee

95%+ tracking accuracy

Measured against WooCommerce → Orders (or the wp_wc_order_stats table), for the same window and status set.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

WooCommerce → Marketo questions, answered

Yes, through Marketo's REST API from the WooCommerce payment hook, as a custom activity on the lead keyed on email. It is only worth it for B2B stores with a sales team.

Free · 30 min

Get WooCommerce and Marketo joined properly

Free30 minutesNo obligation