virling Pricing Self-host Demo Changelog Agencies GitHub Start free trial
tools / bulk utm builder

Bulk UTM builder

Paste a list of URLs, one per line, and fill in utm_source, utm_medium and utm_campaign once to tag every link. Or paste a CSV with url, source, medium, campaign, content and term columns to give each row its own tags. Copy all the links or download them as a CSV. Nothing leaves your browser.

A value in a CSV cell wins over the field above; an empty cell uses the field. Tags already on a URL stay unless a value replaces them.

Tagged linksDownload CSV

See the revenue each tagged link brings

Virling reads your UTM tags and links each visit to the payment that followed, so each campaign shows the visitors and revenue it brought. Virling is open source under AGPLv3: self-host it free, or start a 14-day hosted trial.

Start free trial See the demo

How the bulk UTM builder works

  1. Paste your links, one per line. Each line must be a full URL starting with https://.
  2. Fill in the source, medium and campaign once. They are added to every link, the same way the UTM builder does for one link: spaces become hyphens and values are lowercased unless you untick the box.
  3. To tag rows differently, paste a CSV instead. The first line names the columns: url is required, and source, medium, campaign, content and term (or utm_source and so on) are optional.
  4. Copy all the tagged links, or download a CSV with the original URL, the tagged URL and the result for each row.

Query strings already on a link are kept, and the tags go before any #fragment, so https://example.com/#features becomes https://example.com/?utm_source=newsletter&utm_medium=email&utm_campaign=october-launch#features. A line that is not a full URL, or a row left without a source, is flagged in the results and left out of the copied links, not dropped silently.

A sample CSV to copy

Five links of one made-up launch. Copy it, paste it over the list in the tool, and all five rows are tagged. Then replace the links and names with yours.

url,source,medium,campaign,content
https://example.com/pricing,newsletter,email,october-launch,header-button
https://example.com/pricing,newsletter,email,october-launch,footer-link
https://example.com/pricing,linkedin,social,october-launch,
https://example.com/pricing,linkedin,paidsocial,october-launch,video-ad
https://example.com/,google,cpc,october-launch,

The source stays the same for the LinkedIn post and the LinkedIn ad, and the medium tells them apart: see utm_source vs utm_medium. The campaign is the same on every row, so the launch is one row when you read revenue by campaign.

Common input problems

InputWhat the tool does
A link without https://, such as example.com/signupFlags it as not a full URL and leaves it out of the copied links. The CSV download keeps the row with its error.
mailto: and other links that are not web pagesFlags them the same way. Only http and https links are tagged.
No url column, a title row above the header, or no headerDoes not read the text as a CSV. A header line is flagged, and in each row the commas and the cells after them become part of the link. Make the header the first line and call the link column url.
Semicolons or tabs between columnsAlso not read as a CSV, so the values end up inside the link. Cells copied straight from a spreadsheet are separated by tabs: save the sheet as a comma-separated CSV and paste that.
A comma inside a cellStarts a new cell, so the values after it move one column to the right. Wrap the cell in double quotes.
A column it does not know, such as owner or campaign nameIgnores the column. With no campaign column, the Campaign field above the list is used.
An empty cellUses the field with the same name above the list. If that is empty too, the tag is not added.
No source in the row, the field or the linkFlags the row with No utm_source: add a source and leaves it out of the copied links.
A link that already has UTM tagsReplaces each tag that has a new value and keeps the others.
Capitals and spaces in a valueTurns spaces into hyphens, and lowercases unless you untick the box. Paid Social becomes paid-social, which Virling does not count as Paid. Write paidsocial.
Two links on one lineUsually reads them as one link and tags it without a flag. Put each link on its own line.
The same link twiceKeeps and tags both rows.
Blank rowsSkips them.

Name tags consistently and check the results

  • Agree the names before you tag. Pick one source per platform and a short, fixed list of mediums. The UTM naming template gives you a table to fill in and share.
  • Lowercase with hyphens. Newsletter and news letter become separate rows in most reports; this builder writes newsletter and news-letter. TikTok macros such as __CAMPAIGN_ID__ must stay in capitals, so make those links with the TikTok ads UTM builder.
  • Use utm_content to tell links apart. When one email or page has several links, give each a content value such as header-button or footer-link.
  • Do not tag links between your own pages. The tag replaces the visitor's real source.
  • Start from clean links. Remove old tags and click IDs with the URL cleaner before you paste your list.
  • Printing a link instead? The QR code generator with UTM tags makes one tagged code per placement.
  • Check the list before it goes out. Paste the tagged links into the UTM checker to catch capitals, spaces, missing mediums and tags after the #. To read the tags back into columns, use the bulk UTM parser.

For which parameters to use and why, read which UTM parameters to use to trace revenue.

questions

Bulk UTM builder FAQ

How do I add UTM tags to many links at once?

Paste the links one per line, fill in the source, medium and campaign, and copy all the tagged links. For different tags per link, paste a CSV with a url column and a column for each tag.

What CSV format does it accept?

A header row with a url column, plus any of source, medium, campaign, content and term, separated by commas. Cells with commas can be wrapped in double quotes, as spreadsheet exports do.

What happens to links that already have a query string or a #fragment?

The existing parameters are kept and the UTM tags are added after them. A fragment stays at the end of the link, after the tags, so analytics tools still read them.

What if a line is not a valid URL?

It stays in the results, marked as not a full URL, and is left out of the copied links. The CSV download keeps it with its error so you can fix it.

Are my links sent anywhere?

No. The links are built in your browser with plain JavaScript, and the CSV is created on your device.

See the revenue behind every tagged link

Tags tell you where a visit came from. Virling follows it to the payment: it links every visit to the payment it led to, so each campaign shows the customers and revenue it brought from real payments. 14 days free.

Start free trial See the demo