Skip to main content
Drupal Commerce → IterableIntegration guide

Connecting Drupal Commerce to Iterable

Drupal Commerce is self-hosted commerce inside a CMS built for complex content, which means the store is one part of a much larger site you fully control. Iterable orchestrates journeys across email, push, SMS and in-app from one user profile, which means a single mis-shaped event can trigger four channels at once. The join between them succeeds or fails on one thing: whether the user ID or email on the profile reaches the Drupal Commerce order before the conversion happens, because Iterable can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Drupal Commerce to Iterable: carts and purchases on one user

Map Drupal Commerce draft orders to Iterable's update-cart call and send purchases from the order placement hook through its track-purchase call with line items and the order number. Key registered customers on their Drupal user ID, since emails change, and guests by order email. Send once per transition and update a cancellation field.

Iterable has dedicated commerce calls, one to update a user's cart and one to track a purchase with its line items and total, and Drupal Commerce maps onto them cleanly. A draft order is the cart; changes to its order items can update the Iterable cart, and the order placement hook tracks the purchase. Use those rather than generic custom events, so Iterable's own cart and purchase data stays coherent across email, push and SMS.

Identity is the hard part. Iterable resolves by email or user ID, and Drupal lets registered customers change their account email. If Iterable is keyed on email, the next order after a change creates a new Iterable user and splits the person across journeys. Key registered customers on their Drupal user ID and update the email on change. Guest orders sit under the anonymous Drupal user, so they must be keyed by the order email instead.

A purchase sent twice can move someone through a cross-channel journey twice. Send once per placement transition, with the Drupal order number in the purchase, and make sure an offsite gateway's late notification does not fire the hook a second time. Cancellations should update a field the journey reads so post-purchase steps stop for orders that never shipped.

Drupal Commerce → Iterable · what breaks

Why this join usually fails — Drupal Commerce → Iterable

  1. 01

    The user ID or email on the profile never reaches Drupal Commerce

    Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run.

  2. 02

    Configurable workflow states nobody agreed on

    Drupal Commerce lets each install define its own order states. Two people reporting on the same store routinely count different states and never reconcile.

  3. 03

    One duplicate, four channels

    Cross-channel orchestration multiplies the cost of a bad event. Where a duplicate in an ad platform is a reporting error, here it reaches the customer on their phone, in their inbox and inside the app, about a single purchase.

  4. 04

    Nothing reconciles afterwards

    Iterable shows the user profile with its event history and journey membership. Read the profile, and check whether a duplicate profile was created by the same email arriving in a different case.

Drupal Commerce → Iterable · the fix

What working looks like — Drupal Commerce → Iterable

  • The user ID or email on the profile on every order

  • Conversions arriving in Iterable

    The event lands on the user profile, evaluates against every running journey, and may trigger sends across several channels immediately.

  • Reconciled against the source

Drupal Commerce → Iterable · architecture

How Drupal Commerce and Iterable actually connect

  1. 1

    Drupal Commerce holds the truth

    You own the database, so the truth is exactly as good as the query. Pin down which order states count as revenue before comparing anything — Drupal's workflow states are configurable per install, so no two sites agree by default.

  2. 2

    Iterable needs a click to match

    The user identifier, the event name and the data fields the journey conditions reference. A journey branching on a field that arrives empty will take the wrong path silently.

  3. 3

    The identifier is the bridge

    The user ID or email on the profile, captured at the visit and carried into the Drupal Commerce order.

  4. 4

    The event source decides reliability

    Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.

  5. 5

    Deduplication at the destination

    Iterable does not deduplicate events. A purchase sent twice can advance a journey twice, and because journeys span channels the duplicate can produce an email, a push and an SMS about one order.

Drupal Commerce → Iterable · normal or broken

Working vs. broken, side by side — Drupal Commerce → Iterable

Normal, not a fault

  • The user ID or email on the profile present on the order

  • Sent from the Drupal Commerce order placement hook

  • Deduplicated correctly

    Iterable does not deduplicate events. A purchase sent twice can advance a journey twice, and because journeys span channels the duplicate can produce an email, a push and an SMS about one order.

  • Reconciles with the source

Actually broken

  • The user ID or email on the profile missing on most records

    Drupal's internal page cache and any reverse proxy in front of it serve stored renders, so anything relying on dynamically rendered values fails intermittently. Multilingual and multi-site installs add further paths where the capture code may simply not run.

  • Sent from the browser

    Drupal Commerce lets each install define its own order states. Two people reporting on the same store routinely count different states and never reconcile.

  • Counted twice, or not at all

    Cross-channel orchestration multiplies the cost of a bad event. Where a duplicate in an ad platform is a reporting error, here it reaches the customer on their phone, in their inbox and inside the app, about a single purchase.

  • Nobody has reconciled it

Drupal Commerce → Iterable · diagnose

Diagnostic order — Drupal Commerce → Iterable

  1. 01

    Count orders carrying the user ID or email on the profile

  2. 02

    Follow one real conversion end to end

  3. 03

    List the order states in use and agree which count as revenue

    Do this before any technical work — it resolves more Drupal Commerce disputes than any code change.

  4. 04

    Send a test event and read every journey it entered

    Not just whether the event arrived — which journeys it triggered and what each one sent. That is the blast radius.

  5. 05

    Read the match rate, not the success message

    Iterable shows the user profile with its event history and journey membership. Read the profile, and check whether a duplicate profile was created by the same email arriving in a different case.

Drupal Commerce → Iterable · prove

How it gets proven — Drupal Commerce → Iterable

Source of truth

Drupal's commerce_order records in your own database, filtered to completed states.

  • The user ID or email on the profile confirmed present on a live order.
  • Purchases confirmed on single user profiles with the triggered journeys verified, tested in a non-production project first.
  • Order field data confirmed populated on an order placed through a fully warmed cache as an anonymous visitor.

Drupal Commerce → Iterable · free audit

What we check in the free audit

  • Count orders carrying the user ID or email on the profile
  • Follow one real conversion end to end
  • List the order states in use and agree which count as revenue
  • Send a test event and read every journey it entered
  • Read the match rate, not the success message

Checked against

Drupal's commerce_order records in your own database, filtered to completed states.

Get my free conversion tracking audit

Free30 minutesNo obligation

Drupal Commerce → Iterable · when not to buy

When you don't need this — Drupal Commerce → Iterable

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the user ID or email on the profile.
  • If your Drupal site is content-only with commerce elsewhere, work at the commerce system instead — this is the wrong layer.
  • If you send on a schedule rather than on behaviour, a simpler email platform does the job without the cross-channel blast radius.

Drupal Commerce → Iterable · what we deliver

What gets built — Drupal Commerce → Iterable

  • Identifier capture into Drupal Commerce

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

  • Event source: the Drupal Commerce order placement hook

    Fire server-side from the hook rather than the checkout completion template, which is cacheable and may not execute anything.

  • Dispatch to Iterable

    The Iterable events API, posted server-side with the user identifier and event fields.

  • Reversals where they exist

    Order state transitions to refunded or cancelled are recorded and can drive reversals.

Written guarantee

95%+ tracking accuracy

Measured against Drupal's commerce_order records in your own database, filtered to completed states.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Drupal Commerce → Iterable questions, answered

Treat the draft order as the cart and update Iterable's cart whenever its items change, then track the purchase from the order placement hook.

Free · 30 min

Get Drupal Commerce and Iterable joined properly

Free30 minutesNo obligation