ToolSphere

UTM Campaign Builder

More tools

Free UTM builder for GA4: presets for Google Ads, Facebook and email, a channel check that catches Unassigned traffic, case warnings and bulk tagging.

UTM Builder

Tag campaign links for Google Analytics 4, with checks for the mistakes that split or hide your data.

Presets

GA4 will most likely file these visits under Paid Search.

Your campaign URL

https://example.com/landing-page?utm_source=google&utm_medium=cpc&utm_campaign=spring_sale

Canonical & hreflang tag generator

Prevent duplicate content penalties and declare regional/multilingual translations.

<link rel="canonical" href="https://toolsphere.in/tools/word-counter" />
<link rel="alternate" hreflang="en-US" href="https://toolsphere.in/us/tools/word-counter" />

On this browser only

Give feedback

Did this tool help?

Tell us what worked, what didn’t, or what you’d like next.

Opens Google Forms in a new tab with this tool’s name filled in. No sign-in or email required. Feedback is optional.

How to use UTM Campaign Builder

  1. 1Paste your destination page address into the Page URL field, or switch to Many URLs to tag multiple links simultaneously.
  2. 2Choose a preconfigured channel preset such as Google Ads, Facebook ad, or Newsletter to load standardized tracking parameters.
  3. 3Enter your primary campaign identifiers including utm_source, utm_medium, and utm_campaign, plus optional values like utm_id, utm_term, and utm_content.
  4. 4Review the predicted Google Analytics 4 default channel grouping output to ensure your sessions will not be categorized under Unassigned.
  5. 5Verify the alert box for any uppercase letters or whitespace warnings, then copy the complete tagged tracking link.

About UTM Campaign Builder

What UTM parameters do and when to use them

Urchin Tracking Module (UTM) parameters are query-string tags appended to destination web addresses. When visitors click a link containing these tags, web analytics platforms such as Google Analytics 4, Matomo, and Plausible read the key-value pairs to attribute the session to the precise marketing channel and campaign that generated the traffic.

Without UTM parameters, analytics platforms rely solely on the browser HTTP referer header. Referer headers frequently drop when visitors move from secure applications to web browsers, or when clicking links inside native mobile apps like Instagram, Slack, SMS messengers, and desktop email clients. In those common scenarios, analytics platforms record the session under Direct or as a generic domain referral. Applying structured UTM parameters ensures that every marketing channel, affiliate partner, and email newsletter campaign receives accurate revenue attribution and clear performance tracking in acquisition reports.

The six UTM parameters and their definitions

Google Analytics 4 recognizes six standardized UTM parameters. Each serves a distinct analytical purpose in distinguishing between traffic sources, delivery mechanisms, and creative assets:

Parameter Required Analytical Role Standard Example
utm_source Yes Identifies the platform, publisher, or partner sending the visit google, facebook, newsletter
utm_medium Yes Identifies the top-level delivery mechanism or marketing channel cpc, paid_social, email, referral
utm_campaign Recommended Names the specific marketing initiative or promotional launch devkit_launch_2026, spring_sale
utm_id Optional The campaign identifier used to import cost data into GA4 dk26, q4_ad_789
utm_term Optional Records the paid search keyword or audience segment targeted developer+tools, machine_learning
utm_content Optional Differentiates distinct creative variations, buttons, or placements top_banner_button, video_card_v2

The utm_source parameter represents the foundation of campaign tracking: GA4 ignores secondary UTM parameters if utm_source is omitted. The utm_medium parameter is equally crucial because GA4 relies on it to assign sessions to high-level default channel groups. The optional utm_id parameter connects external campaign activity with manual cost-data imports in Google Analytics, allowing teams to view return on ad spend across non-Google networks directly alongside organic metrics.

How GA4 default channel grouping works

Google Analytics 4 organizes incoming traffic into Default Channel Groups using predefined rule hierarchies. When your source and medium match recognized definitions, GA4 files the session into clean categories such as Paid Search, Paid Social, or Email. If your tags use unexpected terminology, GA4 fails to match any rule and dumps the traffic into Unassigned, creating reporting blind spots.

Our builder checks your inputs against standard GA4 channel criteria:

Source / Medium Combination GA4 Channel Classification Rule Trigger Criteria
google / cpc Paid Search Recognized search engine combined with cpc, ppc, or paid medium
facebook / paid_social Paid Social Recognized social platform combined with paid_social or paid medium
youtube / video Organic Video Recognized video host combined with video or organic medium
newsletter / email Email Either source or medium explicitly equals email
partner / affiliate Affiliates Medium explicitly set to affiliate
partner / banner Display Medium set to display, banner, cpm, or interstitial
linkedin / social Organic Social Social domain combined with standard social medium
promo / blast Unassigned Custom medium fails all predefined GA4 classification rules

Notice that custom words like blast, promo, or sponsored_post fail standard rule matching. Keeping your medium tags strictly aligned with recognized standards prevents messy channel reclassifications later.

Worked example: multi-channel campaign tagging

Consider an engineering software company launching a new development toolkit. The growth team coordinates promotion across three channels: an announcement email, a targeted LinkedIn sponsor post, and a Microsoft Bing search campaign.

