Find Missing UTM Tags in Campaign URLs With AI

Short answer

Audit campaign URLs for empty UTM values, duplicate parameters, and inconsistent names before launch.

Try Assistly Open consoleAssistly · 7 min read

Monday morning at the two-person shop in Abu Dhabi, and the analytics report has a row called Newsletter, another called newsletter_email, a third called (not set), all pointing at the same restock page. Rania K. spent last week pasting links into WhatsApp broadcasts and the supplier flyer. Omar H. opens the URL list and finds 34 links; three are duplicates of each other with different spellings of the same campaign. The traffic arrived. Nobody can say which link sent it.

That is the failure an audit prevents, and it runs on two things: a written naming policy and a list of the actual URLs. Assistly reads the list against the policy, parses every query string, and returns a row-by-row report with fixed status labels. It does not change a single live link; the person who owns each link makes the fix, in the platform where the link lives.

Write the policy before the spreadsheet

An audit without a written policy can only tell you that links differ from each other, which is not the same as wrong. One short paragraph is enough: which parameters are required on externally shared links (utm_source, utm_medium, utm_campaign), which are required per channel (utm_content for email and paid placements), the casing convention (lowercase, underscores instead of spaces), and the approved value lists (sources: newsletter, meta, google_ads, partner_blog, whatsapp; mediums: email, social, cpc, referral). Paste that policy into the chat with the URL list. Put the URL exceptions in a weekly spreadsheet report if several people need to review recurring naming errors before launch.

Build the input as a spreadsheet with one row per link: link ID, channel from the planning sheet, owner, and the destination URL exactly as pasted. Keep the original URL in its own column and never overwrite it; the corrected link belongs in a new column so before and after stay visible. If the list runs long, split it by channel, because large inputs can be truncated in processing. Check the row count in the output against the source before reading a single flag.

Read only what sits between ? and #

A URL's UTM parameters live in the query string, which starts at the question mark and ends at the first hash symbol or the end of the address. Everything after the hash is a fragment: the browser uses it to jump to a spot on the page and never sends it to the server. A fragment that contains utm-looking text, like #utm_source=whatsapp, is not a tag, even though it photographs well in a screenshot. Counting it makes a missing tag look present, which is the single most persuasive wrong answer in this kind of audit.

The checks per row follow from that. Required keys present in the query, with an equals sign. Values against the approved lists, since Email and email split your analytics into two rows that should be one. Blank values (utm_campaign= with nothing after the equals) reported separately from missing keys, because the fixes differ. Duplicate keys in one query, like two utm_source parameters, flagged, because analytics tools may keep only one. Encoded values such as restock%20sale flagged for review rather than silently decoded. And internal links, like your own checkout steps, excluded on purpose by a written exclusion list, shown in the report so nobody wonders where they went. Continue with a related workflow: Find Missing Sources in Newsletter Drafts With AI

Worked examples

  • The restock email batch

    What to give Assistly. The policy paragraph above, plus eight rows from spring_email.xlsx. The planning note says the campaign is the restock wave tied to supplier invoice INV-4882, so the approved campaign value is inv-4882-restock. Two rows as pasted: row 3 reads https://www.raniahome.ae/restock?utm_source=newsletter&utm_medium=email&utm_campaign=inv-4882-restock and row 8 reads https://www.raniahome.ae/restock?utm_source=newsletter&utm_medium=email&utm_campaign=inv-4882-restock&utm_content=footer#utm_source=whatsapp.

    What Assistly returns. Row 3: missing required field, because utm_content is required for email and absent. Row 8: complete, with a note that the query was read up to the hash and that the fragment contains utm_source=whatsapp, which was not counted. The batch summary reads 8 rows checked, 4 complete (one with a fragment note), 2 missing required field, 1 case mismatch (a source reading Newsletter against the lowercase rule), 1 encoding review (a campaign value pasted as restock%20wave), 0 duplicate keys. A first pass had marked row 8 clean with no note; verification caught the fragment, and the corrected report carries it, because the next person to read that URL deserves to know the hash is lying there.

    How to verify it. Open row 8's full URL in a plain text editor and confirm the hash sits before the second utm_source, which puts that text in the fragment. Pick two more flagged rows and read them character by character against the report. Then recount the statuses by hand: they must add to 8. If your export is a spreadsheet, the local comparison tool verifies the row count and ID list against the source exactly.

  • Paid social, pasted twice

    What to give Assistly. Six rows from paid_social.xlsx. Row 2 reads https://www.raniahome.ae/bundle?utm_source=meta&utm_medium=cpc&utm_campaign=inv-4882-restock&utm_source=meta. Row 4 reads https://www.raniahome.ae/bundle?utm_source=meta&utm_medium=cpc&utm_campaign=&utm_content=video_a.

    What Assistly returns. Row 2: duplicate key, because utm_source appears twice and the platform reading the link may honor only one of the two values. Row 4: blank value, because utm_campaign= carries nothing after the equals sign, which is a different fix than a missing key. The summary: 6 rows checked, 3 complete, 1 duplicate key, 1 blank value, 1 excluded on the internal-link list with its reason stated. Sara A., who owns the social calendar, gets the corrections column with proposed fixed URLs; Rania approves; nothing is published until a person makes the change where the links actually live.

    How to verify it. Paste row 2 into any query parser or count the utm_source occurrences by eye; two is two. Confirm the excluded rows are the internal ones you listed, not links that failed to parse. Recheck the count arithmetic: 3 + 1 + 1 + 1 = 6.

Prompt to try in Assistly

Using the naming policy below, check each destination URL in the attached list. Read only the text between the question mark and the first hash as the query; report any fragment that contains utm-style text as a note. Required keys are utm_source, utm_medium, utm_campaign on every row, plus utm_content where Channel is email or paid_social. Approved sources: newsletter, meta, google_ads, partner_blog, whatsapp. Approved mediums: email, social, cpc, referral. Values lowercase, underscores for spaces. Return one line per row: row number, original URL unchanged, status from this fixed set (complete, missing required field, blank value, duplicate key, case mismatch, encoding review, excluded), and a short note. Then list rows needing correction with a proposed corrected URL in a separate column, and state the total rows checked.
Try this task

Frequently asked questions

Does this audit change any of my live links?

No. The audit reads the URLs you provide and returns a report. Corrections happen when a person edits the link in the platform or document where it lives, and the original URL column stays untouched so you can compare before and after.

Why does the fragment matter if browsers ignore it?

The server never sees the fragment, so it cannot function as a campaign tag, but humans copying the link will read it and assume the link is tagged. The audit notes it rather than deleting it; the owner decides whether to strip it.

Should every link on my site carry UTM tags?

Usually not. Internal navigation links should stay untagged because campaign parameters on them start new sessions and overwrite the real source. Keep an exclusion list by domain or path prefix, and let the report show exclusions openly so the count of checked rows still adds up.

What about platforms that auto-tag links?

Their behavior depends on their own settings, and this audit cannot confirm what any specific platform appends at click time. The audit still matters for the links a platform never touches: pasted messages, partner pages, printed flyers. Compare a sample of published links against the platform's own documentation, and treat the file audit as the check on URLs you control by hand.

How do I know the counts are right?

Three ways, all cheap: confirm the report's row count equals the source file's row count, hand-read a sample of flagged and complete rows, and for spreadsheet exports run the local comparison tool so the ID list and totals are verified rather than estimated. If any count disagrees, suspect truncation or a line break inside a URL cell before you suspect the links.

Try the workflow in Assistly

Create an account