Sub topic 10
Tag links so you can see which videos convert
YouTube Analytics tells you how many people watched a lesson. It does not tell you who signed up for your course afterward. To connect a view to a sign-up, every link from a video to your site needs a tag that your website's analytics can read. This chapter covers how to build, place, check, and read those tags.
This chapter assumes you already have:
- A landing page with a sign-up or purchase action (see the landing page chapter).
- A web analytics tool on that page. The examples use Google Analytics 4 (GA4), but the same ideas apply to Plausible, Matomo, and similar tools.
- A sign-up or purchase event configured in that tool.
- A YouTube channel with at least one lesson that contains a call to action.
The working model
A UTM parameter is a key-value pair added to the end of a URL after a question mark. UTM stands for Urchin Tracking Module, a name inherited from an early analytics product. The pair does nothing to the page. When a visitor arrives, your analytics script reads the pairs from the address bar and attaches them to that visit. Later reports can then group visits, sign-ups, and sales by those values.
This matters because YouTube is a poor source of clean referral data. Traffic from the YouTube mobile app often arrives with no referrer, so it shows up as "direct" traffic. Traffic from the website may show only youtube.com, with no hint of which video sent it. A UTM tag travels in the URL itself, so it survives both cases.
The five standard parameters:
| Parameter | Question it answers | Example value |
|---|---|---|
| `utm_source` | Where did the visitor come from? | `youtube` |
| `utm_medium` | What kind of channel is it? | `video` |
| `utm_campaign` | Which promotion is this part of? | `free-lesson-01` |
| `utm_content` | Which link or placement was clicked? | `description-link` |
| `utm_term` | Which keyword? (Paid search only) | Not needed here |
For this tutorial, use the first four. Skip utm_term.
A tagged link, piece by piece
https://example.com/courses/photo-basics?utm_source=youtube&utm_medium=video&utm_campaign=free-lesson-01&utm_content=description-linkhttps://example.com/courses/photo-basicsis the landing page. It is the same for every video.?starts the query string, and&separates each pair.utm_source=youtubeandutm_medium=videostay the same on every link you build for this channel.utm_campaign=free-lesson-01is the one value that changes per video. It lets you rank lessons against each other.utm_content=description-linkmarks the placement. A second link in a pinned comment would usepinned-comment. One in an end screen would useend-screen.
Use utm_campaign for the video and utm_content for the placement. Then you can answer two separate questions: which lesson converts, and which link position works best.
Naming rules that keep reports clean
Analytics tools treat values as exact text. YouTube, youtube, and You-Tube become three separate sources in your report. Pick a convention and write it down.
- Use lowercase only.
- Use hyphens instead of spaces. A space becomes
%20in the URL, which is ugly and easy to mistype. - Number lessons with a fixed pattern, such as
free-lesson-01,free-lesson-02. Avoid titles, which you may rename later. - Keep a spreadsheet with one row per video: video title, video URL, campaign name, and date published. The campaign name is the only link between a report row and the lesson, so the spreadsheet is your lookup table.
- Never put personal data (names, emails) in a UTM value. These values appear in URLs, server logs, and reports.
Building links with a script
Typing tags by hand invites typos. This short Python script builds each link from the same rules and refuses values that break the convention.
import re
from urllib.parse import urlencode, urlsplit, urlunsplit, parse_qsl
VALID = re.compile(r"^[a-z0-9-]+$")
def tag_link(url, campaign, content, source="youtube", medium="video"):
values = {
"utm_source": source,
"utm_medium": medium,
"utm_campaign": campaign,
"utm_content": content,
}
for key, value in values.items():
if not VALID.match(value):
raise ValueError(f"{key}={value!r} must be lowercase letters, digits, hyphens")
parts = urlsplit(url)
query = dict(parse_qsl(parts.query)) # keep any existing parameters
query.update(values)
return urlunsplit(parts._replace(query=urlencode(query)))
print(tag_link("https://example.com/courses/photo-basics",
campaign="free-lesson-01",
content="description-link"))Running it prints the link shown earlier. Calling it with campaign="Free Lesson 01" raises a ValueError instead of producing a link that would split your data.
Where to place tagged links
Use a different utm_content value for each placement, so reports show which one gets clicks.
- Description. Put the course link near the top, before the "Show more" fold, so it is visible without expanding. The template below does this.
- Pinned comment. Repeat the link with
utm_content=pinned-comment. - Cards and end screens. These can link to external sites only if your channel is eligible. Check the options in YouTube Studio. When available, tag them with
cardandend-screen. - Spoken call to action. Do not read a UTM link aloud. Say "the link is in the description", and let the description carry the tag.
Learn how to set exposure manually in 10 minutes.
Get the full course (with feedback on your photos):
https://example.com/courses/photo-basics?utm_source=youtube&utm_medium=video&utm_campaign=free-lesson-01&utm_content=description-link
Chapters:
00:00 What you will learn
00:45 The exposure triangle
04:10 Setting exposure manually
08:30 Practice exercise
09:30 Where to go nextThe chapter list starts at 00:00 and has at least three entries, which YouTube requires before it shows chapters on the video. The link comes before the chapters so it stays above the fold.
Test before you publish
- Paste the tagged link into a browser, including a private window.
- Check the address bar after the page loads. If the
utm_values are gone, something is stripping them. - Open your analytics tool's real-time report. Your visit should appear with the right source and campaign within a minute or so.
- Complete a test sign-up. Confirm the conversion event is attributed to the campaign.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Campaign appears twice with different capitalization | Mixed case in hand-typed tags | Use the script and lowercase-only rule. |
| Visits show as "direct" with no campaign | A redirect or link shortener dropped the query string | Link straight to the landing page, or test that the shortener keeps parameters. |
| Visits are tagged but sign-ups are not | The visitor moved to a second page (checkout, sign-up) and the tag was lost | Store UTM values in hidden form fields or a first-party cookie on arrival. |
| YouTube appears as a referral and as a tagged source | Some visits had no tag, such as clicks on an old untagged link | Replace old links in your descriptions. |
| Clicks look low compared with views | Viewers are not reaching the link, or the link sits below the fold | Move the link up and strengthen the spoken call to action. |
| No data at all | The analytics script does not load on the landing page, or a consent banner blocks it until accepted | Test with the script's debug view and check your consent settings. |
Some visitors use ad blockers or decline tracking. Your numbers will undercount. Compare lessons against each other rather than treating any one figure as exact.
What to read from the results
For each campaign, collect these figures in your spreadsheet:
- Views, from YouTube Analytics.
- Landing page sessions with that campaign, from your site analytics.
- Sign-ups with that campaign.
Two ratios are useful: sessions divided by views, which measures how well the video moves people to click, and sign-ups divided by sessions, which measures how well the landing page converts that audience. A lesson with many views but a low click ratio has a weak call to action. A lesson with a high click ratio but few sign-ups may attract the wrong audience. Wait for a reasonable number of sessions before comparing, because a rate based on a handful of clicks swings widely.
Exercise
A learner clicks the link in your pinned comment under lesson 3, reads the landing page, and then opens the sign-up page on a separate URL. The report credits the sign-up to "direct". Name the likely cause and one fix.
Show answer
The UTM values were in the first page's URL only, and the sign-up page did not carry them forward or store them, so the sign-up session had no campaign. Fix it by saving the UTM values in a first-party cookie or hidden form fields when the landing page loads, then reading them on the sign-up page. Also check that the analytics script runs on both pages.
Exercise
Write the tagged URL for the end-screen link of the third free lesson, pointing to https://example.com/courses/photo-basics. Use the naming convention from this chapter.
Show answer
https://example.com/courses/photo-basics?utmsource=youtube&utmmedium=video&utmcampaign=free-lesson-03&utmcontent=end-screen