Skip to main content
Magento → Customer.ioIntegration guide

Connecting Magento to Customer.io

Magento is self-hosted and endlessly customisable, which means every installation is different and full-page caching is always in the way. Customer.io triggers messages from behaviour, which means an event you send is not recorded — it is acted on, usually within seconds, by sending something to a real person. The join between them succeeds or fails on one thing: whether the person identifier you assign reaches the Magento order before the conversion happens, because Customer.io can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Magento to Customer.io: admin orders trigger emails too

Send Magento orders to Customer.io from the placement observer after filtering out admin, replacement and test orders by origin and customer group. Lowercase emails, include increment ID, subtotal, currency and resolved product names, and drive abandoned-cart from the quote once an email exists. Send credit memo events to stop cross-sells, and point staging at a separate workspace.

Magento's order placement observer fires for every order, including ones staff create in the admin for phone customers, replacement orders and test orders on production. Customer.io acts on arrival, so each becomes a triggered email: a replacement order sends a first-purchase welcome, and a staff test sends real mail to whatever address was typed in. Filter on order origin and customer group in the observer before anything is sent.

Identify people consistently by email or customer ID. Magento stores emails as entered, so one customer can arrive with different capitalization across orders; lowercase before sending. For abandoned-cart workflows the record is Magento's quote, not the order, and a quote carries an email only once the customer is logged in or has typed one at checkout. Anonymous carts cannot be followed up, whatever the workflow diagram says.

Send the order increment ID, subtotal, currency and line items with product names already resolved; a template that renders a name from a missing attribute sends an email with a blank where the product should be. Credit memos need their own event so review requests and cross-sells stop for returned items. Point staging Magento at a separate Customer.io workspace, because staging databases are often copies of production with real customer emails in them.

Magento → Customer.io · what breaks

Why this join usually fails — Magento → Customer.io

  1. 01

    The person identifier you assign never reaches Magento

    Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.

  2. 02

    Full-page cache between the visitor and your code

    The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.

  3. 03

    A test event sending a real email

    Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.

  4. 04

    Nothing reconciles afterwards

    Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.

Magento → Customer.io · the fix

What working looks like — Magento → Customer.io

  • The person identifier you assign on every order

  • Conversions arriving in Customer.io

    The event lands on the person, evaluates against every campaign trigger and segment condition, and may send immediately.

  • Reconciled against the source

Magento → Customer.io · architecture

How Magento and Customer.io actually connect

  1. 1

    Magento holds the truth

    You own the database, so the truth is as good as the query. Pin down which order statuses count as revenue — processing, complete, or both — because that choice moves the number substantially.

  2. 2

    Customer.io needs a click to match

    Customer.io needs the person identifier, the event name and any attributes the campaign conditions reference. An event whose attributes are missing will still trigger a campaign, which may then send a message with an empty placeholder in it.

  3. 3

    The identifier is the bridge

    The person identifier you assign, captured at the visit and carried into the Magento order.

  4. 4

    The event source decides reliability

    Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.

  5. 5

    Deduplication at the destination

    Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.

Magento → Customer.io · normal or broken

Working vs. broken, side by side — Magento → Customer.io

Normal, not a fault

  • The person identifier you assign present on the order

  • Sent from the Magento order placement observer

  • Deduplicated correctly

    Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.

  • Reconciles with the source

Actually broken

  • The person identifier you assign missing on most records

    Magento's full-page cache serves a stored render to the visitor, which means anything relying on dynamically rendered values can silently fail — and in Magento this has historically included serving one customer's cached block to another, which is a data problem as well as a tracking one.

  • Sent from the browser

    The page the customer saw is not the page your code assumed. This is the defining Magento tracking failure and it produces intermittent, hard-to-reproduce loss.

  • Counted twice, or not at all

    Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.

  • Nobody has reconciled it

Magento → Customer.io · diagnose

Diagnostic order — Magento → Customer.io

  1. 01

    Count orders carrying the person identifier you assign

  2. 02

    Follow one real conversion end to end

  3. 03

    Place a test order as an anonymous visitor through cache

    Not as an admin, which bypasses it. If the order data is missing on the cached path, caching is your cause.

  4. 04

    Confirm which workspace you are writing to before sending anything

    Environment separation is the whole safety mechanism in behaviour-triggered tools, and it is the thing most often skipped.

  5. 05

    Read the match rate, not the success message

    Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.

Magento → Customer.io · prove

How it gets proven — Magento → Customer.io

Source of truth

Magento's sales order records in your own database, for the same window and order status set.

  • The person identifier you assign confirmed present on a live order.
  • Events confirmed on person profiles with the triggered campaign activity verified, in a test workspace before production.
  • Order data confirmed populated on an order placed through a fully warmed cache.

Magento → Customer.io · free audit

What we check in the free audit

  • Count orders carrying the person identifier you assign
  • Follow one real conversion end to end
  • Place a test order as an anonymous visitor through cache
  • Confirm which workspace you are writing to before sending anything
  • Read the match rate, not the success message

Checked against

Magento's sales order records in your own database, for the same window and order status set.

Get my free conversion tracking audit

Free30 minutesNo obligation

Magento → Customer.io · when not to buy

When you don't need this — Magento → Customer.io

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the person identifier you assign.
  • If your Magento build has heavy customisation by another team, scope their availability first — the build is usually blocked there.
  • If your messaging is scheduled rather than behavioural, a simpler email platform does the job and removes the whole class of accidental-send risk.

Magento → Customer.io · what we deliver

What gets built — Magento → Customer.io

  • Identifier capture into Magento

    Capture the identifier and persist it as order data through an observer on order placement, server-side, so it never depends on what the cache served.

  • Event source: the Magento order placement observer

    Fire server-side from the observer rather than from the success page template, which is cached and may not execute anything.

  • Dispatch to Customer.io

    The Customer.io Track API, posted server-side from your order or product system with the person identifier and event attributes.

  • Reversals where they exist

    Credit memos are recorded against the original order and should reduce the reported figure.

Written guarantee

95%+ tracking accuracy

Measured against Magento's sales order records in your own database, for the same window and order status set.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Magento → Customer.io questions, answered

Magento posted the test order to a live workspace. Filter admin and test orders in the observer and use a separate workspace per environment.

Free · 30 min

Get Magento and Customer.io joined properly

Free30 minutesNo obligation