virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
blog / 2026-11-17

Email marketing revenue tracking for online stores

By Devendra Variya, co-founder of Virling. Published 2026-11-17.

To track email marketing revenue for an online store, tag every link in your campaigns and automated flows with utm_medium=email and a utm_campaign per campaign or flow, then credit each Shopify or WooCommerce order to the tagged visit before it. That gives you revenue from real orders, counted once, next to every other channel. The “attributed revenue” in your email tool answers a different question, and this post explains why the two rarely match.

Writing a creator newsletter rather than running a store? See newsletter revenue tracking instead.

Why email tool revenue and order revenue differ

Your email tool and your store both report revenue, but they credit it by different rules.

  • Open-based crediting. Most email tools credit an order to an email when the buyer opened it, or clicked it, within an attribution window you set, however the buyer reached the store. A subscriber who opened your sale email and later bought from a search ad counts as email revenue.
  • Opens are not always people. Some mail apps load every email, images included, on their own to protect privacy. Each of those loads counts as an open, so open-based revenue grows without anyone reading.
  • One order, many claims. Your email tool, your ad platforms and your affiliate network each credit by their own rules, so the same order can be counted in several reports. Added up, they can exceed what the store took.
  • Click-based crediting. An order is credited to email only when the buyer clicked a link and landed on the store. Each order goes to one channel, so channel totals add up to your store revenue.

Neither is wrong; they measure different things. Open-based numbers show how many buyers had seen an email. Click-based numbers show which visits led to orders, and they compare fairly against search, social and ads because every channel is counted the same way. Ecommerce attribution covers the same question for ads, returns and repeat orders.

Virling credits each matched store order to one visit, so the Email row on its Channels card is counted by the same rule as search, social and ads.

Start free trial See the demo

How Virling credits email orders

Virling is click-based. Every session gets one channel from its first pageview, and utm_medium is checked first: email, newsletter or e-mail is the Email channel, whatever the referrer says. Many mail apps send no referrer at all, so an untagged email click usually lands in Direct. See how channels are decided.

Orders come straight from your store. Connect Shopify with a custom app token that can only read orders, or WooCommerce with a read-only REST API key, and Virling imports new orders every minute and lowers revenue when you refund. A short snippet stores the visitor ID on each order, so the order is joined to the visits before it. See link checkout to visits.

Under the default model, the whole order is credited to the latest visit in the last 90 days that was not Direct, with its channel, source and campaign. A shopper who clicks your abandoned cart email and comes back the next day by typing your address is credited to that email. A shopper who clicks the email and later returns from a search result is credited to Organic search. An email that was only opened is never credited. You can switch to first touch or last touch in site settings; see the attribution model.

A UTM template for campaigns and flows

Keep utm_medium=email on every link, use the source to split one-off campaigns from automated flows, and name each campaign or flow in utm_campaign. Use utm_content to tell the emails in a flow, or two links in one email, apart.

Campaigns

One-off sends to your list, such as a sale or a product drop. One campaign value per send, with the month:

https://yourstore.com/collections/sale?utm_source=newsletter&utm_medium=email&utm_campaign=winter-sale-2026-12&utm_content=hero-button

Flows

Automated emails that run all year. One campaign value per flow that never changes, and the email in the flow as content:

  • Abandoned cart: utm_source=flow&utm_medium=email&utm_campaign=flow-abandoned-cart&utm_content=email-1
  • Welcome: utm_source=flow&utm_medium=email&utm_campaign=flow-welcome&utm_content=email-2
  • Win-back: utm_source=flow&utm_medium=email&utm_campaign=flow-win-back&utm_content=email-1

With these values, the Source tab splits Email revenue into campaigns and flows, and the Campaign tab shows one row per send and one per flow. utm_content is stored with the visit but is not a report row, so if you want each email of a flow as its own row, add the step to the campaign instead, such as flow-abandoned-cart-1. Write your values down once with the free UTM naming template, and lowercase every one.

