EARTHLOOMGuides   Apps

How to build consistent UTM-tagged URLs that follow a naming policy

Inconsistent UTM tags - utm_source=facebook vs fb, utm_medium=cpc vs paid - break attribution reports and waste ad spend. A naming policy fixes this, but enforcing it across a team is hard when everyone builds links manually. The reliable way is to codify the policy once, then use a builder that validates every field against it before the link leaves your browser.

Why this is harder than it looks

Marketers type UTM parameters from memory or copy old links, introducing typos, mixed case, and forbidden values. Spreadsheets with dropdowns help but don't prevent "email" vs "Email" or missing required fields. Bulk link creation via CSV is error-prone: one bad row corrupts the whole import. Without a validation layer, the analytics team spends hours cleaning data instead of analyzing it.

Step by step

  1. Write the naming policy as a shared document. List every allowed value for each UTM key: source (google, facebook, linkedin, newsletter), medium (cpc, email, social, referral, affiliate), campaign naming pattern (e.g., YYMMDD_product_geo_objective), and any custom parameters. Explicitly forbid spaces, uppercase, and special characters. Publish the doc where every link creator can open it in one click.
  2. Encode the policy into a builder with dropdowns. Use a tool that lets you define allowed values per field as a dropdown list. When a user picks "facebook" for source, the medium dropdown shows only cpc, social, referral. Make required fields mandatory and add regex rules for custom patterns (e.g., campaign must match ^\d{6}_[a-z]+_[a-z]{2}_[a-z]+$). The builder should block copy until all fields pass.
  3. Prefill from the current page to avoid typos. When building a link for a landing page you're viewing, use a builder that reads the active tab's URL and pre-fills the base URL field. If the page already has UTMs, the builder should parse them into the corresponding fields so you can edit rather than retype. This eliminates copy-paste errors on long URLs.
  4. Lint existing URLs before reusing them. Paste any existing campaign URL into a linter that checks each parameter against your policy. It should flag unknown sources, missing required fields, case mismatches, and deprecated values. Show a safe-fix preview (e.g., change "FB" to "facebook") that you can apply with one click before copying the corrected link.
  5. Batch-process CSV files for large campaigns. Prepare a CSV with a header row and up to 50,000 rows. Include columns for base URL and any UTM fields you want to set or override. Map columns in the builder, run the batch, and review the results table: each row shows status (ok, fixed, error) and issues. Export the corrected CSV with original columns plus final_url, status, and issues. Enable spreadsheet-safe output to prevent formula injection.
  6. Save every generated link to a searchable history. Enable automatic history saves so every copied link - single or batch - is stored with timestamp, policy version, and the raw values used. Later you can search by campaign name, date range, or source, re-copy a final URL, or export a filtered history for audit. This replaces the "final links" spreadsheet that always gets out of date.
  7. Version policies and lock the active one. When the marketing team updates naming rules, create a new policy version instead of editing the live one. Set the new version active; old links in history retain the policy version they were built with. This lets you audit which links followed which rules without guessing.

Common mistakes

Where CampaignLint fits in

CampaignLint is a local Edge and Firefox extension that builds UTM links from policy-driven dropdowns, validates every field live, lints existing URLs with safe-fix previews, processes CSV batches up to 50,000 rows, and stores a searchable history in IndexedDB - all offline with no telemetry.

CampaignLint support and FAQ

FAQ

How do I handle UTMs that differ by channel but share a base policy?

Create a base policy with common required fields, then extend it per channel (e.g., email_policy adds utm_content=template_name). Switch the active policy in the builder before starting a batch for that channel.

What if a CSV row has a base URL that already contains UTMs?

The builder merges intelligently: mapped columns override existing values, unmapped columns leave the original UTMs untouched. Review the issues column in the results to see which rows had collisions.

Can I export history for a specific date range and policy version?

Yes. The history view supports filtering by date range, search term, and policy version. Filtered results can be exported as CSV with the same columns as the single-link copy.