Shopify + Braze

Connect Shopify and Braze for Smarter Customer Engagement

Sync your ecommerce data with Braze in real time to run personalized, revenue-driving campaigns at every stage of the customer journey.

Why integrate Shopify and Braze?

Shopify is the engine behind your store — capturing orders, products, customer profiles, and behavioral signals every second of the day. Braze is where that data becomes action, powering lifecycle marketing, push notifications, email campaigns, and in-app messages that feel personal. Together, Shopify and Braze close the loop between what your customers do and what your brand says next. Integrating them means every cart abandonment, first purchase, or lapsed-customer moment can trigger the right message at exactly the right time.

Automate & integrate Shopify & Braze

Use case

Abandoned Cart Recovery Campaigns

When a Shopify customer adds items to their cart but doesn't complete checkout, tray.ai immediately sends the cart details and customer identity to Braze to trigger a targeted abandonment sequence. The workflow passes product names, images, prices, and cart URLs so Braze can render fully personalized recovery emails or push notifications. This real-time handoff dramatically shortens the window between abandonment and first recovery touchpoint.

Use case

Post-Purchase Lifecycle Onboarding

Every new Shopify order event can trigger a tailored post-purchase journey in Braze — starting with order confirmation, moving through shipping updates, and landing on review requests or cross-sell recommendations. tray.ai maps Shopify order data to Braze custom events and user attributes so each message reflects what the customer actually bought. Transactional moments become relationship-building ones.

Use case

Customer Profile Enrichment and Segmentation

As customers interact with your Shopify store — making purchases, earning loyalty points, or updating their profile — tray.ai syncs those attribute changes to Braze user profiles in real time. Lifetime value, order count, product category preferences, and last purchase date all become available as Braze segmentation filters and personalization tokens. Your Braze audience segments stay accurate without manual exports.

Use case

Win-Back Campaigns for Lapsed Customers

tray.ai monitors Shopify purchase history and flags customers who haven't ordered within a configurable time window, then creates or updates a Braze segment to trigger a win-back campaign. The workflow passes time-since-last-purchase, previous product categories, and average order value into Braze so the campaign feels genuinely relevant. Re-engagement offers are suppressed automatically the moment a qualifying purchase is detected in Shopify.

Use case

VIP and High-Value Customer Identification

When a Shopify customer crosses a lifetime spend threshold or places their Nth order, tray.ai updates their Braze profile with a VIP flag or loyalty tier attribute and can trigger an exclusive welcome message or offer. Your most valuable customers get recognized in real time, not after the next batch report. Braze Canvas flows can then treat these customers differently across every future campaign.

Use case

Product Catalog Sync for Personalized Recommendations

tray.ai keeps Braze's connected content and catalog features updated with your latest Shopify product data — including titles, images, prices, inventory status, and collections. Email and push campaigns can dynamically render current products without hard-coded content blocks. Out-of-stock products are automatically suppressed from recommendation slots before messages go out.

Use case

Refund and Cancellation Re-Engagement

When Shopify records a refund or order cancellation, tray.ai routes that signal to Braze to trigger a service-recovery message — an apology, a discount code, or an invitation to try again. The workflow also updates the customer's Braze profile to reflect the negative experience, so future campaign logic accounts for where they're at. A moment that could drive churn becomes a chance to win back trust.

Get started with Shopify & Braze integration today

Shopify & Braze Challenges

What challenges are there when working with Shopify & Braze and how will using Tray.ai help?

Challenge

Matching Customer Identities Across Both Platforms

Shopify and Braze use different identity systems — Shopify relies on numeric customer IDs and email addresses while Braze uses external_id and user aliases. Guest checkouts, social logins, and email changes create fragmented profiles that can result in duplicate Braze users or missed event attribution.

How Tray.ai Can Help:

tray.ai resolves identity by using email as a shared key, mapping Shopify customer IDs to Braze external_id at the point of creation, and handling alias merging for guest-to-registered customer conversions. Custom logic branches manage edge cases like email changes without requiring manual data cleanup.

Challenge

Handling High-Volume Order Events Without Data Loss

During flash sales, Black Friday, or product launches, Shopify can generate thousands of order and cart events per minute. Naive webhook listeners can drop events under load, leading to missed purchase records in Braze and inaccurate segmentation or revenue reporting.

How Tray.ai Can Help:

tray.ai's elastic, queue-backed execution model absorbs traffic spikes by processing webhook payloads asynchronously at scale. Built-in retry logic means transient failures on the Braze API side don't result in lost events, and tray.ai's audit logs give full visibility into every event processed.

Challenge

Keeping Product and Pricing Data Consistent

