Skip to content
Urlzee

How to Build a Campaign URL Tracking Spreadsheet

By Urlzee Team · Published · 6 min read

A campaign URL tracking spreadsheet is one shared sheet where every tagged link is built and recorded. Each row holds a landing page, its UTM values chosen from dropdowns, a formula that assembles the final URL, and the short link you actually shared. It keeps naming consistent and gives you a history to check reports against.

Why keep campaign URLs in a spreadsheet?

Because UTM tracking fails through inconsistency, and a shared sheet is the cheapest way to prevent it. When links are built ad hoc, one person writes utm_source=linkedin, another writes LinkedIn, a third writes li. Analytics records three sources.

A sheet solves three problems at once:

  • It restricts choices. Dropdowns only offer approved values.
  • It builds the URL for you. A formula never forgets an &.
  • It remembers. Six months later, you can look up exactly what a campaign name meant and where each link was used.

The values themselves should follow agreed rules. If you don't have any yet, read UTM naming conventions before building the sheet, because the sheet will enforce whatever you decide.

Which columns does the sheet need?

Start with these. You can add more later, but resist the urge to track everything from day one.

ColumnHeaderWhat goes in it
ALanding pageThe full destination URL, without UTM tags
BSourceChosen from a dropdown
CMediumChosen from a dropdown
DCampaignTyped, following your naming pattern
EContentOptional; which link or creative
FTermOptional; paid search keyword
GTagged URLFormula; don't type here
HShort linkPasted in after shortening
IDateWhen the link was created
JOwnerWho created it
KNotesWhere it was used, anything unusual

Freeze the header row and protect column G so nobody overwrites the formula by accident.

How do you set it up, step by step?

  1. Create a new spreadsheet with two tabs. Name them Links and Lists.
  2. Fill the Lists tab with your allowed values. Put sources in column A (newsletter, facebook, instagram, linkedin, google) and mediums in column B (email, social, paid_social, cpc, referral). All lowercase.
  3. Add the headers from the table above to row 1 of the Links tab.
  4. Add dropdowns to the Source and Medium columns. Select column B, open the data validation settings, and choose a dropdown that takes its options from the range on the Lists tab. Repeat for column C. Set the rule to reject anything not on the list.
  5. Enter the formula in G2 (see the next section) and fill it down.
  6. Share the sheet with edit access for people who create links and view access for everyone else.
  7. Add one real row and test it by opening the generated URL in a browser.

What formula builds the tagged URL?

The simplest version joins the pieces with &. Put this in G2:

=A2 & "?utm_source=" & B2 & "&utm_medium=" & C2 & "&utm_campaign=" & D2

That works when every landing page is a clean URL and every field is filled. Real sheets need a sturdier version that handles four things: landing pages that already contain a ?, capital letters and spaces in typed values, optional fields left empty, and rows that haven't been filled in yet.

=IF(OR(A2="", B2=""), "",
  A2
  & IF(ISNUMBER(FIND("?", A2)), "&", "?")
  & "utm_source=" & LOWER(SUBSTITUTE(TRIM(B2), " ", "_"))
  & "&utm_medium=" & LOWER(SUBSTITUTE(TRIM(C2), " ", "_"))
  & "&utm_campaign=" & LOWER(SUBSTITUTE(TRIM(D2), " ", "_"))
  & IF(E2="", "", "&utm_content=" & LOWER(SUBSTITUTE(TRIM(E2), " ", "_")))
  & IF(F2="", "", "&utm_term=" & LOWER(SUBSTITUTE(TRIM(F2), " ", "_")))
)

What each part does:

  • IF(OR(A2="", B2=""), "", ...) leaves the cell blank until the row has a landing page and a source.
  • FIND("?", A2) checks whether the landing page already has a query string. If it does, the tags are joined with &; if not, with ?.
  • TRIM removes stray spaces at the ends, SUBSTITUTE turns inner spaces into underscores, and LOWER forces lowercase.
  • The last two lines only add utm_content and utm_term when those cells contain something, so you never get an empty parameter.

The formula works in both Google Sheets and Excel. Two limits to know about. It doesn't handle landing pages that contain a # fragment; the tags must go before the #, so enter such URLs without the fragment and add it by hand afterwards. And it doesn't encode special characters like & or = inside a value. The simple answer is to ban them: letters, numbers, hyphens and underscores only.

If you'd rather not maintain formulas, build each URL in the UTM builder and paste the result into column G. You lose the automation but keep the log.

Shorten the tagged URLs in a batch and paste the results back.

  1. Copy the finished URLs from column G.
  2. Paste them into the bulk URL shortener, one per line. To choose your own ending, add a comma and an alias after a URL, for example https://example.com/sale?utm_source=...,spring-email.
  3. Run the batch and download the CSV, which lists each original URL beside its short link.
  4. Paste the short links into column H, matching rows by the original URL.

Bulk shortening needs a Urlzee account. Free accounts can shorten 10 URLs per batch and Pro raises that to 500. The bulk URL shortening guide covers larger jobs, and for recurring work the same thing can be done through the API.

Record the short link in the sheet even if you think you'll remember it. The short link is what appears in the wild, so it's what people will ask about later.

How do you keep the sheet clean over time?

A tracking sheet decays unless someone looks after it. A few habits prevent most of the mess.

  • Name one owner. They approve new sources and mediums and tidy the sheet monthly.
  • Add values to the Lists tab, never directly into a row. If a new network appears, it goes on the list first, spelled once.
  • Don't delete old rows. Past campaigns are your reference for what values meant. Use a filter or a Status column to hide finished ones.
  • Highlight duplicates. A conditional formatting rule on column G that flags repeated values catches accidental double entries.
  • Fill in Notes. "Used in footer of March invoice emails" saves a lot of guessing later.
  • Keep one copy. The moment someone downloads their own version, you have two vocabularies.

How do you use the sheet when reading reports?

Treat it as the key to your analytics. When a campaign name shows up in GA4 or in your link dashboard, the sheet tells you which page it pointed to, who set it up and where it ran.

It also helps you find problems. Sort your analytics by source and compare against the Lists tab. Any source in the report that isn't on your list was created outside the sheet, and you can track down who needs access. The post on UTM mistakes to avoid lists the usual culprits.

Some teams add columns for results, such as short link clicks and sessions, filled in when a campaign ends. That turns the log into a simple performance record without any extra tooling.

When do you outgrow a spreadsheet?

When several people are creating dozens of links a day, manual pasting becomes the bottleneck, and mistakes creep back in. At that point it's worth generating links programmatically, with your sheet or database as the source and an API creating the short links.

Until then, a sheet with two dropdowns and one formula is enough, provided the whole team builds every link in it.

Frequently asked questions

What is a campaign URL tracking spreadsheet?
It is a shared sheet that records every tagged link your team creates, with columns for the landing page, UTM values, final URL and short link. It acts as both a link generator and a log.
Which columns should a UTM tracking sheet have?
At minimum: date, owner, landing page URL, utm_source, utm_medium, utm_campaign, optional utm_content and utm_term, the generated URL, the short link and a notes column.
How do I build a UTM link with a spreadsheet formula?
Join the landing page and each parameter with the ampersand operator, for example =A2 & "?utm_source=" & B2 & "&utm_medium=" & C2 & "&utm_campaign=" & D2. Add LOWER and SUBSTITUTE to clean the values.
Should I use Google Sheets or Excel for tracking campaign URLs?
Either works, and the formulas in this guide run in both. Choose whichever your team can edit together at the same time, since the sheet is only useful if everyone uses the same copy.