TrackFunnels

UTM Parameters

Chapter 11 — Tools for Generating UTM-Tagged URLs

Shad Malik
By Shad Malik Updated on Feb 17, 2026

UTM builders stop small syntax mistakes from becoming big attribution leaks. Use a tool that always encodes values, appends parameters with the correct separator, and preserves your base URL and fragments.

Myth Debunk:
The order of UTM parameters does not affect how analytics tools read them. Platforms parse by key names, not position. A consistent order is still useful for faster QA.

Generators prevent encoding and separator errors at scale

Hand-typing UTMs is slow and fragile. Reliable generators:

  • Place ? and & in the right spot, even when a URL already has parameters.
  • URL-encode values so spaces, accents, and symbols do not break links.
  • Output a clean, copy-ready link you can hand to channel owners with confidence.

For a SaaS team building five LinkedIn ads to one webinar page, a builder avoids typos that would fragment campaign data across multiple mislabeled sources.

The tool landscape that can speed tagging

Category Example tools What they do When to use
Web-based builders (free) Google Campaign URL Builder; TrackFunnels UTM Link Builder (Free) Form fields for source/medium/campaign; outputs a tagged URL One-off links from a browser
Browser extensions Popular “UTM builder” add-ons for Chrome/Firefox Grab current page URL, open a popover, copy the result Tagging as you browse content
Platform ad builders Meta “URL parameters”; LinkedIn “URL parameters” Append UTMs per ad/ad set; supports dynamic macros Launching paid campaigns in-platform
Spreadsheet templates Google Sheets/Excel with formulas Bulk-generate many URLs fast Campaign kits and partner packs

What happens under the hood of every generator

  • You supply a destination URL.
  • You enter the UTM values (source, medium, campaign, and any optional ones).
  • The tool encodes the values and appends them with the correct separator. If there is already a query string, it uses &. If there is none, it starts with ?.
  • If a #fragment exists, it keeps it at the very end of the URL.

A content marketer can paste a whitepaper link that already includes ?ref=nav and still get a valid output that adds &utm_source=linkedin without breaking the original parameter or the page anchor.

Google’s Campaign URL Builder: a fast baseline in a browser

Go here: Google Campaign URL Builder

Steps:

  1. Paste your website URL.
  2. Fill Campaign Source (e.g., linkedin), Medium (e.g., paid-social), and Campaign Name.
  3. Optionally add utm_term and utm_content.
  4. Copy the generated URL and test it in a new tab.

Example:

https://acmeindustrial.com/resources/iot-security-whitepaper?utm_source=linkedin&utm_medium=paid-social&utm_campaign=iot_security_wp_q3&utm_content=ad_variation_a

This drops straight into LinkedIn Campaign Manager for sponsored content to a gated asset.

The free version of TrackFunnels UTM Link Builder allows you to not only generate UTM links but also save them in your Free account, so you can always come back for review and QC.

Open the TrackFunnels UTM Link Builder.

Steps:

  1. Enter the destination URL.
  2. Starts with Channel Grouping. UTM Link Builders are tied to attribution and categorize traffic into channels based in GA4 channel grouping. When you choose a channel grouping first, the utm_medium values auto-populates with the right values that would apply to this channel. All you have to do is choose one of those values.
  3. Choose a preset or type source/campaign.
  4. Optionally add term/content and custom parameters like utm_id.
  5. Generate, preview, and copy.
  6. Save your link to your account.

Example:

https://acmeindustrial.com/demo?utm_source=email&utm_medium=outbound&utm_campaign=q3_demo_pilot&utm_content=seq_step3

Sales teams can reuse the same CTA link pattern across outreach steps, cutting copy errors.

Tag from the page you are on with browser extensions

  • Detect the current tab’s URL, open a small form, and copy the tagged link in one click.
  • Ideal for social and PR teams who create links while reading the live page.