To track each channel accurately while aggregating company-wide performance under a single umbrella campaign, the team constructs the following parameter sets:

First, the email newsletter announcement:

Second, the LinkedIn sponsored ad:

Third, a Bing paid search ad targeting an existing promotion page with an anchor fragment:

In the Bing example, the builder preserves the existing query parameter pricing=annual, URL-encodes the search keyword term, and positions all UTM parameters before the anchor hash fragment #calculator so browser navigation remains functional.

Bulk URL tagging for catalogs and schedules

Marketing workflows often require tagging dozens of web pages simultaneously, such as launching a site-wide discount across multiple category pages or scheduling social media calendars. Manually copying query strings into spreadsheets introduces typing mistakes, inconsistent casings, and broken delimiters.

The Many URLs mode allows you to paste a batch of web addresses, one per line. The tool validates every line individually, preserves existing queries and anchor fragments, strips duplicate UTM parameters, and generates ready-to-use tagged links for every destination. If an invalid or malformed URL is entered, the builder flags that specific line without disrupting the rest of the batch.

Best practices and common mistakes

  • Enforce strict lowercase conventions across all fields. GA4 treats Facebook, facebook, and FaceBook as three separate sources, fragmenting metrics across multiple report rows.
  • Replace spaces with underscores or hyphens. Raw spaces become percent-twenty sequences in web addresses and report tables.
  • Establish a company-wide taxonomy guide. When multiple team members produce marketing links, standardizing medium choices prevents accidental channel splitting.
  • Never place UTM tags on internal website navigation links. Clicking an internal link with UTM parameters terminates the visitor original session and starts a new artificial session, destroying historical attribution.
  • Avoid placing UTM parameters after a hash symbol (#fragment?utm_source=google). Browsers treat everything after a hash as a client-side anchor and never transmit it to the server, preventing analytics scripts from reading the campaign parameters.
  • Never store sensitive personal information such as customer names or email addresses in UTM parameters, which would violate privacy standards.

Related tools and guides

Explore our companion utilities to format, validate, and optimize your web campaigns:

Guides and tutorials

Frequently asked questions

Why is my UTM campaign traffic showing as Unassigned in GA4?

Google Analytics 4 categorizes traffic into default channel groups using strict rule matching on source and medium. If you enter non-standard medium values such as blast, post, or media, GA4 fails to match any channel rule and classifies the sessions as Unassigned. Using standard values like cpc, email, paid_social, and affiliate ensures proper attribution.

Are UTM parameters case-sensitive in Google Analytics?

Yes, UTM tags are completely case-sensitive in Google Analytics 4. Entering Facebook, facebook, and FaceBook creates three separate source rows in your acquisition reports, diluting your metrics. Always enforce lowercase conventions across all campaign tags to maintain clean data aggregation.

What is the core difference between utm_source and utm_medium?

The utm_source parameter identifies the specific platform or entity sending the traffic, such as google, linkedin, or newsletter. The utm_medium parameter identifies the high-level marketing channel or mechanism, such as cpc, paid_social, or email. Think of source as who sent the visitor and medium as how they arrived.

Can I use UTM parameters on internal links within my own website?

No, you should never place UTM parameters on internal site links such as header banners, sidebar widgets, or footer links. When a visitor clicks an internal link containing UTM tags, GA4 ends the existing session and starts a new one, completely overwriting the original external acquisition source.

Do UTM parameters impact search engine optimization or indexing?

UTM tags do not directly benefit or hurt organic search rankings, but they can create duplicate content issues if search crawlers index tagged URLs. To protect SEO, ensure your site implements canonical tags pointing to the clean base URL, and configure your robots directives properly.

Should I manually add UTM parameters to Google Ads campaigns?

Most Google Ads advertisers should rely on automated gclid auto-tagging rather than manual UTM parameters. Auto-tagging passes comprehensive bidding, keyword, and match-type data directly into GA4 without risk of manual typing errors. Manual tagging is primarily useful for non-Google ad networks like Bing or Meta.

How should I handle spaces and special characters in UTM tags?

Avoid spaces and special symbols in UTM parameters because web browsers convert them into percent-encoded entities like percent-twenty, making reports difficult to read. Use hyphens or underscores as consistent word separators, and stick to alphanumeric characters throughout.

Where should UTM parameters go if a URL already has a hash fragment?

UTM query parameters must always appear before the hash symbol, directly attached to the path or existing query string. Browsers do not send query parameters placed after an anchor hash to web servers or analytics scripts, which causes your campaign tracking data to be lost completely.

What is the utm_id parameter used for in Google Analytics 4?

The utm_id parameter specifies a unique campaign identifier that corresponds to external advertising campaign IDs. It enables digital marketing teams to upload external ad cost, click, and impression data via CSV into GA4, allowing side-by-side return on ad spend calculations.

How can I verify that my UTM-tagged link is working before publishing?

Paste the tagged link into an incognito browser window, open your browser developer tools network tab, and confirm that the landing page loads successfully. Then check the GA4 Realtime overview report under Traffic source to verify that your source and medium appear as expected.

Have a suggestion for UTM Campaign Builder?Share your feedback ↗