utm-builder
Skill2 starsChanged 15 days agoMITView on GitHub
Build tracked links for your posts and campaigns with one lowercase naming scheme, one link per platform and post, a running log file, and a check in GA4 through Otto (sessionSource / sessionCampaignName) that the tags actually arrive. Use when asked to "make UTM links", "tag my links", "track which post sent traffic", "set up tracking for this campaign", or "are my UTMs working".
4 other projects use a version of this.
Adopted by
Most recently taken up by
- IslaIntel/otto-content-skillsword for word, first seen Nov 22, 2026
- cognyai/claude-code-marketing-skillstheir own version, first seen Oct 12, 2026
- Synter-Media-AI/free-skillstheir own version, first seen Oct 11, 2026
- calven-ai/marketing-as-codetheir own version, first seen Oct 7, 2026
Other versions4 projects use a version of this.
Word for word · 1
- IslaIntel/otto-content-skills★ 2100% same
Edited · 0
None found.
Wrote their own version · 3
- cognyai/claude-code-marketing-skills★ 106same name
- calven-ai/marketing-as-code★ 11same name
- Synter-Media-AI/free-skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository38 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- audience-mapSkill
- best-time-to-postSkill
- brand-brainSkill
- campaign-planSkill
- campaign-retroSkill
- caption-writerSkill
- carousel-designerSkill
- comment-insightsSkill
- comment-to-leadSkill
- competitor-watchSkill
- content-engineSkill
- content-pillarsSkill
- content-scorecardSkill
- cover-designerSkill
- creator-collabSkill
- daily-pulseSkill
- hook-patternsSkill
- hook-testSkill
- hook-writerSkill
- linkedin-postSkill
- message-checkSkill
- posting-planSkill
- post-queueSkill
- profile-checkSkill
- reel-breakdownSkill
- reel-diagnosisSkill
- reel-scriptSkill
- repurposeSkill
- search-and-socialSkill
- shot-listSkill
- social-proof-finderSkill
- sound-humanSkill
- story-sequenceSkill
- topic-finderSkill
- trend-radarSkill
- viral-reel-plannerSkill
- weekly-social-reviewSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 8 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Read brand/offer.md for the approved destination URLs.
- Distinctive: line 18
Ask: the campaign (what and when), destination page(s), and the posts or placements that will carry links.
- Very specific: line 19
Check existing names first: ga4_run_report dimensions ["sessionSource","sessionMedium","sessionCampaignName"], metric sessions, last 90 …
- Very specific: line 23
All values lowercase, words joined with hyphens, no spaces, no accents.
- Distinctive: line 36
Use the same campaign value on every platform for one campaign.
- Distinctive: line 37
Nothing personal in any value: no customer names, emails, phone numbers, staff names, or private IDs.
- Distinctive: line 46
If a link shortener is used, the full tagged URL goes into the shortener.
- Very specific: line 59
Add sessionManualAdContent as a dimension to see utm_content per post.
- Distinctive: line 92
Never put personal or private data in a UTM value.
- Distinctive: line 93
Never tag internal links between pages of the same site (it resets the visitor's real source).
- Distinctive: line 94
Never post, edit a post, or change a profile link from this skill.
- Distinctive: line 95
Never treat a tagged visit as proof the post caused a sale.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
UTM builder
Without tags, GA4 sees "facebook.com sent some visits" and nothing more. With tags it sees which campaign and which post. This skill sets a naming scheme once, builds the links, logs them, and later checks in GA4 that they arrived as written. It only creates text (links and a log file); it never posts or edits anything.
0. Setup
Follow the settings and capability rules in otto-rules.md (in this skill's folder) ("How every skill talks to the user"). In short: read brand/settings.md (or your memory of the user's Otto settings) first for workspace, accounts and output mode; ask only what's missing, as one multiple-choice question, and save the answers.
Then:
otto_list_connectionsto confirm GA4 is connected (needed for step 4; without it, build links and skip verification).- Read
brand/offer.mdfor the approved destination URLs. Readsocial-data/utm-log.csvif it exists and reuse its values; never invent a second name for something already logged. - Ask: the campaign (what and when), destination page(s), and the posts or placements that will carry links.
- Check existing names first:
ga4_run_reportdimensions["sessionSource","sessionMedium","sessionCampaignName"], metricsessions, last 90 days. Keep whatever convention is already in use if it's consistent.
1. The naming scheme
All values lowercase, words joined with hyphens, no spaces, no accents. GA4 treats Instagram and instagram as two sources.
| Parameter | Allowed values | Example |
utm_source | the platform: instagram, facebook, linkedin, youtube, tiktok, x, newsletter, gbp, or a partner's short name | instagram |
utm_medium | social (organic post), paid-social (ads), email, creator (partner posts), bio (link in profile), qr | social |
utm_campaign | <topic>-<yyyy-mm> | spring-cleanup-2026-03 |
utm_content | which post or placement: <format>-<short-slug>-<mmdd> | reel-before-after-0314 |
utm_term | only for paid search keywords; leave out otherwise |
Rules:
- GA4 channels:
socialandbiowith a social source land in Organic Social,paid-socialin Paid Social,emailin Email.creatorandqraren't default-channel mediums: with a social platform as source they still count as Organic Social, with any other source they show as Unassigned. Report them from the log. For Google Business Profile use sourcegbp, mediumorganic(withsocialit would count as Organic Social). - Medium separates organic, paid, creator and email so they never blend in reports. Meta ads that already set their own URL parameters keep them; log what they use.
- Use the same campaign value on every platform for one campaign; vary source and content.
- Nothing personal in any value: no customer names, emails, phone numbers, staff names, or private IDs. Use a neutral label.
2. Build the links
For each post or placement: <destination>?utm_source=…&utm_medium=…&utm_campaign=…&utm_content=…. If the destination already has ?, join with &. Encode nothing that doesn't need it (the scheme above avoids special characters).
Where links can go:
- Instagram: link in bio (medium
bio), Stories link sticker, DMs. Caption links aren't clickable. - Facebook, LinkedIn: in the post. YouTube long-form: description and pinned comment. Shorts: links in the description and comments aren't clickable; link to a related video or use the channel link instead. GBP posts: the button URL.
- If a link shortener is used, the full tagged URL goes into the shortener; log both.
3. Log
Append one row per link to social-data/utm-log.csv (create it with this header if missing):
created,campaign,source,medium,content,destination,full_url,placement,post_permalink,status
status starts as built. Fill post_permalink once the post is live.
4. Verify in GA4 (24-48 hours after the first link goes live)
ga4_run_reportdimensions["sessionSource","sessionMedium","sessionCampaignName"], metrics["sessions","engagedSessions","keyEvents"], from the campaign start,dimensionFilteronsessionCampaignNameCONTAINSthe campaign value.- Add
sessionManualAdContentas a dimension to seeutm_contentper post. - Compare with the log:
| GA4 shows | Means | Fix |
| Rows match the log | working | mark status = verified |
| Campaign missing, posts are live and clicked | tag dropped (redirect, shortener, app browser) | open the link, check the final URL still has the tags |
| Same campaign in two spellings / cases | someone typed it by hand | correct future links; add both together in reports |
Source shows as (not set) or (direct) | link copied without tags | rebuild from the log |
| Sessions but 0 engaged | wrong or slow landing page | check the destination |
Also look at untagged social rows (facebook.com, m.facebook.com, ig, l.instagram.com) in the same window: that's the share of social traffic still invisible at post level.
5. Output
Default is visual: an artifact (claude.ai / Claude desktop), an HTML file opened in the browser (Claude Code / Cowork), or a canvas (ChatGPT), with each link in a copyable field. Also print the full links as plain text in chat so they can be copied without opening anything. If settings say output: chat or the user asks for chat, give the markdown below in chat only.
## UTM links: <campaign>
Scheme: source=<platform> · medium=<type> · campaign=<value> · content=<format-slug-mmdd>
| Placement | Platform | Full link | Logged |
### Verification (<date>)
| Campaign | Source / medium | Content | Sessions | Engaged | Key events | Status |
Untagged social sessions in window: <n> (<x>% of social)
Fixes: ...Hand results to campaign-retro after the campaign ends.
Never
- Never put personal or private data in a UTM value.
- Never tag internal links between pages of the same site (it resets the visitor's real source).
- Never post, edit a post, or change a profile link from this skill; the person places the links.
- Never treat a tagged visit as proof the post caused a sale.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

