UTM tracking plan
Goal
A short convention and a ready link list that make campaign traffic readable in analytics. Names are consistent, tags go only on external links and nothing personal appears in a URL.
When to use
- The user runs email, social, ads, partners or print codes and cannot tell which brought visitors.
- Reports show messy duplicates such as "Facebook", "facebook" and "fb".
- For the campaign itself, use
use_skillwithcampaign-brief. - For test setups that need tagged variants, use
use_skillwitha-b-test-plan. - For the post schedule that uses these links, use
use_skillwithcontent-calendar.
Steps
- Ask with
ask_userfor the analytics tool, the channels in use, the campaigns planned, who creates links and where links are stored. Check the tool's documentation withread_urlif the user is unsure which parameters it reads. - Choose the parameters. The standard five are source (where the traffic is from), medium (the kind of channel), campaign (the initiative), term (paid keyword, optional) and content (the variant, optional). Use only what the team will fill in.
- Fix the rules: all lowercase, hyphens instead of spaces, no special characters, no personal data, short but readable values, dates in a single format.
- Define a controlled vocabulary. List allowed values for source (for example the platform names) and for medium (for example email, social, cpc, referral, affiliate). Map each channel to one pair only. Put it in a table so no one invents new ones.
- Define the campaign naming pattern, such as
year-month_topic_goal, and give two worked examples. Keep content values to describe variants likehero-aorvideo-short. - Write the do-not list: never tag internal links on your own site (it resets sessions and attribution in many tools), never tag organic search, and avoid tagging links that already carry another tool's parameters unless the tool supports it.
- Build the link sheet with
create_file. Columns: base URL, source, medium, campaign, content, term, final URL, owner, date, status. Generate final URLs withrun_commandto avoid typos, encoding values correctly. Check that existing query strings in the base URL are preserved. - Test one link: open it, confirm the landing page loads, and check in the analytics real-time view that source, medium and campaign appear as planned.
- Document the process: who adds links, where the sheet lives, how new values get approved and how often it is reviewed for stray values.
- Plan the report: which view or dashboard groups by campaign and medium, and the check for unexpected values each month.
Gotchas
- Inconsistent case splits one channel into several rows. Enforce lowercase.
- Tagged internal links overwrite the original traffic source in many tools. Use event tracking for internal clicks.
- Personal data in a URL, such as emails or names, leaks through logs and referrers and may breach privacy law. Never include it.
- Link shorteners can hide the tags; test the final destination.
- Redirects can strip parameters. Check that the landing page keeps them.
- Too many custom values make reports unreadable. Keep the vocabulary small.
- Some email and social apps open links through their own wrapper. Confirm the tags survive in a real test.
Output
The convention, the vocabulary table, the do-not list, the link sheet (offer a file via create_file), the test result and the review routine.