Shopify product prices, availability, and variants change constantly. Braze campaigns that embed product data can go stale fast — promoting out-of-stock items or showing the wrong price — if catalog syncs run infrequently or fail without anyone noticing.

How Tray.ai Can Help:

tray.ai schedules reliable product catalog syncs to Braze and can also trigger incremental updates on Shopify products/update webhook events. Error handling surfaces failed sync records immediately so your team can act before inaccurate content reaches customers.

Challenge

Respecting Marketing Consent and Suppression Lists

Shopify tracks marketing opt-in status on customer records, but that consent signal isn't automatically reflected in Braze subscription groups or global suppression lists. Sending to unsubscribed customers creates compliance risk and damages deliverability.

How Tray.ai Can Help:

tray.ai maps Shopify's email_marketing and sms_marketing consent fields to the appropriate Braze subscription group states every time a customer record is created or updated. Opt-outs captured in either platform can be written back to the other, keeping consent consistent across your stack.

Challenge

Deduplicating Events from Multiple Shopify Sources

Businesses using Shopify alongside third-party apps, loyalty platforms, or headless storefronts often generate duplicate order or customer events from multiple sources feeding into Braze, inflating purchase counts and triggering unwanted duplicate messages.

How Tray.ai Can Help:

tray.ai adds idempotency checks using Shopify order IDs and webhook message IDs before posting events to Braze, so each unique transaction is recorded exactly once. Workflow conditions filter events by source origin so only canonical Shopify data is authoritative for Braze updates.

Start using our pre-built Shopify & Braze templates today

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

Shopify & Braze Templates

Find pre-built Shopify & Braze solutions for common use cases

Browse all templates

Template

Shopify Abandoned Cart to Braze Trigger Event

Automatically captures Shopify abandoned cart webhooks and sends a structured custom event to Braze — including cart contents, total value, and a direct checkout recovery URL — to kick off a multi-step abandonment Canvas.

Steps:

  • Listen for Shopify checkout.abandoned webhook events in tray.ai
  • Enrich the payload with customer email, product details, and cart recovery URL
  • Send a custom event and user alias to Braze via the /users/track endpoint to trigger the Canvas

Connectors Used: Shopify, Braze

Template

Shopify New Order to Braze Purchase Event

Streams every completed Shopify order into Braze as a native purchase event, mapping product IDs, prices, quantities, and currency so Braze revenue reporting and purchase-based segments stay accurate in real time.

Steps:

  • Receive Shopify orders/paid webhook and parse line items
  • Map each line item to a Braze purchase object with revenue, currency, and product metadata
  • Post purchase events to Braze /users/track and update customer profile attributes such as total_orders and lifetime_value

Connectors Used: Shopify, Braze

Template

Shopify Customer Create or Update to Braze User Profile Sync

Keeps Braze user profiles in sync with Shopify customer records — name, email, phone, marketing opt-in status, tags, and custom metafield values — whenever a customer is created or updated in Shopify.

Steps:

  • Trigger on Shopify customers/create and customers/update webhook events
  • Transform Shopify customer fields to Braze attribute schema including consent flags
  • Upsert the user record in Braze using external_id matching on Shopify customer ID

Connectors Used: Shopify, Braze

Template

Shopify Product Catalog to Braze Catalog Sync

Runs on a scheduled interval to pull active Shopify products and push them into a Braze catalog, so personalization tokens, recommendation blocks, and Connected Content calls always reference live inventory and pricing data.

Steps:

  • Query Shopify GraphQL API for active products with title, price, image, and inventory status
  • Format product data to match the Braze catalog schema
  • Batch upsert records to Braze catalog via the /catalogs endpoint and log sync results

Connectors Used: Shopify, Braze

Template

Shopify Refund Issued to Braze Service Recovery Campaign

Detects refunds processed in Shopify and triggers a targeted service-recovery message in Braze, attaching refund amount and order details so the outreach feels specific rather than generic.

Steps:

  • Receive Shopify refunds/create webhook and extract order and customer identifiers
  • Update the Braze user profile with a last_refund_date attribute and refund_count increment
  • Send a Braze custom event to trigger a service-recovery Canvas with refund context as event properties

Connectors Used: Shopify, Braze

Template

Shopify LTV Threshold to Braze VIP Segment Enrollment

Monitors cumulative order value per customer in Shopify and automatically updates a VIP or loyalty-tier attribute in Braze when a spending threshold is crossed, enrolling the customer in an exclusive high-value communication track.

Steps:

  • On each Shopify orders/paid event, calculate the customer's running lifetime spend
  • Compare against configured VIP tier thresholds and determine the appropriate tier
  • Patch the Braze user profile with the vip_tier attribute and fire a tier_upgraded custom event to trigger the welcome Canvas

Connectors Used: Shopify, Braze