SaaS email revenue attribution: which lifecycle emails lead to paid plans
By Devendra Variya, co-founder of Virling. Published 2026-11-22, updated 2026-11-30.
To see which onboarding, trial and upgrade emails lead to paid plans, tag every link in every email with utm_medium=email and a utm_campaign per email, pass the visitor ID into checkout, and credit each payment from your billing provider to the tagged visit before it. Then the Email channel shows revenue per email, counted from real payments, next to every other channel. This post covers the tagging, how the attribution model changes the credit an email gets, and the cases where an email cannot get revenue credit at all.
Sending campaigns for an online store instead? See email marketing revenue tracking for online stores. Sending a newsletter on beehiiv? See beehiiv revenue tracking.
Why opens and clicks do not answer the question
Your email tool reports opens, clicks and unsubscribes per email. That tells you which emails get read, not which ones are followed by a paid plan, because the payment happens in your billing provider, often days later and in another tab.
- Opens are not always people. Some mail apps load every email on their own to protect privacy, and each load counts as an open.
- A click is not a payment. A trial user can click every onboarding email and never pay, while another clicks one and upgrades the same day.
- The payment is elsewhere. To join an email to a paid plan, you need the click, the visits after it and the payment in one place, tied to the same visitor.
Virling does not count opens: a tagged email earns credit when your attribution model picks its click for a payment, and the Campaign tab shows your top campaigns with that revenue.
Tag every email link
Mail apps often send no referrer, so an untagged click from an email usually lands in Direct. A link with utm_medium=email, newsletter or e-mail is the Email channel whatever the referrer says, and a page that loads with UTM tags different from the current session’s starts a new session, so the click is recorded even when the user was already in your app. See how channels are decided.
Keep utm_medium=email on every link, use utm_source for the sequence, and put the sequence and step in utm_campaign, so each email is its own row in the Campaign tab:
- Onboarding:
utm_source=onboarding&utm_medium=email&utm_campaign=onboarding-2 - Trial:
utm_source=trial&utm_medium=email&utm_campaign=trial-ending-3d - Upgrade:
utm_source=upgrade&utm_medium=email&utm_campaign=upgrade-team-plan
A full link into your app looks like this:
https://app.yourproduct.com/billing?utm_source=trial&utm_medium=email&utm_campaign=trial-ending-3d&utm_content=button
utm_content is stored with the visit but is not a report row, so use it for the link inside an email, not for the email itself. Build links with the free UTM builder, write your values down once with the UTM naming template, and lowercase every one. Tag links in transactional and lifecycle emails sent from your own code too, not only those from your email tool. For one-to-one emails from your team, see email signature tracking.
First touch vs last touch: how much credit an email gets
Virling credits each payment to exactly one visit, picked by the site’s attribution model from the visits in the lookback window, 90 days by default. Lifecycle emails always arrive after signup, so the model decides most of their credit:
- Last non-direct, the default. The latest visit that was not Direct. A user who clicks your trial-ending email and pays the next day after typing your address is credited to that email. If they come back from a search result after the click, the search gets the credit.
- Last touch. The latest visit, Direct included. The email gets credit only if nothing came after its click, so a direct login before paying takes it away.
- First touch. The earliest visit in the window. That is usually the channel that brought the signup, so lifecycle emails almost never get credit.
Use last non-direct to see which emails close the sale and first touch to see which channels bring the people your emails convert. Changing the model rebuilds history right away. For the trade-offs, read first-touch or last-touch attribution for a SaaS, and try your own numbers in the attribution model calculator.
What an email can and cannot get credit for
Subscriptions add three rules worth knowing before you judge a sequence:
- Paying through checkout. When a trial or free user clicks an email, opens your billing page and pays through a checkout that carries the visitor ID, the payment is credited by the model above. This is where onboarding and trial emails earn their credit.
- Trials that convert on their own. A trial that started with a card on file converts with no new checkout, so the first payment carries no visitor ID. On Stripe, Polar and Dodo Payments it is credited to the visits before the trial started, so emails sent during the trial get none of it. See renewals and free trials.
- Upgrades and renewals. Every renewal takes the channel of the customer’s first payment, and upgrades and plan changes count as renewals. An upgrade email does not get the upgrade’s revenue; the channel that brought the customer keeps it.
For upgrade emails, send a goal when the upgrade succeeds, such as virling("goal", "upgrade"). The Visitors page filters by goal, and each visitor’s timeline shows the tagged email visit before the goal. The visitor ID lives in a browser cookie, so an email clicked on a phone and a plan paid for on a laptop are two visitors.
A worked example: one month of lifecycle email
Example data, made up to show the method: an imaginary SaaS with a $39 Starter plan and a $119 Team plan, whose trials start without a card, looked at four lifecycle emails over one month. Clicks are tagged email visits, upgrades are trial users who paid through checkout after clicking or, for the last two rows, upgrade goals and returning customers, and the last column is what Virling credits to the email with the default model.
| Clicks | Upgrades | New monthly revenue | Credited to the email in Virling | |
|---|---|---|---|---|
| onboarding-day-1 | 1,140 | 6 | $234 | $234 |
| trial-ending-3d | 420 | 18 | $1,022 | $1,022 |
| upgrade-team-plan | 260 | 9 | $720 | $0 |
| win-back-30d | 95 | 3 | $117 | $0 |
onboarding-day-1 got the most clicks, but its 6 upgrades were all to Starter, $234. trial-ending-3d brought 14 Starter and 4 Team customers, $546 plus $476 is $1,022. The 9 Team upgrades from upgrade-team-plan add $80 a month each, $720, and the 3 customers who came back from win-back-30d add $117, but both are later payments of existing customers, so they keep the channel of the first payment and the emails are credited $0. Of the $2,093 in new monthly revenue, $1,256 is credited to these emails; track the rest with goals such as upgrade. To compare trial-to-paid rates by channel, put your own numbers in the trial to paid calculator.
Set it up with Virling
1. Add the script to your site and app
Paste the script tag before </head> on your marketing site and in your app. The virling_vid cookie is set on your registrable domain, so yourproduct.com and app.yourproduct.com share one visitor ID, and email links into the app are recorded. See add the script.
2. Connect your billing provider
Connect Stripe, Paddle, Polar, LemonSqueezy, Dodo Payments, Creem or RevenueCat. Virling imports recent payments, then picks up new ones every minute or by webhook, and never creates, changes or refunds a payment. See Virling for SaaS.
3. Pass the visitor ID into checkout
Hosted checkout links on buy.stripe.com, buy.polar.sh, checkout.dodopayments.com and *.lemonsqueezy.com need nothing: the script adds the visitor ID. For Stripe Checkout created on your server, set client_reference_id to the virling_vid cookie; other providers use metadata or custom data. See link checkout to visits.
4. Send signup and trial goals
Call virling("goal", "signup") after signup and virling("goal", "trial") when a trial starts, plus an upgrade goal if you send upgrade emails. Goals show in each payment’s journey, so you see the email click between the trial start and the payment. See goals.
5. Read revenue per email
On the dashboard, click Email in the Channels card to filter the page to email visits. The Source tab compares onboarding, trial and upgrade sequences, and the Campaign tab shows each email with visitors, revenue and revenue per visitor. Open a payment on the Payments page to see the visits before it and which one got the credit. For conversion by channel from trial to paid, see trial-to-paid conversion by traffic source.
What to check if the numbers look off
- Email clicks show as Direct. A link was left untagged, or a redirect or link tracker dropped the tags. Click a link in a sent email and look for the tags in the address bar.
- Payments show as Unattributed. Checkout is not carrying the visitor ID. Check step 3, and see unattributed revenue.
- One email is split across rows. Values differ in case or spelling, such as
Trial-Ending-3dandtrial-ending-3d. - Upgrade emails show no revenue. Expected: upgrades keep the first payment’s channel. Count them with an upgrade goal instead.
For the tool you send with, see tagging campaigns, loops and transactional emails in Loops, UTM tracking for Brevo automations and ActiveCampaign revenue tracking. For email to people who have not signed up yet, see which cold email sequences bring paying customers.
Frequently asked questions
Which onboarding emails lead to paid plans?
Tag every link in each email with utm_medium=email and a utm_campaign per email, pass the visitor ID into checkout, and connect your billing provider. Each first payment is then credited to a visit before it, and the Campaign tab of the Email channel shows revenue per email.
Does an email that was opened but not clicked get credit?
No. Virling credits payments to visits, so an email counts only when someone clicks a tagged link and lands on your site or app. Opens are not tracked.
Why does my upgrade email get no revenue in Virling?
Upgrades and plan changes count as renewals, so they keep the channel of the customer’s first payment, matched by the provider’s customer ID. Send a goal when an upgrade succeeds and look for the tagged email visit before it on the visitor’s timeline.
Do trial emails get credit when the trial converts on its own?
Usually not. A trial that started with a card on file converts without a new checkout, so the first payment carries no visitor ID and, on Stripe, Polar and Dodo Payments, is credited from the visits before the trial started. Trial emails can get credit when the user pays through a checkout that carries the visitor ID.
Should I use first touch or last touch for lifecycle emails?
Lifecycle emails arrive after signup, so first touch almost never credits them. The default, last non-direct, credits an email when its click was the latest visit before the payment that was not Direct. Last touch credits it only when nothing, not even a direct login, came after it.
See which emails lead to paid plans
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.