Meta Tag Generator
Fill four fields and copy a block of head meta tags.
Add campaign tracking tags (source, medium and campaign) to any link so Google Analytics can tell you where your clicks came from. The link builds 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. All of it happens 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 the traffic does not all land in a vague 'direct' or 'referral' bucket.
The tool URL-encodes values as it adds them, so a medium like paid social becomes paid%20social and the link stays valid. A field you leave blank is left out, not 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, with no extra setup in the property.
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 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 still 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.
For all five parameters or Google's reference behaviour, Google's own Campaign URL Builder adds utm_term and utm_content too. For 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 leaves out utm_term and utm_content, and GA4 treats values as case-sensitive, so Email and email split into separate rows.
Fill four fields and copy a block of head meta tags.
Top words in your content and the share each one takes.
Write the og: tags that control link previews on social apps.
See roughly how a title and description could look in Google.
schema.org JSON-LD for articles, products, FAQs and more.
Set crawler and AI-bot access and point to your sitemap.
It's free, needs no account, and nothing you enter is sent to a server.