When choosing an extension, confirm it URL-encodes values, handles existing query strings correctly, and offers one-click copy plus simple presets. A comms manager can tag a new product blog as source=partner-newsletter, medium=email, and paste the link into a partner brief in seconds.

Use ad platform parameter fields for dynamic macros

  • Meta Ads: In “URL parameters,” use a template such as utm_source=facebook&utm_medium=paid-social&utm_campaign={{campaign.name}}. Macro syntax varies by platform.
  • LinkedIn Ads: In the ad’s “URL parameters,” set your UTM template at campaign level so each creative inherits the same structure.

A performance marketer can enforce one pattern across every ad in an ABM campaign without retagging each creative.

Spreadsheet templates for clean bulk generation

Use a simple Google Sheets layout:

  • Col A: Base URL
  • Col B: utm_source
  • Col C: utm_medium
  • Col D: utm_campaign
  • Col E: utm_term (optional)
  • Col F: utm_content (optional)
  • Col G: Output formula

Paste this into G2 (Google Sheets) and fill down:

JAVASCRIPT
= A2 &
  IF(REGEXMATCH(A2,"\?"),"&","?") &
  "utm_source=" & ENCODEURL(B2) &
  "&utm_medium=" & ENCODEURL(C2) &
  "&utm_campaign=" & ENCODEURL(D2) &
  IF(E2<>"","&utm_term=" & ENCODEURL(E2),"") &
  IF(F2<>"","&utm_content=" & ENCODEURL(F2),"")

The formula adds ? or & as needed and encodes values. A field marketer can produce 30 partner-ready links to the same webinar page in minutes.

Formatting problems these tools prevent

  • Starting a second “?” when the base URL already has parameters.
  • Skipping URL encoding for spaces, diacritics, or symbols.
  • Inconsistent parameter order that slows down debugging.
  • Forgetting optional parameters your team depends on for channel clarity.

If a link already has ?ref=nav, a proper builder adds &utm_source=linkedin instead of breaking the URL with another ?.

Features that separate reliable builders from risky ones

  • URL encoding of each value (not whole-string only).
  • Correct handling of existing query strings and #fragments.
  • One-click copy and a short preview.
  • Support for custom parameters beyond the standard five.
  • Lightweight presets/templates to reduce retyping.

An events marketer benefits from a preview pane that proves the page still loads with parameters attached.

  • Pre-filled links: Send teammates to a builder with base URL and common fields already filled. Example pattern (for illustration): https://ga-dev-tools.web.app/campaign-url-builder/?url=https%3A%2F%2Facmeindustrial.com%2Fwebinar&utm_source=linkedin&utm_medium=paid-social
  • Bookmarklets: A browser bookmark that grabs the current page’s URL and opens your preferred builder with it inserted. Ideal for social and content workflows.
TrackFunnels Expert Tip:

Stress-test any builder with three cases:

  1. A URL that already has a query string,
  2. A URL with a #fragment, and
  3. Values containing spaces or “/”. If any output drops the fragment, starts a second “?”, or fails to encode, do not deploy it team-wide.

Choose the lightest tool that enforces correct structure

Pick the simplest option that guarantees encoding, separator correctness, and fragment safety: a trusted web builder for one-offs, an extension for on-page tagging, ad platform templates for paid media, or a spreadsheet for bulk work. If you want saved presets and faster previews, the TrackFunnels UTM Link Builder is optimized for that workflow.

Try This Now Assignment
  • Copy this base URL: https://example.com/page?ref=nav#pricing
  • Use any generator to add utm_source=linkedin, utm_medium=paid-social, utm_campaign=q3_launch.
  • Paste the result in your browser bar. Confirm:
  • Only one “?” is present.
  • New parameters are joined with “&”.
  • The #pricing fragment is still at the very end.
  • Spaces are encoded as %20 or +.
  • Optional: Remove the fragment from the base URL and repeat to see the difference.

Test your knowledge

Loading quiz questions...