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

Loops email revenue tracking: see which emails lead to payments

By Devendra Variya, co-founder of Virling. Published 2026-11-23, updated 2026-11-30.

Loops email revenue tracking joins each Stripe payment for your SaaS to the onboarding loop, transactional email or campaign whose click came before it. Loops counts opens and clicks, but the subscription is paid in Stripe, so Loops never learns which email turned a trial into a customer. Virling joins the two through the visitor in your app and shows one row of revenue per email.

Start free trial

Why Loops clicks need tags

A click from an email app usually arrives with no referrer, so without tags the visit, and the payment after it, counts as Direct. Virling puts any visit tagged utm_medium=email in the Email channel and joins each payment to the visits before it through the visitor ID that checkout carries; see how Virling works.

Tag links in loops and transactional emails

Add utm_source=loops&utm_medium=email to every link into your app and give each email its own utm_campaign, such as onboarding-2. The free UTM builder writes the tagged URLs for you.

  • Loops. A loop is an automated chain of emails that starts on a trigger, such as a new contact or an event from your app. Name each step after the loop, such as onboarding-1 to onboarding-4 or trial-ending-3d, so the steps sort together on the Campaign tab.
  • Transactional emails. These go out one at a time from your code through the Loops API, using a template you edit in Loops. Put the tags in the template’s links, such as utm_campaign=invite-accepted or utm_campaign=usage-limit: a teammate invite or a limit warning often brings someone back to billing.
  • Campaigns. One-off sends to a list or segment, such as a feature launch, get one value per send, such as launch-teams.

Point links at a page that runs the script, such as /billing in your app or /pricing on your site, not at a Stripe checkout URL. A signed-in user who clicks still starts a new session, because a page that loads with UTM tags different from the current session’s begins one. The virling_vid cookie is set on your registrable domain, so your site and app. subdomain share one visitor.

Send your app events to Virling too

Loops are often started by events your app sends to the Loops API, such as trial_started or invited_teammate. Those events stay in Loops. To see the same moments next to the email visits, send a goal from the same code, such as virling("goal", "trial") when the trial starts; goals appear in payment journeys but never count as revenue. See goals.

Your app also knows the email address Loops writes to. Send it once after signup as an identify event: Virling keeps only a salted hash, and a later Stripe payment with no visitor ID but the same billing or receipt email is credited to that visitor, which covers a payment made from a Stripe invoice instead of your checkout. See recover payments by email.

First vs last touch for trial nurture emails

A nurture email reaches someone who already signed up, so the attribution model decides whether it gets credit:

  • Last non-direct, the default. The latest visit that was not Direct. A user who clicks trial-ending-3d and later types your address to pay is credited to the email; a search visit after the click takes the credit instead.
  • Last touch. The email keeps the credit only if no visit came after its click, a direct login included.
  • First touch. The earliest visit in the lookback window, 90 days by default, which is usually whatever brought the signup, so nurture emails almost never win.

Read last non-direct to learn which emails close trials, and first touch to learn which channels fill them. Changing the model recomputes history right away. See the attribution model and first-touch or last-touch attribution for a SaaS.

Stripe subscriptions and what an email can win

With Stripe, an email can only win a customer’s first payment, and how the trial starts matters:

  • Trials with a card. When the trial starts in Stripe Checkout, Virling stores the $0 checkout as the trial start and credits the first charge from the visits before it. A trial-ending email clicked in between gets nothing, because the charge runs on its own with no new checkout.
  • Trials without a card. The user has to come back and pay through checkout, so the email visit before that checkout can get the credit. For Checkout Sessions created on your server, set client_reference_id to the visitor ID; Payment Links on buy.stripe.com get it from the script.
  • Renewals and upgrades. Invoices with billing reason subscription_cycle or subscription_update keep the channel of the first payment, so an upgrade email shows no revenue of its own. Send an upgrade goal to see it on the timeline.

Connect Stripe with a restricted read-only key; Virling imports recent payments and never creates, changes or refunds one. Paddle, Polar, Dodo Payments, Creem and RevenueCat work too. See renewals and free trials, Virling for SaaS and SaaS email revenue attribution.

Read revenue per email

Click Email on the dashboard’s Channels card, then open the Campaign tab: each loop step, transactional template and campaign is a row with visitors, revenue and revenue per visitor. On the Payments page, open a payment to see the sessions before it and which one got the credit.

A worked example: four Loops emails in a sample month

Example data, made up to show the method. An imaginary SaaS charges $19 a month or $190 a year through Stripe, with a free plan and trials that start without a card, so every upgrade is a first payment made through checkout. In one month it sends four tagged emails from Loops: welcome-1 to each new signup, a product update, update-2026-11, to free and trial users, trial-ending-3d three days before a trial ends, and the transactional payment-failed. Clicks come from Loops; upgrades, recoveries and revenue come from Stripe and the Campaign tab.

EmailClicksUpgrades or recoveriesRevenue credited to the email
Welcome4278 upgrades, monthly$152
Product update2715 upgrades, 3 monthly and 2 yearly$437
Trial ending15817 upgrades, monthly$323
Payment failed4613 recoveries, monthly$0

The three emails that led to first payments were credited $912. The product update had fewer clicks than the welcome email and nearly three times its revenue, because two readers paid for a year. The payment-failed email recovered 13 renewals, $247, but a recovered renewal keeps the channel of the customer’s first payment, so the email is credited nothing; count its recoveries in Stripe, or send a goal when the card is updated. To weigh these numbers against what you pay to send, use the email marketing ROI calculator.

When Loops numbers look wrong

  • A transactional email never appears. Its template links carry no tags, or they point at a domain that does not run the script.
  • Clicks land in Direct. A redirect dropped the query string, often a login redirect in your app that sends a signed-out user to /login and back without the tags. Click a link from a real send and check the address bar after you sign in.
  • The payment is Unattributed. The email linked straight to checkout, or the Checkout Session did not carry the visitor ID; see unattributed revenue.
  • Trial-ending emails show no revenue. Expected when the trial started with a card on file; see above.

For newsletters sent from other tools, see Kit revenue tracking and beehiiv UTM tracking. For outbound email to people who have not signed up, see cold email revenue tracking. For product email sent from Customer.io, see Customer.io revenue tracking.

Frequently asked questions

How do I see which Loops email led to a payment?

Add utm_source=loops, utm_medium=email and a utm_campaign per email to every link into your app, connect Stripe or your billing provider, and make sure checkout carries the visitor ID. The Campaign tab of the Email channel then lists revenue per loop step, transactional email and campaign.

Should I tag transactional emails sent through Loops?

Yes, tag every link in the template that points to your site or app, with its own utm_campaign. A click from an invite or a usage warning is a visit like any other and can be credited with the payment that follows.

Do Loops emails get credit under first touch?

Rarely. Emails that nurture a trial arrive after signup, so the earliest visit is usually the channel that brought the signup. Under the default, last non-direct, an email gets credit when its click was the latest visit before the payment that was not Direct.

Do the events I send to Loops show up in Virling?

No. Events sent to the Loops API stay in Loops, where they start loops. Send the same moment to Virling as a goal, such as virling("goal", "trial"), to see it in payment journeys next to the email visit.

Why does a trial-ending Loops email get no revenue?

If the trial started in Stripe Checkout with a card, the first charge has no checkout of its own, so Virling credits it from the visits before the trial started. The email can get credit when the user comes back and pays through a checkout that carries the visitor ID.

See which Loops email pays

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