Most email tools let you add UTM tags to every link in a template automatically. Set it once per flow, then check a sent email: click a link and look for the tags in the address bar.

Read email revenue by campaign and flow

1. Open the Email channel

On the dashboard, the Channels card lists each channel with visitors, revenue and revenue per visitor. Click Email to filter the whole page to visits from your emails.

2. Compare campaigns and flows

The Source tab shows newsletter against flow, and the Campaign tab shows each send and each flow. Compare them by revenue per visitor, not by visitors: a flow that sends few shoppers who buy can be worth more than a campaign that sends many who do not.

3. Check single orders

The Payments page lists every order with the channel it was credited to. Open one to see the visits before it and which one got the credit, which is the quickest way to answer “did that email really sell this?”

An example: one month of email revenue

Example data, made up to show the method: an imaginary clothing store over one month, with the Email channel selected and the Campaign tab open. Clicks are visitors who arrived from a tagged link.

EmailClicksOrdersRevenueRevenue per click
flow-welcome1,24046$3,182$2.57
flow-abandoned-cart38041$3,541$9.32
Four weekly campaigns, added up4,17052$3,016$0.72
flow-win-back6903$168$0.24
All email6,480142$9,907$1.53

The weekly campaigns bring almost two thirds of the clicks but under a third of the revenue, while each abandoned cart click is worth about 13 times a campaign click. Before adding a second weekly send, this store should check that the abandoned cart flow fires for every abandoned checkout and give the welcome flow the same care. The win-back row is low by design, not a sign the flow fails: its buyers are past customers, and a repeat order keeps the channel of the customer’s first order (see renewals). To set the month’s email revenue against what your email tool and design cost, put it into the email marketing ROI calculator.

What to check if the numbers look off

  • Email revenue is lower than in your email tool. Expected: opens and orders that came through another channel are not credited to email here. Compare the two as different measures, not as an error.
  • Email orders show as Direct. A link was left untagged, or a redirect dropped the tags. Check the links in each flow, not only in campaigns.
  • Orders show as Unattributed. The order has no visitor ID. Check that the Shopify or WooCommerce snippet is in place; see set up Virling for an online store.
  • One flow is split across rows. Values differ in case or spelling, such as Flow-Welcome and flow-welcome. Pick one and keep it.

To compare that revenue with what email costs you, use the email marketing ROI calculator. To size an abandoned cart flow, see how many carts are abandoned and the revenue left in them.

By email tool and channel

Frequently asked questions

Why is the revenue in my email tool higher than my store’s?

Email tools usually credit an order to an email when the buyer opened or clicked it within a set window, however they reached the store. Opens are counted even when a privacy feature loads the email on its own, and the same order can also be claimed by an ad platform. Your store counts each order once.

How do I track revenue from email campaigns on Shopify?

Tag every link with utm_medium=email and a utm_campaign per campaign or flow, connect Shopify with a read-only token, and store the visitor ID on the cart so Shopify copies it onto the order. Each order is then credited to the visit before it, and the Campaign tab shows revenue per campaign and flow.

Does an opened email with no click count as email revenue in Virling?

No. Virling credits orders to visits, so an email counts only when someone clicks a tagged link and lands on your store. If the buyer later arrives from another channel, the default model credits the latest visit that was not Direct.

How should I tag automated flows?

Give each flow its own utm_campaign, such as flow-abandoned-cart, flow-welcome or flow-win-back, and use utm_content for the email in the flow. utm_content is stored with the visit but is not a report row, so put the step in the campaign if you want each email as its own row.

Does Virling send my emails?

No. Virling reads tagged visits and your Shopify or WooCommerce orders. Keep sending with the tool you use today.

See which emails bring real orders

Virling is open source under AGPL. Self-host it free, or use the hosted version with a 14-day free trial. It connects to Stripe, Paddle, Shopify, WooCommerce, Polar, LemonSqueezy, Dodo, Creem and RevenueCat.

Start free trial See the demo