Sub topic 11
Tagging links and attributing results to channels
This chapter assumes you know the three funnel stages, the owned, earned, and paid channel types, and basic rates such as click-through rate and cost per acquisition. Here you will tag campaign links and use the tags to credit results to the right channel and stage.
Why tag links
Analytics tools can usually tell you that a visit happened. They often cannot tell you which campaign caused it. An email link, a paid social ad, and a partner post may all arrive as generic "referral" or "direct" traffic. Tagging fixes this by adding labels to the link itself, so each visit carries its own source information.
Without tags, you cannot compare channels at the same stage. You also cannot check whether a stage metric, such as engaged visits for consideration, came from the channels you planned.
The UTM parameters
UTM parameters are labels added to the end of a URL as a query string. Three are standard and should be on every campaign link.
| Parameter | Answers the question | Example value |
|---|---|---|
| utm_source | Where did the visit come from? | newsletter |
| utm_medium | What type of channel was it? | |
| utm_campaign | Which campaign was it part of? | spring_launch |
Here is a fully tagged link:
https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=spring_launchEverything after the ? is tagging. The page itself is unchanged, so visitors see the normal pricing page.
Make the tags carry the funnel stage
The three standard tags say nothing about the funnel stage. You can encode the stage in the campaign name, for example spring_launch_awareness or spring_launch_conversion. Then reports can be grouped by stage as well as by channel.
The script below builds tagged links from one function, so the format stays consistent.
from urllib.parse import urlencode
def tag_link(url, source, medium, campaign, stage):
params = {
"utm_source": source,
"utm_medium": medium,
"utm_campaign": f"{campaign}_{stage}",
}
return f"{url}?{urlencode(params)}"
print(tag_link("https://example.com/pricing", "newsletter", "email", "spring_launch", "consideration"))
print(tag_link("https://example.com/pricing", "facebook", "paid_social", "spring_launch", "awareness"))The first line prints https://example.com/pricing?utm_source=newsletter&utm_medium=email&utm_campaign=spring_launch_consideration.
Common tagging errors
- Tagging internal links. Adding UTM tags to links between pages of your own site can overwrite the original source of a visit. Tag only links that bring people in from outside.
- Inconsistent names. Mixing
fb,facebook, andFacebooksplits one channel across rows. - Missing tags on owned channels. Email, social bios, and QR codes are often forgotten, and their visits then appear as direct traffic.
- Personal data in tags. Never put names or email addresses in a URL parameter.
From tags to attribution
Attribution is the practice of deciding which touchpoints get credit for a conversion. Tags supply the data, and an attribution model supplies the rule.
- Last-touch gives all credit to the final channel before conversion. It favors conversion channels such as branded search and retargeting.
- First-touch gives all credit to the channel that started the relationship. It favors awareness channels.
- Multi-touch splits credit across several touchpoints, for example evenly or with extra weight on the first and last.
No model is correct for every case. Under last-touch, awareness channels look weak even when they begin most journeys. Under first-touch, conversion channels look weak even though they close sales. Compare at least two models before you cut a channel.
Worked example
A campaign spends 900.00 on paid social at the awareness stage and 30 conversions are credited to it in the tool. Under last-touch, the paid social tags show only 4 of them, because most buyers returned later through branded search. Cost per acquisition is 900.00 / 4 = 225.00 under last-touch, but 900.00 / 30 = 30.00 if all 30 are credited. The channel did not change. Only the attribution rule did, which is why the rule must be stated next to every report.
Exercise
A team tags its newsletter link with utmsource=Newsletter in one campaign and utmsource=newsletter in another. What problem results, and what would you do to prevent it?
Show answer
The analytics tool treats the two values as different sources, so one channel is split across two rows and its totals look smaller. Prevent it by agreeing on one naming rule, such as lowercase with underscores, and generating links from a shared function or template instead of typing them by hand.
Exercise
Under last-touch attribution, an awareness video shows almost no conversions. Does that prove the video is not working?
Show answer
No. Last-touch gives credit only to the final channel before conversion, so awareness channels are undercounted by design. Check first-touch or multi-touch results, and look at the awareness metric (reach) before deciding to cut it.