Connecting Craft CMS to Iterable
Craft is a developer-oriented CMS, usually built bespoke by an agency, which means the implementation is whatever that agency decided and nothing is standard. 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 Craft 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
Craft Commerce to Iterable: carts, purchases and email case
Lowercase and trim the Craft order email before every Iterable call, or use a userId from the Craft user UID. Send cart updates for idle incomplete Commerce orders from a queue job, and the purchase from the order-complete listener with order reference, items and total on every order, recording a sent flag to prevent duplicates.
Iterable resolves users by email or user ID, and Craft stores the email on an order exactly as the customer typed it. A customer who checks out as Jane@Example.com and later as jane@example.com can become two Iterable users in two journeys. Lowercase and trim the email in the listener before every call, or use a userId based on the Craft user UID if your Iterable project is set up for it.
Craft Commerce keeps incomplete carts as order records, which suits Iterable's cart and purchase model: a queue job can send cart updates for carts with an email that have sat idle past your threshold, and the order-complete listener sends the purchase with the order reference, items and total. The purchase is also what removes the customer from the abandoned-cart journey, so it must fire on every completed order, not only when the browser reaches the thank-you page.
Iterable will not deduplicate, and journeys span email, push and SMS, so a re-run queue job can reach a customer on three channels about one order. Record on the order that the purchase was sent and check that flag before posting. Test with a non-production Iterable project from a non-production Craft environment, since staging databases copied from production contain real customer emails.
Craft → Iterable · what breaks
Why this join usually fails — Craft → Iterable
- 01
The user ID or email on the profile never reaches Craft
Craft's template caching and static caching plugins both serve stored output, and because every build is custom, where the capture code lives differs per site. There is no standard place to look.
- 02
Every install is bespoke
There is no standard Craft setup, so an approach that worked on another Craft site may have nothing to attach to on this one. Read the build before quoting.
- 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.
- 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.
Craft → Iterable · the fix
What working looks like — Craft → 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
Craft CMS's own records are the reference, not either dashboard.
Craft → Iterable · architecture
How Craft and Iterable actually connect
- 1
Craft CMS holds the truth
Craft installs are bespoke by nature. Establish how this particular build models a completed order before assuming anything transfers from another Craft site.
- 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
The identifier is the bridge
The user ID or email on the profile, captured at the visit and carried into the Craft Commerce order.
- 4
The event source decides reliability
Fire from the event listener in PHP rather than a Twig template, which may be cached.
- 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.
Craft → Iterable · normal or broken
Working vs. broken, side by side — Craft → Iterable
Normal, not a fault
The user ID or email on the profile present on the order
Visible on the record itself in Craft CMS, not merely captured somewhere on the site.
Sent from the Craft Commerce order-complete event
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
Iterable's count and Craft CMS's records agree within a few percent over a closed window.
Actually broken
The user ID or email on the profile missing on most records
Craft's template caching and static caching plugins both serve stored output, and because every build is custom, where the capture code lives differs per site. There is no standard place to look.
Sent from the browser
There is no standard Craft setup, so an approach that worked on another Craft site may have nothing to attach to on this one. Read the build before quoting.
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
The dashboard shows a number and no one has compared it to Craft CMS.
Craft → Iterable · diagnose
Diagnostic order — Craft → Iterable
- 01
Count orders carrying the user ID or email on the profile
- 02
Follow one real conversion end to end
- 03
Read how this specific build handles order completion
Assumptions carried from another Craft project are the main source of wasted time here.
- 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.
- 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.
Craft → Iterable · prove
How it gets proven — Craft → Iterable
Against Craft CMS's own records, not against either platform's dashboard.
Source of truth
Craft Commerce's order records in your own database, filtered to completed.
- 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 custom field confirmed populated on an order placed as an anonymous visitor through cache.
Craft → 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
- Read how this specific build handles order completion
- Send a test event and read every journey it entered
- Read the match rate, not the success message
Checked against
Craft Commerce's order records in your own database, filtered to completed.
Free30 minutesNo obligation
Craft → Iterable · when not to buy
When you don't need this — Craft → Iterable
- If Iterable already reports conversions that reconcile against Craft CMS's records within a few percent, this join is working and there is nothing to buy.
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the user ID or email on the profile.
- If the original agency is still engaged, the fastest path is usually specifying the field and having them add the hook.
- If you send on a schedule rather than on behaviour, a simpler email platform does the job without the cross-channel blast radius.
Craft → Iterable · what we deliver
What gets built — Craft → Iterable
Identifier capture into Craft
Capture the identifier and store it as a custom field on the order through a Craft event listener, server-side.
Event source: the Craft Commerce order-complete event
Fire from the event listener in PHP rather than a Twig template, which may be cached.
Dispatch to Iterable
The Iterable events API, posted server-side with the user identifier and event fields.
Reversals where they exist
Refunds and cancelled orders are recorded against the order.
Written guarantee
95%+ tracking accuracy
Measured against Craft Commerce's order records in your own database, filtered to completed.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Craft → Iterable questions, answered
From a PHP listener on order completion, posting the purchase with a lowercased email or a user ID, the order reference and items. Keep a sent flag on the order so retries do not post twice.
Yes. Incomplete Commerce orders with an email can be sent as cart updates after an idle period, and the purchase event on completion exits the journey.
Almost always because the user ID or email on the profile never reached the Craft Commerce order. Craft's template caching and static caching plugins both serve stored output, and because every build is custom, where the capture code lives differs per site. There is no standard place to look. Measure coverage before debugging the dispatch.
Iterable resolves to a user by userId or email. Sending an event with an email that does not exist creates a new user rather than updating one, which fragments the profile and means a customer can sit in two journeys simultaneously with neither complete.
The Craft Commerce order-complete event. Fire from the event listener in PHP rather than a Twig template, which may be cached.
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.
More on Craft → Iterable
- Craft → Google AdsConnecting Craft CMS to Google Ads
- Craft → MetaConnecting Craft CMS to Meta Conversions API
- Craft → GA4Connecting Craft CMS to GA4
RELATED GUIDES
Where Craft → Iterable fits in the rest of your tracking
- AEM → IterableConnecting Adobe Experience Manager to Iterable
- Contentful → IterableConnecting Contentful to Iterable
- Umbraco → IterableConnecting Umbraco to Iterable
- Craft → Customer.ioConnecting Craft CMS to Customer.io
- Craft → Marketing CloudConnecting Craft CMS to Salesforce Marketing Cloud
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Duda → IterableConnecting Duda to Iterable
- Drupal Commerce → IterableConnecting Drupal Commerce to Iterable
Free · 30 min
Get Craft and Iterable joined properly
Free30 minutesNo obligation
