How to Track Shopify Orders, Checkouts & Revenue in MailInApp

Connecting Shopify does two separate jobs: it syncs customers into a contacts list you can send to, and it watches for checkout/order events so a send's own revenue shows up next to its opens and clicks. This walks through both, end to end — from Settings → Integrations to the "Store revenue" card in the email's Insights.

Subject

New arrivals — shop the collection

Connecting Shopify does two separate jobs: syncing your customers into a contacts list, and watching for checkout/order events so a send's own revenue shows up next to its opens and clicks. Here's exactly how to set both up and where to read the results.

If you've read "Track orders, checkouts & revenue" on the integrations page and weren't sure what that actually looks like day to day, this is the walkthrough. It runs from the Settings screen to the number that shows up in the email's Insights.

Step 1 — Connect your store

In your Shopify admin, create a small app for your store in Shopify's Dev Dashboard, install it on the store, and paste its Client ID and Client secret into Settings → Integrations in MailInApp. It takes about five minutes, and the Shopify guide shows each step with screenshots. Once the store connects, two things start immediately:

  • MailInApp creates a dedicated contacts list for the store and begins syncing existing customers into it in the background.
  • MailInApp registers webhooks with Shopify so new customers, started checkouts, and paid orders arrive live from then on — no periodic re-import needed.

Connecting is free on every plan, including Free, and your MailInApp plan is billed by MailInApp as usual.

Nothing about the email itself needs to be special. Design a project the normal way: a Countdown block for a live, always-accurate deadline works well for a promotion. An Image or Button pointed at a real product or collection URL on your store is what actually sends someone there — link to your store exactly the way you would from anywhere else, by pasting the real product page URL. There's no separate "tracking link" to generate and no tag to add by hand.

This is the part that's easy to miss, because there's nothing to configure. Every Button, Image, or other link-bearing block that points off MailInApp already gets routed through a click-tracking redirect when a recipient clicks it — that's how Insights › Engagement counts the clicks on any outbound link. A Product grid cart sends shoppers to your store the same way, with the same tags. For a link to an external site like your Shopify store, that same redirect does one more thing: it appends

utm_source=mailinapp
utm_medium=email
utm_campaign=<this project's ID>
utm_content=<the block that was clicked>

to the destination URL before sending the recipient on their way — but only if the link doesn't already carry its own utm_campaign. If you've deliberately tagged a link yourself for your own analytics, that tag is left exactly as you set it, and MailInApp won't attribute through it.

Step 4 — Shopify carries those tags through to the order

Shopify stores the URL a shopper landed on (including its full query string) on the order it eventually creates, whether they buy immediately or come back later. So the utm_campaign that named your MailInApp project is still sitting on the order by the time it's paid — nothing extra to configure on the Shopify side either.

Step 5 — MailInApp reads it back off the paid order

Once the order is actually paid — not just placed, since a placed-but-unpaid order is a checkout, covered below — Shopify calls MailInApp's webhook. MailInApp verifies the request genuinely came from Shopify, looks up the utm_campaign on the order, matches it back to your project, and records a purchase event for it. From here it flows through the same reporting pipeline a purchase made through one of MailInApp's own in-email checkouts would.

Step 6 — Read the results

Two places to look:

  • The email's Insights › Commerce shows a Store revenue card, with the revenue and the number of orders, once the first order comes back to it.
  • Every synced customer's own record updates with their order regardless of attribution, so even a purchase with no click behind it (someone who bought directly on your store) still updates that customer's history. It just won't show up tied to one specific campaign, since there was no click to attribute it through.

That customer-level history also feeds a Purchased and a Total revenue condition, available when you're building the audience for your next send, schedule, or journey. "People who bought something after last month's email" becomes a filter you can actually build, not a spreadsheet you have to assemble by hand.

Stalled checkouts start a reminder

A checkout that's started but not paid is a stall, and it starts a journey on its own. Point a journey's Store cart abandoned trigger at your store, set a delay, and a reminder goes out to anyone whose checkout stalls that long. Shoppers who pay in the meantime are skipped. Recover abandoned carts and checkouts walks through the whole flow.

Orders that start a journey

