Skip to main content
WooCommerce → Marketing CloudIntegration guide

Connecting WooCommerce to Salesforce Marketing Cloud

WooCommerce keeps the order in your own database, which is both the advantage and the reason nobody has wired it properly. Marketing Cloud is a different product from Salesforce CRM with a different identity model, which catches out almost everyone who assumes a contact in one is a contact in the other. The join between them succeeds or fails on one thing: whether the Subscriber Key reaches the WooCommerce order before the conversion happens, because Marketing Cloud can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

WooCommerce to Marketing Cloud: orders into keyed data extensions

Choose a Subscriber Key such as normalized email or a CRM ID, since guest checkout leaves WooCommerce customer IDs missing. Insert paid orders and related line items into data extensions from woocommerce_payment_complete, with order ID as primary key. Abandoned-cart data must come from the browser or a plugin, and cart journeys must check orders first.

Marketing Cloud pairs with WooCommerce in larger organizations where the store is one of several sales channels and email and SMS run centrally. The first decision is the Subscriber Key, because WooCommerce offers two candidates, customer ID and email, and guest checkout means the customer ID is often missing. A normalized email, or an ID your CRM issues, usually wins; the WooCommerce customer ID alone fragments guests.

Insert each paid order into an orders data extension, and line items into a second one related to it, from woocommerce_payment_complete or a near-real-time sync. Post-purchase, replenishment and review journeys then read from those. Make the order ID the primary key so a repeated hook updates the row instead of inserting another, and the customer does not enter the journey twice.

Where it breaks is abandoned cart. WooCommerce does not keep guest carts server-side in a form Marketing Cloud can read, so cart data has to come from the browser or a plugin that stores it, with the email captured before checkout. A cart journey must also check the orders data extension before each send, or a customer who bought on another device gets a reminder. Test with real WooCommerce statuses in a non-production business unit.

WooCommerce → Marketing Cloud · what breaks

Why this join usually fails — WooCommerce → Marketing Cloud

  1. 01

    The Subscriber Key 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

    Two identity models treated as one

    Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.

  4. 04

    Nothing reconciles afterwards

    Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.

WooCommerce → Marketing Cloud · the fix

What working looks like — WooCommerce → Marketing Cloud

  • The Subscriber Key on every order

  • Conversions arriving in Marketing Cloud

    The record lands in the data extension, the journey's entry criteria evaluate on its schedule, and sends follow.

  • Reconciled against the source

WooCommerce → Marketing Cloud · architecture

How WooCommerce and Marketing Cloud 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

    Salesforce Marketing Cloud needs a click to match

    The Subscriber Key, the data extension the journey listens to, and the fields its decision splits reference. An event landing in the wrong data extension will be stored correctly and trigger nothing.

  3. 3

    The identifier is the bridge

    The Subscriber Key, 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

    Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.

WooCommerce → Marketing Cloud · normal or broken

Working vs. broken, side by side — WooCommerce → Marketing Cloud

Normal, not a fault

  • The Subscriber Key present on the order

  • Sent from the woocommerce_payment_complete hook

  • Deduplicated correctly

    Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.

  • Reconciles with the source

Actually broken

  • The Subscriber Key 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

    Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.

  • Nobody has reconciled it

WooCommerce → Marketing Cloud · diagnose

Diagnostic order — WooCommerce → Marketing Cloud

  1. 01

    Count orders carrying the Subscriber Key

  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

    Confirm what Subscriber Key is actually set to in this org

    Before sending anything. It is a configuration decision made once, often years ago, and every integration built afterwards inherits it.

  5. 05

    Read the match rate, not the success message

    Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.

WooCommerce → Marketing Cloud · prove

How it gets proven — WooCommerce → Marketing Cloud

Source of truth

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

  • The Subscriber Key confirmed present on a live order.
  • Records confirmed on single subscriber records in the correct data extension, with the triggered journey verified in a non-production business unit first.
  • Order meta confirmed present on orders placed while full page caching was active.

WooCommerce → Marketing Cloud · free audit

What we check in the free audit

  • Count orders carrying the Subscriber Key
  • Follow one real conversion end to end
  • Check order meta on ten recent orders
  • Confirm what Subscriber Key is actually set to in this org
  • 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 → Marketing Cloud · when not to buy

When you don't need this — WooCommerce → Marketing Cloud

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the Subscriber Key.
  • If you run a small store with no caching layer and a single free plugin already reporting accurately, leave it alone.
  • If you are on Salesforce CRM but sending email through a simpler platform, adding Marketing Cloud brings an identity model to reconcile that you currently do not have to think about.

WooCommerce → Marketing Cloud · what we deliver

What gets built — WooCommerce → Marketing Cloud

  • 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 Marketing Cloud

    A server-side insert into the data extension the journey is configured against, keyed on Subscriber Key.

  • 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 → Marketing Cloud questions, answered

Post paid orders and line items into data extensions keyed on order ID, with a Subscriber Key you have defined, usually a normalized email. Check whether a connector exists for your setup before building one.

Free · 30 min

Get WooCommerce and Marketing Cloud joined properly

Free30 minutesNo obligation