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

Revenue by campaign: how to see which campaign paid

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

Revenue by campaign is the money credited to each campaign after refunds. To see which campaign paid, put utm_campaign on every link you control, pass the visitor ID into checkout so each payment is joined to the visit before it, and group payments by that visit’s campaign. Then compare revenue per visitor with what you spent per visitor. In Virling this is the Campaign tab of the Channels card.

This guide is for founders and marketers who run several campaigns at once, from ads and newsletters to launches and sponsorships. The method needs consistent names, a report that joins payments to visits, your own spend, and enough patience for buyers who do not pay on the first day.

Name campaigns so they add up

A report can only group what you named the same way. Four rules cover most of it:

  • One push, one name. Use the same utm_campaign on the email, the post and the ad of one launch. utm_source and utm_medium already say where each link lives, so do not repeat that in the campaign.
  • Lowercase with hyphens. Virling keeps the campaign as you wrote it, so Autumn-Sale and autumn-sale are two rows, each with part of the money.
  • Add the month. autumn-sale-2026-09 keeps this year’s sale apart from the next one.
  • Split only what you would decide on separately. If you would stop one ad campaign and keep another, give them different names. To tell two links in the same place apart, use utm_content, which has no row of its own in Virling.

The UTM naming template gives you one table of names to share with your team, and UTM parameters for revenue tracking explains each parameter. Never tag links between your own pages: a page that loads with different UTM tags starts a new session, and that session can take the credit from the real campaign.

Read the Campaign and Keyword tabs

The Channels card on the Virling dashboard has four tabs: Channel, Source, Campaign and Keyword. Each row shows visitors, revenue and revenue per visitor, with a chip that compares the row with your site average: green above it, red below it.

  • Campaign lists utm_campaign tags and tracked links. Visits without a campaign are together in the No campaign row, which comes last.
  • Keyword lists utm_term. It is filled only when your links carry it, as search ads can, and it is the keyword you put in the tag. Open it after the Campaign tab, to see which keyword in a search campaign paid.
  • Click a row to filter the whole page by it. With a campaign selected, the Source tab shows which places sent its visitors and the Landing page tab of the Pages card shows where they arrived. To rank those pages, see which landing page brings the most revenue.
  • Refunded is the share of a row’s payments that were refunded in whole or part. Revenue is already net of refunds.

Three things keep the rows from matching your total. The tab lists the top 6 rows, so with more campaigns, shorten the range or read the rest with the API. Payments not matched to a visit are not on the tab; the Matched revenue line under the five numbers says how many and why. And a visitor who came from two campaigns counts in both, while each payment is credited only once. The card is described in read your dashboard, and you can click through it on sample data in the demo.

Compare revenue per visitor with your own spend

Virling does not connect to ad platforms, and the spend you can type in Site settings is per channel, not per campaign. So for campaigns, take the spend from your ad account or invoices and do one division:

spend per visitor = campaign spend / campaign visitors
left after spend = campaign revenue - campaign spend

If revenue per visitor is above spend per visitor, the campaign has paid back so far. Use the same dates for both, and the visitors from the report rather than the clicks from the ad platform, because the two are counted differently. Payment fees and the cost of the product still come off what is left. Profit by marketing channel covers fees and the cost of your time, and the ROAS calculator gives the same comparison as a ratio.

A worked example

Example only: made-up numbers for an imaginary store over 90 days, not results from a real business.

CampaignVisitorsRevenueRevenue per visitorSpendSpend per visitorLeft after spend
brand-search-2026-09600$1,800$3.00$900$1.50$900
autumn-sale-2026-094,000$3,600$0.90$4,400$1.10-$800
podcast-2026-09300$600$2.00$450$1.50$150
newsletter-2026-10900$1,620$1.80$0$0.00$1,620
webinar-2026-11500$100$0.20$500$1.00-$400
  • The biggest row loses money. autumn-sale brought twice the revenue of any other campaign, and it cost $1.10 to bring a visitor worth $0.90. On revenue alone it would look like the winner.
  • brand-search keeps $1.50 of every $3.00. It is worth more spend only if more people search for the name, and some of them would have come anyway.
  • podcast is small and ahead. With 300 visitors, one or two orders can move its row a lot. Run it again before you decide.
  • newsletter has no spend, not no cost. Price the hours it takes before you compare it with ads.
  • webinar started two weeks ago. Its spend is complete and its revenue may not be. Judge it later.

