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

Customer.io revenue tracking: see which emails lead to payments

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

Customer.io revenue tracking joins each payment for your SaaS to the Customer.io campaign, broadcast or transactional message that sent the buyer. Turn on URL parameters in Customer.io, set utm_medium to email, give each campaign a clean name, and pass the visitor ID into checkout. Virling then credits each payment from Stripe or your other billing provider to the tagged visit, so the Campaign tab shows revenue per campaign. Customer.io reports opens and clicks; the payment happens in your billing provider, where Customer.io cannot see it.

Start free trial

Why Customer.io payments land in Direct or Referral

Most people read email in an email app, and most email apps send no referrer when a link is clicked. Without UTM tags, the visit has nothing that says it came from Customer.io, so it is counted as Direct, and so is the payment that follows.

With Customer.io’s default tags the visit is not Direct, but it is not Email either. The default medium is the message type, and the source is customer.io. Neither is an email value Virling knows, so a click with no referrer lands in Referral.

How Customer.io adds UTM tags

Customer.io adds URL parameters per workspace. They are off until you enable them under Workspace Settings > URL Parameters, and its docs list these defaults (source: Customer.io, Adding URL parameters to links):

  • utm_source: customer.io.
  • utm_medium: {{message.type}}, the message type, such as email_action.
  • utm_campaign: {{campaign.name}}, the name of the automation or one-time send.
  • utm_content: {{message.name}}, the name of the message.

Once enabled, the parameters are added to every link in your emails. SMS and WhatsApp links get them only inside a cio_link tag. A single email link can skip them with url_params:false in cio_link, or with the disable-url-params class in the drag-and-drop editor.

Customer.io also tracks clicks by sending each link through its own redirect, on by default for emails in automations and API-triggered broadcasts, with a toggle on the Content tab of one-time sends (source: Customer.io, Link tracking). The tags are added to the link itself, so your page should still receive them; the test below checks that.

Change the defaults for Virling

Edit the parameters in the same settings page:

  • utm_medium=email: a fixed value instead of the message type, so every click lands in the Email channel.
  • utm_source=customer.io: keep it, so all of your Customer.io traffic adds up under one source.
  • utm_campaign: keep the campaign name for automations, and see the note on broadcasts and transactional messages below.
  • utm_content: keep it if you like; it tells messages apart in your raw data.

Broadcasts and transactional messages

Customer.io’s docs warn that if utm_campaign still uses campaign.name and you use cio_link in a broadcast, one-time send or transactional message, the message fails, because an empty Liquid value is not valid. Either change utm_campaign to a value that is never empty, or write the tags into those links yourself and turn off the workspace parameters for them with url_params:false:

https://app.yourproduct.com/billing?utm_source=customer.io&utm_medium=email&utm_campaign=invite-accepted

Tag transactional links too. A link in a receipt or an invite can bring a buyer back, and its click is a visit like any other. Leave password reset links alone; Customer.io advises not to track sensitive links.

Name onboarding, trial and win-back messages

The Campaign tab has one row per utm_campaign value, and values that differ in case or spelling get separate rows. Customer.io puts the campaign name into the tag as you typed it, so name campaigns in lowercase with hyphens:

  • Onboarding: onboarding for the series after signup. All emails in it share one row; for a row per email, write utm_campaign=onboarding-2 into that email’s links.
  • Trial: trial-ending for the reminders before a trial ends, or trial-ending-3d and trial-ending-1d per email.
  • Win-back: win-back for messages to people who cancelled or went quiet.
  • Broadcasts: the send and the month, such as launch-teams-2026-11.

The free UTM builder makes tagged URLs for the links you write by hand, and the UTM naming template keeps the values the same across your team.

How Virling ties the click to the payment

Every session gets one channel from its first pageview, and utm_medium is checked first, ignoring case. A medium of email, newsletter or e-mail is the Email channel, whatever the referrer says. Other mediums, except paid ones such as cpc, are skipped; then a referrer decides the channel, and with no referrer a utm_source that is not a known search, social, community or AI source gives Referral. See how channels are decided.

When a payment comes in, it is joined to the visits before it through the visitor ID that checkout carries, and credited to one visit in the lookback window, 90 days by default, by the site’s model:

  • Last non-direct, the default. The latest visit in the window that was not Direct.
  • First touch. The earliest visit in the window, usually the channel that brought the signup.
  • Last touch. The latest visit, Direct included.

See the attribution model.

A trial that converts weeks after an email

Say a user clicks your trial-ending email on day 12, and pays on day 30 after typing your address. With a trial that needs no card, the upgrade goes through checkout, and under last non-direct the payment is credited to the email click, because the visit on day 30 was Direct and the click is well inside 90 days. If they came back from a search result after the click, the search gets the credit.

