Dotdigital + Magento 2

Connect Dotdigital and Magento 2 for Smarter eCommerce Marketing

Sync customer data automatically, recover abandoned carts, and run post-purchase campaigns between your store and marketing platform — no manual exports.

Why integrate Dotdigital and Magento 2?

Dotdigital and Magento 2 are a natural pairing for eCommerce brands that want to turn store data into personalized, revenue-driving marketing. Magento 2 captures every customer interaction — purchases, browsing behavior, cart activity, order history — while Dotdigital turns that data into targeted email, SMS, and omnichannel campaigns. Connect the two and your marketing runs on accurate, real-time commerce data, so the right message gets to the right customer at the right moment.

Automate & integrate Dotdigital & Magento 2

Use case

Abandoned Cart Recovery

When a Magento 2 customer adds items to their cart but doesn't check out, tray.ai can instantly trigger a targeted abandoned cart sequence in Dotdigital. Cart contents, product images, and pricing pass directly into the email template, making recovery messages feel personal and timely. Brands typically recover 5–15% of otherwise lost revenue with well-timed, data-rich abandoned cart flows.

Use case

New Customer Welcome Series

When a new account is created or a first purchase is completed in Magento 2, tray.ai automatically enrolls the customer in a Dotdigital welcome program. Customer profile data — name, location, purchase details — syncs to Dotdigital contact fields so the welcome series is personalized from the first message. No new customer gets a generic, untargeted onboarding experience.

Use case

Post-Purchase and Replenishment Campaigns

Once an order is fulfilled in Magento 2, tray.ai passes order data — products purchased, order value, fulfillment status — to Dotdigital to trigger post-purchase automations. This means timely review requests, cross-sell recommendations, and replenishment reminders for consumable products. Brands can build sophisticated journeys based on exactly what a customer bought and when they're likely to need it again.

Use case

Customer Segmentation and Loyalty Tier Sync

Keeping Dotdigital segments aligned with customer behavior in Magento 2 is what separates relevant campaigns from noise. Tray.ai continuously syncs customer attributes — lifetime spend, order frequency, product category preferences — into Dotdigital data fields so segments always reflect current behavior. That's what powers loyalty tier campaigns, VIP early access emails, and win-back flows for lapsed customers.

Use case

Back-in-Stock and Price Drop Alerts

When a product in Magento 2 is restocked or goes on sale, tray.ai can trigger targeted Dotdigital campaigns to customers who previously viewed or wishlisted that item. It closes the loop between inventory events and customer interest, driving urgency-fueled conversions. Set these flows up once and real-time Magento 2 catalog updates handle the rest.

Use case

Order Status and Transactional Messaging

Order confirmations, shipping notifications, and delivery updates are among the highest-opened emails an eCommerce brand sends. Route Magento 2 order events through tray.ai into Dotdigital and you can send branded, personalized transactional messages that also carry product recommendations and marketing content. Routine order updates become actual revenue touchpoints.

Use case

Win-Back Campaigns for Lapsed Customers

Tray.ai monitors order activity in Magento 2 and automatically flags customers who haven't purchased within a defined window, enrolling them in a Dotdigital win-back sequence. These campaigns can include personalized incentives, product recommendations based on past purchases, and escalating urgency across multiple touches. Reactivating even a small percentage of lapsed customers adds up fast.

Get started with Dotdigital & Magento 2 integration today

Dotdigital & Magento 2 Challenges

What challenges are there when working with Dotdigital & Magento 2 and how will using Tray.ai help?

Challenge

Real-Time Data Latency Between Cart Events and Campaign Triggers

Abandoned cart and browse abandonment campaigns only work if they fire quickly. A delay of even a few hours dramatically reduces recovery rates, and native or batch-based sync methods between Magento 2 and Dotdigital often introduce exactly that kind of lag. By the time the recovery email arrives, the customer's already bought somewhere else.

How Tray.ai Can Help:

Tray.ai listens for Magento 2 webhook events in real time and immediately triggers the corresponding Dotdigital enrollment, so abandoned cart emails can fire within minutes. This event-driven approach removes the need for scheduled batch jobs that introduce lag.

Challenge

Mapping Complex Magento 2 Order Data to Dotdigital Contact Fields

Magento 2 stores order and customer data in a relational structure with multiple entities — customers, orders, order items, addresses, products — that must be flattened and mapped to Dotdigital's contact and data field model. Without a flexible transformation layer, that mapping is fragile and painful to maintain.

How Tray.ai Can Help:

Tray.ai's built-in data transformation tools let teams extract, join, and reshape Magento 2 data into whatever structure Dotdigital requires. Custom logic, conditional mappings, and loops over order line items can all be configured visually without writing custom code or maintaining brittle middleware scripts.

Challenge

Keeping Dotdigital Segments Accurate as Customer Behavior Changes

Customer segments in Dotdigital — VIP spenders, first-time buyers, lapsed customers — go stale the moment behavior changes in Magento 2. Without continuous sync, marketing teams end up sending irrelevant messages to customers who've already moved into a different lifecycle stage.

How Tray.ai Can Help:

