agentleFS
IslaIntelIslaIntel/otto-content-skills/skills/utm-builder/SKILL.md

utm-builder

Skill2 starsChanged 14 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

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
  1. Very specific:

    Read brand/offer.md for the approved destination URLs.

    line 17
  2. Distinctive:

    Ask: the campaign (what and when), destination page(s), and the posts or placements that will carry links.

    line 18
  3. Very specific:

    Check existing names first: ga4_run_report dimensions ["sessionSource","sessionMedium","sessionCampaignName"], metric sessions, last 90 …

    line 19
  4. Very specific:

    All values lowercase, words joined with hyphens, no spaces, no accents.

    line 23
  5. Distinctive:

    Use the same campaign value on every platform for one campaign.

    line 36
  6. Distinctive:

    Nothing personal in any value: no customer names, emails, phone numbers, staff names, or private IDs.

    line 37
  7. Distinctive:

    If a link shortener is used, the full tagged URL goes into the shortener.

    line 46
  8. Very specific:

    Add sessionManualAdContent as a dimension to see utm_content per post.

    line 59
  9. Distinctive:

    Never put personal or private data in a UTM value.

    line 92
  10. Distinctive:

    Never tag internal links between pages of the same site (it resets the visitor's real source).

    line 93
  11. Distinctive:

    Never post, edit a post, or change a profile link from this skill.

    line 94
  12. Distinctive:

    Never treat a tagged visit as proof the post caused a sale.

    line 95

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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_connections to confirm GA4 is connected (needed for step 4; without it, build links and skip verification).
  • Read brand/offer.md for the approved destination URLs. Read social-data/utm-log.csv if 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_report dimensions ["sessionSource","sessionMedium","sessionCampaignName"], metric sessions, 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.

ParameterAllowed valuesExample
utm_sourcethe platform: instagram, facebook, linkedin, youtube, tiktok, x, newsletter, gbp, or a partner's short nameinstagram
utm_mediumsocial (organic post), paid-social (ads), email, creator (partner posts), bio (link in profile), qrsocial
utm_campaign<topic>-<yyyy-mm>spring-cleanup-2026-03
utm_contentwhich post or placement: <format>-<short-slug>-<mmdd>reel-before-after-0314
utm_termonly for paid search keywords; leave out otherwise

Rules:

  • GA4 channels: social and bio with a social source land in Organic Social, paid-social in Paid Social, email in Email. creator and qr aren'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 source gbp, medium organic (with social it 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)

  1. ga4_run_report dimensions ["sessionSource","sessionMedium","sessionCampaignName"], metrics ["sessions","engagedSessions","keyEvents"], from the campaign start, dimensionFilter on sessionCampaignName CONTAINS the campaign value.
  2. Add sessionManualAdContent as a dimension to see utm_content per post.
  3. Compare with the log:
GA4 showsMeansFix
Rows match the logworkingmark status = verified
Campaign missing, posts are live and clickedtag dropped (redirect, shortener, app browser)open the link, check the final URL still has the tags
Same campaign in two spellings / casessomeone typed it by handcorrect future links; add both together in reports
Source shows as (not set) or (direct)link copied without tagsrebuild from the log
Sessions but 0 engagedwrong or slow landing pagecheck 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.