An order that comes back to an email also fires that email's Purchase journey trigger, just like a purchase made in the email itself. A thank-you, a care guide a week later or a satisfaction check-in can follow every order your emails bring in.

Turning that order history into a win-back offer

Synced orders aren't only for attribution. The same line-item data powers a Purchase history audience condition (bought a specific product, in a specific date range) and a per-project Discount offer that mints a real, single-use code on your own store for every match. See win back past buyers with purchase-history segments & discount codes for that walkthrough.

Getting started

Connect your store from Settings → Integrations, build one email with a real link to a product or collection page, and send it to a small segment first. Check the email's Insights › Commerce after a day or two: an order placed through that link shows up in the Store revenue card. See Shopify, Responses & webhooks, and Behavioral segments for the full reference.

Watch: sell your Shopify products from the inbox

Import your brand from your storefront, bring in a product with its pictures, grinds and price, add a countdown and a product grid, and follow a customer from the email to your Shopify checkout.

A typical build-and-send sequence

  1. 1

    Connect your Shopify store

    In your Shopify admin, create a small app for your store in the Dev Dashboard, install it, and paste its Client ID and Client secret into Settings → Integrations. Connecting is free on any plan, including Free; MailInApp then starts syncing your Shopify customers into a dedicated contacts list and registers webhooks so checkout and order events arrive live.

  2. 2

    Build an email that links back to your store

    Design a project with a Countdown for urgency and an Image or Button pointed at a real product or collection URL on your store — the same way you'd link to it from anywhere else. Nothing needs a special tracking parameter added by hand.

  3. 3

    Send it — MailInApp tags the link automatically

    When a recipient clicks through to your store, MailInApp's own click redirect appends utm_source=mailinapp, utm_medium=email, utm_campaign=<this project>, and utm_content=<the block> to the destination URL before sending them on — but only if that link doesn't already carry its own utm_campaign, so anything you've deliberately tagged yourself is left alone.

  4. 4

    Shopify carries those tags through checkout

    Shopify stores the landing URL's query string on the order itself. If the shopper buys — same visit or later, same device — the order's own data still carries the utm_campaign that named your project.

  5. 5

    MailInApp reads it back off the paid order

    The orders/paid webhook fires once the order is actually paid (not merely placed). MailInApp verifies it came from Shopify, matches the utm_campaign back to your project, and records it as a purchase — the same kind of event a native Product block checkout produces.

  6. 6

    Read the results in Insights

    The email's Insights › Commerce shows a Store revenue card, with the revenue and number of orders, once the first order comes back to it. Every synced order also updates the customer's own history, which Purchased and Total revenue conditions read when you build your next audience.

Frequently asked questions

Do I need to add UTM parameters to my Shopify links myself?

MailInApp adds them for you. Any Button, Image or other link pointing off MailInApp is click-tracked, and the redirect appends the utm_campaign that identifies your project the moment someone clicks — as long as the link doesn't already carry its own utm_campaign, which is left untouched.

What if a customer buys on my Shopify store without clicking an email link first?

That order still syncs normally — it updates the customer's own record in your contacts list — but there's no click for MailInApp to have tagged, so it won't attribute to a specific campaign or show up on that campaign's Store revenue card. Attribution only works for orders that trace back to an actual click-through.

Is this the same checkout as MailInApp's own Product block?

They're two different ways to sell. A Product block on MailInApp checkout charges through your own connected Stripe account, with no store involved. This tutorial covers the other case: the purchase happens on your Shopify store's own checkout, and MailInApp is just reading the result back through Shopify's webhook.

Does Shopify revenue count toward an A/B test's winning variant?

It's tracked, but separately: a Shopify order carries no MailInApp variant claim, so it adds to the project's own Store revenue total rather than any one variant's revenue number used to pick an A/B winner.

Can a stalled Shopify checkout start a reminder?

Yes. A journey on the Store cart abandoned trigger sends a reminder after the delay you set, and skips shoppers who have paid. Recover abandoned carts and checkouts walks through it.

Does this work the same way with WooCommerce?

Yes — WooCommerce connects with a REST API key, but customer sync, click-through attribution, and the Store revenue card all work identically once it's connected.

Build this in the studio

Start on the free plan — every interactive block and the full fallback engine are included on every tier.