Tray.ai can trigger segment updates in Dotdigital whenever key customer attributes change in Magento 2 — total lifetime spend crossing a threshold, days since last order reaching a lapse point. Segmentation stays current without manual list management or nightly batch imports.

Challenge

Handling Magento 2 Multi-Store and Multi-Currency Environments

Enterprise Magento 2 deployments often run multiple storefronts, currencies, and locales from a single instance. Routing data from the correct store view to the correct Dotdigital account or address book — with appropriate currency and language handling — gets complicated and error-prone without a smart integration layer.

How Tray.ai Can Help:

Tray.ai workflows can inspect the Magento 2 store view, currency code, and locale on each record and apply conditional routing logic to send data to the right Dotdigital account, address book, or program. That multi-store logic lives centrally in tray.ai rather than being duplicated across custom integrations for each storefront.

Challenge

Preventing Duplicate Contacts and Conflicting Updates in Dotdigital

When multiple Magento 2 events — account registration, guest checkout, order placement — all try to create or update the same Dotdigital contact at once, you can end up with duplicate records, overwritten data, or contacts enrolled in conflicting programs. It's a data quality problem that quietly undermines campaign performance and reporting.

How Tray.ai Can Help:

Tray.ai handles deduplication logic within workflows, checking for existing Dotdigital contacts by email before creating new records and using upsert operations to merge updates cleanly. Conditional branches resolve conflicting program enrollments according to your business rules, keeping the Dotdigital database clean and reliable.

Start using our pre-built Dotdigital & Magento 2 templates today

Start from scratch or use one of our pre-built Dotdigital & Magento 2 templates to quickly solve your most common use cases.

Dotdigital & Magento 2 Templates

Find pre-built Dotdigital & Magento 2 solutions for common use cases

Browse all templates

Template

Magento 2 Abandoned Cart to Dotdigital Recovery Campaign

Automatically detects abandoned carts in Magento 2 and triggers a multi-step recovery email and SMS sequence in Dotdigital, passing full cart details — product names, quantities, images, and total value — into the campaign.

Steps:

  • Monitor Magento 2 for carts that remain inactive beyond a configurable time threshold
  • Extract cart contents, customer email, and session data from Magento 2
  • Create or update the Dotdigital contact with cart data fields and enroll them in the abandonment program

Connectors Used: Magento 2, Dotdigital

Template

Magento 2 New Order to Dotdigital Post-Purchase Sequence

When a new order is placed in Magento 2, this template syncs order details to the customer's Dotdigital profile and triggers a post-purchase journey covering order confirmation, shipping updates, review requests, and cross-sell recommendations.

Steps:

  • Trigger on new order creation event in Magento 2
  • Map order data — products, value, shipping address, and estimated delivery — to Dotdigital contact fields
  • Enroll customer in the appropriate Dotdigital post-purchase program based on product category or order value

Connectors Used: Magento 2, Dotdigital

Template

Magento 2 Customer Sync to Dotdigital Address Book

Continuously syncs new and updated customer records from Magento 2 to Dotdigital, keeping contact data, purchase attributes, and segment membership current so campaigns always reach the right audience.

Steps:

  • Poll Magento 2 for new or updated customer records on a scheduled interval
  • Transform and map customer attributes — including lifetime value, order count, and preferences — to Dotdigital data fields
  • Upsert contacts in the appropriate Dotdigital address book and update segment enrollment based on current attributes

Connectors Used: Magento 2, Dotdigital

Template

Magento 2 Back-in-Stock Event to Dotdigital Alert Campaign

When a previously out-of-stock product is replenished in Magento 2, this template triggers a targeted Dotdigital email campaign to customers who showed prior interest, driving immediate traffic and conversions.

Steps:

  • Detect product stock level changes in Magento 2 where inventory transitions from zero to available
  • Look up the Dotdigital segment of customers who viewed or wishlisted the product
  • Trigger a back-in-stock Dotdigital campaign with product details, pricing, and a direct purchase link

Connectors Used: Magento 2, Dotdigital

Template

Magento 2 Lapsed Customer to Dotdigital Win-Back Enrollment

Automatically identifies customers in Magento 2 who haven't placed an order within a set number of days and enrolls them in a personalized Dotdigital win-back email sequence tailored to their purchase history.

Steps:

  • Run a scheduled query against Magento 2 orders to identify customers with no purchase in the defined lapse window
  • Retrieve each customer's product category history and lifetime spend from Magento 2
  • Enroll the customer in the Dotdigital win-back program with personalized data fields and suppress if they purchase before the sequence completes

Connectors Used: Magento 2, Dotdigital

Template

Magento 2 Product Catalog Sync to Dotdigital

Keeps the Dotdigital product catalog in sync with Magento 2, so dynamic email blocks, product recommendations, and browse abandonment campaigns always show accurate pricing, imagery, and availability.

Steps:

  • Detect new or updated products in the Magento 2 catalog on a scheduled or event-driven basis
  • Map product attributes — name, SKU, price, image URL, and stock status — to the Dotdigital catalog schema
  • Upsert product records in Dotdigital so dynamic content blocks and recommendation engines use current data

Connectors Used: Magento 2, Dotdigital