Loona Automation logoLoona Developer Tools
Home › Developer Tools › UTM Link Builder

UTM Link Builder - Campaign URLs That Analytics Can Read

In short: the UTM Link Builder appends utm_source, utm_medium, utm_campaign and optional term/content parameters to any URL with correct percent-encoding, preserves query parameters already on the URL, and keeps a small history in your browser.

Untagged campaign links all show up as 'direct' in analytics. Tag them properly here - encoding handled, existing parameters kept, and your recent links saved locally.

Saved history (this browser only)

Private by design: everything in this tool happens 100% in your browser with JavaScript. Your input is never uploaded to a server, never stored and never seen by us - close the tab and everything is gone.

How to use the UTM Link Builder

  1. Paste the base URL of your landing page.
  2. Fill source (where from), medium (what kind of link) and campaign (which push) - the three standard fields.
  3. Add term or content only when you need to tell two links in the same campaign apart.
  4. Click Build, copy the tagged URL, and use it in your post, ad or email.

How it works

The builder uses the browser's standard URL parser, so encoding is exactly right: spaces become %20 (or + in query values per URLSearchParams rules), ampersands inside a value can never split into fake parameters, and any query string already on the base URL - like ?ref=nav - is preserved, with existing utm_ values for the same key replaced rather than duplicated. A #fragment stays at the very end, after the parameters, as URLs require. History is stored only in your browser's localStorage (last 20 links), never sent anywhere.

Naming tip

Pick a convention and never vary it: lowercase, hyphens instead of spaces, and the same source names every time (facebook, not FB or Facebook) - analytics treats every spelling as a different source.

Frequently Asked Questions

Is this builder free?

Yes - completely free, no sign-up.

Which UTM fields are required?

By convention: source, medium and campaign. Term (paid keywords) and content (telling two creatives apart) are optional.

What happens to parameters already on my URL?

They are preserved. If the URL already has a utm_source, the new value replaces it instead of duplicating the parameter.

Where is the history stored?

Only in your own browser (localStorage), up to 20 links. Clearing it or switching browsers removes it.

Should I use UTM tags on internal links?

No - tagging links inside your own site overwrites the original session source in analytics. UTMs are for inbound links from outside.

Related Developer Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.