UTM Parameters Explained: Source, Medium, Campaign
UTM parameters are five (sometimes six) query keys you add to a landing URL so Google Analytics 4 can tell a newsletter click from a table-tent scan. The names are utm_source, utm_medium, utm_campaign, plus optional utm_term, utm_content, and utm_id. FlashKit’s UTM link builder concatenates the first five in this tab. It does not shorten the URL, does not host a redirect, and does not show a report.
Google’s Campaign URL Builder help lists Campaign source, Campaign medium, and Campaign name as required. Term, content, and Campaign ID are optional. That is the convention this page follows. Empty optional fields are omitted from the query string.
UTM parameters, one field at a time
utm_source is who sent the click: newsletter, instagram, qr-menu, partner-blog. People searching “utm source creator” mean this field.
utm_medium is the channel: email, social, cpc, offline. Keep a short, stable list so reports group cleanly. GA4’s default channel grouping matches medium values such as email → Email and social → Organic Social.
utm_campaign is the promotion name: spring-launch, black-friday. One campaign can have many sources.
utm_term is optional. Use it for a paid keyword or an audience slug, not as a second campaign name.
utm_content is optional. Use it to tell two creatives apart: table-tent vs window-sticker, or blue-btn vs green-btn.
utm_id is the optional Campaign ID in Google’s builder. FlashKit’s form does not have this box. If your GA4 property uses Campaign ID, append &utm_id=… on a URL you already tagged, or add the key in your own spreadsheet.
Required vs optional, and how the builder writes them
The FlashKit form has Landing page URL, then five fields. Hints on the form say source, medium, and campaign are required in practice. The code only writes a key when the trimmed value is non-empty, using the browser URL API’s searchParams.set. Existing non-UTM query parameters stay. Matching utm_* keys are overwritten.
Worked URL, using the form’s own defaults (landing https://www.example.com/offer, source qr-menu, medium offline, campaign spring-launch, content table-tent), produced by that same URLSearchParams path:
https://www.example.com/offer?utm_source=qr-menu&utm_medium=offline&utm_campaign=spring-launch&utm_content=table-tent
Spaces become + in the query (the URL standard for application/x-www-form-urlencoded). encodeURIComponent("qr menu") is qr%20menu; the builder uses the URL API, so a source typed as qr menu is stored as utm_source=qr+menu. Prefer hyphens so you never see either encoding in a report.
Create a UTM URL in this tab
Landing page, source, medium, campaign, optional term and content. Copy URL. Nothing is logged.
Open the UTM builderExample values you can copy
| Field | Example | Notes |
|---|---|---|
utm_source | newsletter | Who sent it |
utm_source | instagram | Organic profile or bio |
utm_source | qr-menu | Printed code |
utm_medium | email | Default channel: Email |
utm_medium | social | Default channel: Organic Social |
utm_medium | cpc | Paid search (with a search source) |
utm_medium | offline | No default-channel match; often Unassigned |
utm_campaign | spring-launch | One name per promotion |
utm_term | widget-price | Optional paid keyword |
utm_content | table-tent | Optional creative |
Case: lowercase only. Separators: hyphens. Do not mix Spring-Launch and spring-launch. After a click, GA4 → Reports → Acquisition → Traffic acquisition, Session source / medium. FlashKit cannot open that report for you.
Internal links, auto-tagging, and siblings
Do not tag site navigation. An internal utm_source=homepage overwrites the real source for the rest of the session. Google Ads clicks that already carry gclid should not get a second manual UTM set — that is how reports double-tag. Channel-by-channel recipes (email, Instagram, WhatsApp, QR) sit in how to add UTM codes to links. Twenty-five copy-paste URLs and a naming sheet are in UTM parameters examples. The older walkthrough of the form itself is create a UTM source URL for GA4.
Need a static QR of the tagged URL?
Encode the full tracked string. FlashKit does not add a redirect.
Open the QR generatorHow the FlashKit UTM builder actually concatenates
The component keeps a landing URL string and five campaign fields. On each keystroke it constructs a URL object, then calls searchParams.set for every non-empty trimmed field among utm_source, utm_medium, utm_campaign, utm_term, and utm_content. There is no utm_id input. Copy URL writes url.toString() to the clipboard. If the landing string is not a valid absolute URL, the tracked box stays empty or shows the parse failure — the builder does not invent a host.
Existing query keys that are not utm_* remain. A landing page https://www.example.com/offer?ref=homepage with source newsletter, medium email, campaign spring-launch becomes https://www.example.com/offer?ref=homepage&utm_source=newsletter&utm_medium=email&utm_campaign=spring-launch. Matching utm keys on the landing page are overwritten, so you can retag a URL that already had a stale campaign without stacking two utm_campaign values.
Spaces: URLSearchParams encodes a space as +. A source typed qr menu is stored as utm_source=qr+menu. encodeURIComponent("qr menu") would have been qr%20menu. Both decode to a space; reports look messy either way. Hyphens avoid the choice. Hash fragments stay on the URL object if you included one; campaign tags belong in the query, not in the fragment, if you want GA4 to see them on the request.
Reading the click in GA4
Google’s custom campaign help is the primary source for which builder fields exist. After someone opens the tagged URL, GA4 records Session source, Session medium, Session campaign, and related dimensions. Traffic acquisition grouped by Session source / medium is the usual first report. FlashKit cannot open that report, cannot confirm the hit arrived, and does not proxy the click.
Default channel grouping (GA4 default channels) is a separate layer on top of those dimensions. Medium email can class as Email. Medium social or social-media can class as Organic Social. Medium cpc with a search-like source can class as Paid Search. Medium offline matches no default rule, so the session is often Unassigned unless you add a custom channel group. That is why a QR table tent and a newsletter should not share one medium spelling if you want them in different default channels.
Campaign ID (utm_id) is documented on the same Campaign URL Builder page as an optional GA4 field. If your property uses it, append &utm_id= plus your id on a URL the FlashKit form already produced. Do not put the id in utm_content unless you want it in the content dimension instead.
Mistakes that split reports
- Two casings.
QR-Menuandqr-menuare two sources. GA4 campaign dimensions are case-sensitive. - Two separators.
spring_launchandspring-launchare two campaigns. Pick hyphens and keep them. - UTMs on a menu. An internal tagged click overwrites the session’s original source/medium. Leave site chrome untagged.
- Manual UTMs on Google Ads auto-tagging. Clicks that already carry
gclidshould not get a second handmade utm set. That is how paid search is double-counted. - Shortener you do not control. A vendor short link may add its own query keys later, or expire. Encode the full tracked URL in a static QR, or use a short domain you own.
- Tagging the wrong landing path.
/offerand/offer/can be two pages in analytics if your site does not canonicalise them. Paste the URL people actually open.
The form’s sample landing page is https://www.example.com/offer. That host is documentation, not a FlashKit property. Swap it for the https page you control before you print anything. Open the tagged URL once in a private window, read the query string in the address bar, then check GA4 only after a real click from the channel (email test send, story sticker, printed tent). Debug the share card with the Open Graph debugger; that tool fetches the page and does not read GA4.
Twenty-five copy-paste URLs live on the naming-conventions guide. Channel recipes (newsletter button, Instagram bio, WhatsApp message, table tent) live on the add-UTM-codes guide. This page is the dictionary: which keys exist, which Google marks required, how the FlashKit form writes them, and how GA4 reads them. Nothing here is a ranking promise. UTM tags credit a click. They do not make the landing page rank.