Guide
Tagging campaign links with UTM parameters in bulk
When a visitor arrives from a link with UTM parameters, analytics tools such as Google Analytics record the source, medium and campaign named in the address. Without them, much of the traffic from email and social media is counted as direct or lumped together. The parameters are simple to type, but typing them by hand across dozens of links invites small mistakes that split one campaign into several rows of a report. This builder tags a whole list consistently.
The parameters
The three that every report relies on are utm_source, utm_medium and utm_campaign. Two more refine a campaign: utm_term, historically used for paid search keywords, and utm_content, which tells similar links apart, for example a header button and a footer link in the same email. A newer utm_id carries a campaign identifier. Only the first three are required by the tool.
How the links are built
Paste the page addresses, one per line, and fill in the values. For every address the tool keeps the path, the existing query string and the fragment after the #, then adds the UTM pairs inside the query string. If an address already has a utm_source or other UTM value, the old value is replaced rather than repeated. The content box takes one variant per line: with two variants, every address produces two links.
Keeping values consistent
Analytics treats “Email”, “email” and “e-mail” as three different sources. The lower-case option, on by default, avoids the first mismatch, and the note under the result reminds you to keep names consistent over time. Spaces are turned into percent-encoded characters. Pick a naming convention such as underscores between words, write it down and reuse it.
What not to tag
Never add UTM parameters to links that point from one page of your own site to another. A click on such a link starts a new session in most tools and replaces the real source of the visit, so you lose the information the tags were meant to gather. Use the parameters on links that bring people from outside: email, ads, social posts, partner sites and printed QR codes.
A worked example
The sample tags two addresses, https://shop.example/running-shoes and https://shop.example/sale?ref=partner#deals, with source newsletter, medium email and campaign spring_sale, and two content variants, header_button and footer_link. The result says 4 links made. The second address keeps its ref=partner parameter and its fragment, so the first of its two links is https://shop.example/sale?ref=partner&utm_source=newsletter&utm_medium=email&utm_campaign=spring_sale&utm_content=header_button#deals. A table with the original page, the content value and the tagged link can be downloaded as CSV for the team.
Limits
The builder cannot tell whether your analytics setup recognises the parameters or whether a site strips them. It does not shorten links or create QR codes. It also cannot repair addresses that are not valid, so check each link in a browser before sending a campaign.
Keeping a naming sheet
Teams get the best reports when everyone uses the same names. Keep a short sheet that lists the allowed sources and mediums, for example newsletter, social and cpc, with an example campaign name for each. Paste the CSV from this tool into that sheet so that every link ever sent is documented and can be matched to results later.
Related tools
- QR Code Generator turns a tagged address into a code for print.
- Canonical Tag Generator strips tracking parameters from the address search engines should index.
- Email ROI Calculator values the campaign that these tags help you measure.
- A/B Test Calculator judges whether one tagged variant really beat another.
Checked against the current version of the UTM Link Builder on .

