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

YouTube Ads revenue tracking: see which campaign brings paying customers

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

YouTube Ads revenue tracking means joining each payment on your site to the YouTube ad click that brought the buyer. Put utm_source=youtube, utm_medium=cpc and a utm_campaign in the campaign’s URL options, add the Virling script to your site, and pass the visitor ID into checkout. Virling counts the click as Paid and credits the payment to it, so the Campaign tab shows payments and revenue per campaign. Google Ads reports views, clicks and the conversions it attributes; your payment provider shows the money you received.

Start free trial

Step 1: tag the ad in Google Ads

YouTube ads run from Google Ads, so the tag goes in its URL options. The final URL suffix field holds parameters that Google attaches to the end of your landing page URL, and you can set it for the account, a campaign, an ad group or an ad (source: Google Ads Help, Add a Final URL suffix). Set it on each video campaign, with a name you type:

utm_source=youtube&utm_medium=cpc&utm_campaign=spring-demo-video

Leave the question mark out of the suffix. Use lowercase and hyphens, and keep one name per campaign, because a campaign tagged two ways becomes two rows. The free UTM builder makes tagged URLs for you, which you can also use as the ad’s final URL. Put the tags in one place, not both.

ValueTrack parameters on video campaigns

ValueTrack parameters are placeholders in braces that Google fills in when the ad is clicked. Its help page has a list for video campaigns that includes {campaignid}, {adgroupid}, {creative} (the ad’s ID), {device}, {placement} and {network}. {network} returns ytv for YouTube, vp for Google video partners and gtv for Google TV. The same page says Demand Gen ads do not support {network} or {placement}, so leave those two out there (source: Google Ads Help, ValueTrack parameters).

To tag a whole campaign by ID instead of by name, use utm_campaign={campaignid}. Google’s page names the final URL, the tracking template and custom parameters as places for ValueTrack, so the ad’s final URL is the documented spot. If you put it in the suffix, click a test ad and check that the address bar shows a number, not braces. You can add utm_content={creative}, which Virling stores with the pageview, but reports group by campaign.

Tracking templates

The tracking template is a separate field in the same URL options, meant for click trackers that sit between the ad and your page. In it, {lpurl} stands for the final URL. Virling does not need a template: the suffix is enough. If you already use one to send clicks through another tracker, click a test ad and check that the page you land on still shows the utm_ tags, because a tracker that drops the query string turns a Paid visit into Social or Direct.

Auto-tagging and the gclid

Auto-tagging adds a gclid parameter to the landing URL after someone clicks your ad (source: Google Ads Help, About auto-tagging). Google uses it to tie its own conversions to the click. Virling does not read the gclid, and it does not store it either: a pageview keeps its path without the query string, plus the UTM tags and ref.

So a click that carries only a gclid is treated as untagged. It is Social when youtube.com sent a referrer, and Direct, listed as Typed or bookmark, when none came through. Leave auto-tagging on for Google and add the UTM tags for Virling. Search and the other campaign types are in Google Ads revenue tracking.

Why a view-through never shows as a click

Google’s help page says the view-through conversions column tells you when people view but do not interact with your ad and later complete a conversion on your site. It is kept out of the main Conversions column and appears in View-through conversions and All conversions (source: Google Ads Help, conversion tracking data). Nobody clicked, so no browser opened your landing page with your tag on it. Virling credits visits, and a view is not a visit. If that person later searches for your name and buys, the payment is credited to the search visit.

Engaged views are a second kind. On a skippable ad, Google counts an engaged-view conversion when someone does not click, watches at least 10 seconds, and then converts within the window (source: Google Ads Help, YouTube ads and view metrics). Again there is no click, so there is no tagged visit.

So payments per campaign show what clicks brought. Virling does not estimate sales from people who only watched.

Paid clicks and your own videos

Virling treats youtube.com and youtu.be as Social, whether the click came from an ad or from a link under one of your videos. The referrer cannot tell them apart; only the medium on the link can.

  • Ads. A paid utm_medium (cpc, ppc, paid, paidsearch, paid_social or paidsocial, in any case) is checked before the referrer, so the click is Paid. paid-video, video and cpv are not on that list, and neither are native and cpm, the same trap covered in tracking revenue from native ads.
  • Links under your videos. Use utm_medium=social, or no tags at all, so description links, pinned comments and your channel links stay in Social.
  • Promoted videos. If an ad sends people to the watch page of your own video, a click on a link in its description is not an ad click for Virling. It carries whatever tags you typed in the description, so it is Social unless that link has a paid medium.