Campaigns whose buyers pay weeks later

Spend comes first and revenue follows, so a slow campaign looks like a loss while it is young. Revenue in Virling counts on the payment date, and a campaign that has ended can still earn. Its row may then show “earlier visit” in place of visitors, because the visits were before the range.

  • Use a range from the campaign’s first day. Pick Custom range so the visits and the payments are both inside it.
  • Check how long buyers take. The Time to pay card shows the median time from first visit to first payment for each channel with at least three first payments in the range. Wait longer than that before you stop a campaign.
  • Check the window. Only visits that started inside the lookback window before the payment can be credited: 30, 60, 90 or 365 days, with 90 as the default. A visit older than that gets nothing. See how long a visit gets credit.
  • Check the model. The default, last non-direct, credits the latest visit in the window that was not Direct. A buyer who clicked your ad and paid three weeks later after a search is credited to the search. First touch credits the earliest visit in the window, which shows the campaigns that introduce people.
  • Count renewals with the campaign that won them. A renewal takes the credit of the customer’s first payment, so a subscription campaign keeps earning after it ends.

Changing the model or window in Site settings rebuilds the credit of every payment, history included, and changing it back restores the earlier credit. Look at both before you stop a campaign. The details are in model and lookback window.

Why a campaign shows no revenue

  • Checkout did not carry the visitor ID. The payment counts as revenue but is Unattributed. Check this first: see link checkout to visits.
  • The link went straight to a payment page. A payment link opened from an ad or email has no visit on your site before it. Link to your own page.
  • The tags were lost. A redirect that drops the query string records the visit without its campaign. Open the link and see that the tags are still in the address bar. See UTM parameters lost after a redirect.
  • The name differs. A capital letter or another spelling puts the money in a second row.
  • Another visit got the credit. Under the default model, a later visit from search or another link takes it. Open the payment to see the visits before it.
  • The buyer changed device or browser. A click on a phone does not match a payment on a laptop by itself. See cross-device attribution.
  • The visit is outside the window, or the payment is outside the range. Use a longer one.
  • The site is cookieless. Then there is no visitor ID to pass, so payments stay Unattributed.
  • The payments were refunded. Revenue is net of refunds, so a fully refunded sale adds nothing.
  • It is below the top 6 rows. The campaign is missing from the list, not from the data.
  • Nobody has bought. If the checks above pass and buyers have had time to pay, the campaign brought visits and no sales.

To rule out setup, open a campaign link in a private window, make a test payment and follow test your setup. To see this for your own campaigns, start a free trial, add the script and connect your payment provider.

Frequently asked questions

How do I see revenue by campaign?

Put utm_campaign on every link you control, join each payment to the visit before it, and group payments by the campaign of that visit. In Virling, the Campaign tab of the Channels card shows visitors, revenue and revenue per visitor for each campaign.

Why does my campaign show visitors but no revenue?

The usual reasons are that checkout did not carry the visitor ID, the buyer came back through another visit that got the credit, the buyer paid on another device, or the payment falls outside the range. Open a payment that you know came from the campaign and look at the visits before it.

Can one campaign run on several channels?

Yes. Use the same utm_campaign on every link of the push and let utm_source and utm_medium tell the places apart. The campaign is then one row, and you can click it to see the channels and sources behind it.

How do I compare campaign revenue with ad spend?

Divide what you spent on the campaign by its visitors in the report, and compare that with its revenue per visitor over the same dates. Virling does not import ad spend, so take the spend from your ad account or invoices.

Which campaign gets the credit when a buyer clicks two?

One campaign gets the whole payment. Under the default model it is the campaign of the latest visit in the window that was not Direct. If that visit had no utm_campaign, no campaign gets the credit. First touch credits the earliest visit in the window instead.

See which of your campaigns paid

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