Meta Tag Generator
Meta Tag Generator that outputs clean, copy-ready code for better rankings.
Add campaign tracking tags to any link — source, medium and campaign — so Google Analytics can tell you where your clicks came from. Built live in your browser.
Your browser is preparing the tool. It runs 100% locally.
Enter a URL plus a source, medium and campaign, and the tool appends the matching utm_ parameters so Google Analytics can attribute the visit to that campaign. It URL-encodes each value, adds a question mark or ampersand as needed, and leaves out any field you skip. It tags the three core UTM parameters GA4 relies on; the two optional ones, utm_term and utm_content, are not included. It runs entirely in your browser.
Fill in your destination URL and the campaign details, and you get a tagged link to drop into an email, a social post or an ad. The three tags — utm_source, utm_medium and utm_campaign — tell Google Analytics which platform, channel and campaign sent each click, so traffic does not all collapse into a vague 'direct' or 'referral' bucket.
Values are URL-encoded as they are added, so a medium like paid social becomes paid%20social and the link stays valid. Any field you leave blank is omitted rather than written as an empty tag.
The tool reads your URL and the three fields, encodes each non-empty value with the browser's own URL encoder, and joins them as utm_source then utm_medium then utm_campaign. It checks whether your URL already has a query string: if there is no question mark it adds one, otherwise it appends with an ampersand, so the parameters attach correctly either way.
The three parameters map to the campaign dimensions in Google Analytics: source is where the click came from (newsletter, google, linkedin), medium is the channel type (email, cpc, social), and campaign is the initiative's name (spring-launch). GA4 reads these automatically — no extra setup in the property is needed.
https://example.com/page
?utm_source=newsletter
&utm_medium=email
&utm_campaign=launchhttps://example.com/page?utm_source=newsletter&utm_medium=email&utm_campaign=launchEmpty fields are dropped; the first parameter uses a question mark and the rest use an ampersand. If the URL already has a query string, every parameter uses an ampersand.
| Parameters written | utm_source, utm_medium, utm_campaign |
|---|---|
| Not included | utm_term, utm_content (optional) |
| Encoding | values URL-encoded (a space becomes %20) |
| Joiner | question mark for a clean URL, ampersand if it already has a query |
| Empty fields | omitted |
| Case | kept as typed — values are case-sensitive in GA4 |
| Where it runs | In your browser — nothing uploaded |
It writes the three core parameters — source, medium and campaign. The two optional ones, utm_term (a paid keyword) and utm_content (to tell apart two links in the same message), are not generated; add them by hand if a campaign needs them.
UTM values are case-sensitive in Google Analytics: Facebook and facebook show up as two separate sources. The tool keeps your text exactly as typed, so settle on a lowercase convention and stick to it to avoid split reports.
It encodes values but does not validate them. It will happily tag a malformed URL; check that your destination is correct and loads before sharing the tagged link.
If your URL contains a fragment (a # and an anchor), the parameters are appended after it, which is not where they belong. Tag URLs without a fragment, or move the fragment to the end yourself.
Tags are visible in the address bar and can be copied or stripped by anyone. Do not put anything private in a campaign value, and avoid tagging internal links on your own site, which can overwrite the original source in your reports.
Tag newsletter links so opens and clicks show up as their own source and medium.
Label links per platform to compare traffic from each network.
Mark campaign URLs so paid clicks are attributed to the right initiative.
Use consistent source and medium values to see which channels drive visits.
Need all five parameters or Google's reference behaviour? Google's own Campaign URL Builder adds utm_term and utm_content too. Want a shorter link to share? Run the tagged URL through a link shortener afterwards.
Writes the three core UTM parameters and URL-encodes each value; it is upfront that utm_term and utm_content are not included and that GA4 treats values as case-sensitive, so Email and email split into separate rows.
Meta Tag Generator that outputs clean, copy-ready code for better rankings.
Keyword Density Checker online — accurate, standards-compliant and free for SEO work.
Open Graph Generator that outputs clean, copy-ready code for better rankings.
SERP Snippet Preview online — accurate, standards-compliant and free for SEO work.
Schema Markup Generator online — accurate, standards-compliant and free for SEO work.
Robots.txt Generator online — accurate, standards-compliant and free for SEO work.
It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.