With no referrer, utm_source=youtube is Social. The YouTube app is not one of the in-app browsers Virling recognizes, so an untagged tap from it with no referrer is Direct. The full rules are in how channels are decided. For the unpaid side of the channel, see YouTube revenue tracking.

Linking the payment and reading the result

Add the script to every landing page and pass the visitor ID into checkout, as in find which channel pays; under the default model, each payment goes to the latest visit in the last 90 days that was not Direct. Then click Paid in the Channels card and open the Campaign tab, where each utm_campaign is a row with visitors, revenue and revenue per visitor. To see profit, type your monthly Paid spend in Site settings, such as Paid 1200, and read the Profit by channel card.

A worked example: three campaigns

Example data, made up to show the method: an imaginary SaaS with one $65 monthly plan ran three video campaigns for a month. Spend and views come from Google Ads; visits, paying customers and revenue are the tagged visits and first payments Virling credits to each utm_campaign.

CampaignSpendViewsCost per viewVisitsPaying customersRevenueRevenue per $1
brand-story-30s$78039,000$0.0203124$260$0.33
feature-demo-90s$1,15023,000$0.05057515$975$0.85
setup-walkthrough$65016,250$0.0402609$585$0.90

By cost per view, brand-story-30s is the best buy and feature-demo-90s the worst. By revenue per dollar, setup-walkthrough comes first, feature-demo-90s second and brand-story-30s last: its 39,000 cheap views brought 4 customers, $195 each, against about $76.67 for feature-demo-90s and $72.22 for setup-walkthrough. Of the $2,580 spent, the first month brought back $1,820. On a $65 plan, a customer from the last two campaigns covers its cost in its second month, and one from brand-story-30s in its third. Put your own spend and revenue in the ROAS calculator, and make one tagged URL per campaign with the UTM builder so each gets its own row.

Why Google Ads conversions differ from payments

  • Views count in some columns. View-through and engaged-view conversions have no click, so no visit carries your tag.
  • Different event. A conversion is an action your site reports to Google. A payment is recorded by your provider, after the charge, and Virling takes refunds off.
  • Different credit. Virling gives a payment to one visit in its window. Google can count the ad even when the buyer last came from your newsletter, which Virling credits instead.

Use Google Ads to run the ads and the payments to decide which campaigns to keep. For promoted Pins, see Pinterest Ads revenue tracking. If you run video ads on TikTok too, build the TikTok ad URL with a paid medium and TikTok’s campaign macro in utm_campaign.

What to check if the numbers look off

  • Ad revenue shows as Social. The ad has only a gclid, or a medium such as video that is not on the paid list.
  • Ad revenue shows as Direct. A tracking template or redirect dropped the tags, and the YouTube app sent no referrer.
  • A campaign row shows braces. If {campaignid} appears as typed, check the spelling, and move it from the suffix to the ad’s final URL.
  • Partner clicks mixed with YouTube. A campaign that also runs on Google video partners carries the same tag there. Give partners their own campaign and utm_campaign to compare them.
  • Revenue shows as Unattributed. The visitor ID is not reaching checkout.

Frequently asked questions

How do I see which YouTube ad campaign brought a paying customer?

Add utm_source=youtube, utm_medium=cpc and a utm_campaign to the final URL or final URL suffix of the campaign. Connect your payment provider and pass the visitor ID into checkout. Each payment is credited to the tagged visit, and the Campaign tab shows revenue per campaign.

Which channel does a YouTube ad click land in?

Paid, if the link carries utm_medium=cpc, ppc, paid, paidsearch, paid_social or paidsocial. The medium is checked first, so it wins over a youtube.com referrer. Without a paid medium, the click is sorted by its referrer, or by utm_source when there is no referrer.

Can Virling track a view-through conversion from YouTube?

No. Someone who sees the ad and does not click has not opened your site from it, so there is no visit and no tag to credit. If they come later through another route, the payment is credited to that visit under the attribution model you chose.

Does Virling read the gclid?

No. It does not use the gclid to pick the channel or the campaign, and it does not store it. A click with only a gclid is Social when youtube.com is the referrer and Direct when there is none. Keep auto-tagging on for Google and add UTM tags for Virling.

Should YouTube ads and organic videos share the same tags?

They can share utm_source=youtube, but not the medium. Use a paid medium such as cpc on ads, so they are Paid, and utm_medium=social on links under your own videos, so those stay in Social.

Can Virling tell YouTube clicks from Google video partner clicks?

Only through your tags. A tagged click from a video partner site is Paid and lands in the same campaign row as YouTube. Run partners as a separate campaign with its own utm_campaign if you want two rows.

See which YouTube Ads campaign 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