A trial that takes a card up front is different. The first charge has no checkout, so on Stripe, Paddle, Polar, Dodo Payments and Creem it is credited from the visits before the trial started, and emails sent during the trial get no credit. Upgrades and renewals keep the channel of the customer’s first payment. See renewals and free trials, and for the whole lifecycle, SaaS email revenue attribution.

Connect Stripe or your billing provider

Virling reads payments from your billing provider, not from Customer.io. Connect Stripe, Paddle, Polar, LemonSqueezy, Dodo Payments, Creem or RevenueCat, then make sure checkout carries the visitor ID from the virling_vid cookie. Hosted checkout links on buy.stripe.com, buy.polar.sh, checkout.dodopayments.com and *.lemonsqueezy.com get it from the script; for Stripe Checkout created on your server, set client_reference_id to the cookie. See link checkout to visits.

Link your emails to a page that runs the script, such as your pricing or billing page, not straight to a checkout URL, which carries no visitor ID. See Virling for SaaS.

A made-up example: three campaigns

These numbers are invented to show the arithmetic. The product has a free plan and a 14-day trial with no card at $49 a month, only first payments count, and each payment is credited to one campaign. Trials are a trial_started goal in a session from that campaign.

Made-up campaignClicksTrialsPaid customersRevenue
onboarding9006018$882
trial-ending300021$1,029
win-back400125$245
All three1,6007244$2,156

Clicks come from Customer.io; trials, customers and revenue from Virling. Onboarding starts the trials, but the trial reminder closes more sales on a third of the clicks. A trial reminder starts no trials, since its readers are already in one. For trials by channel, see trial-to-paid conversion by traffic source.

Check it with one test email and one test payment

  1. Connect Stripe with a test key that starts with rk_test_.
  2. In Customer.io, send one email to your own address with one link to your pricing page and utm_campaign=tracking-test.
  3. Open the link from the email in a private window. Expected: the address bar shows utm_source=customer.io, utm_medium=email and utm_campaign=tracking-test.
  4. In the dashboard, look at the Channels card. Expected: a visit in Email, and a tracking-test row on the Campaign tab.
  5. In the same window, go to checkout and pay with a Stripe test card.
  6. Wait a minute and open the payment from the Payments page. Expected: the channel is Email and the journey starts at your tagged visit.

Test payments stay in your reports after you switch to a live key. See test your setup.

What to check if the numbers look off

  • Customer.io clicks show as Referral. utm_medium is still the message type; set it to email.
  • Customer.io clicks show as Direct. URL parameters are off, the link skipped them, or a redirect on your site dropped them; see UTM parameters lost after redirect.
  • One campaign is split across rows. The campaign was renamed, or values differ in case.
  • Payments show as Unattributed. The link went straight to checkout, or checkout did not carry the visitor ID; see unattributed revenue.

For other email tools, see Loops revenue tracking and Brevo revenue tracking.

Frequently asked questions

How do I see which Customer.io email led to a payment?

Turn on URL parameters in Customer.io and set utm_medium to email, so every tagged link lands in the Email channel. Name your campaigns in lowercase with hyphens, connect your billing provider and pass the visitor ID into checkout. Each payment is then credited to a tagged visit before it, and the Campaign tab shows revenue per campaign.

Which channel does Customer.io traffic land in?

With utm_medium set to email, newsletter or e-mail, the Email channel, because Virling checks utm_medium first and ignores case. Customer.io's default medium is the message type, which is none of those, so with utm_source=customer.io and no referrer the visit is Referral. An untagged click with no referrer is Direct.

Why does my broadcast or transactional message fail with URL parameters on?

Customer.io's docs say that if utm_campaign still uses the campaign name, a cio_link in a broadcast, one-time send or transactional message fails, because an empty Liquid value is not valid. Change or remove utm_campaign in the workspace settings, or write the tags into those links yourself and turn off workspace parameters for them.

How is a trial that converts weeks after an email credited?

With a trial that needs no card, the upgrade goes through checkout, and under the default model the payment is credited to the latest visit in the last 90 days that was not Direct, which can be the email click. With a card taken up front on Stripe, Paddle, Polar, Dodo Payments or Creem, the first charge is credited from the visits before the trial started, so later emails get no credit.

Does Virling read payments from Customer.io?

No. Customer.io sends messages; Virling reads payments from the providers it connects to, such as Stripe, Paddle, Polar, LemonSqueezy, Dodo Payments, Creem and RevenueCat, and joins them to the clicks your Customer.io messages bring.

See which Customer.io 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