The short answer

Start with the destination URL. Add campaign parameters as name=value pairs in its query string, joined by ampersands. Keep your source, medium and campaign names consistent, encode values correctly and test the final landing URL. Use the free UTM Builder to assemble your link.

You launch a campaign, open GA4 and find several versions of the same campaign name. Or the link is tagged, but the traffic does not appear where you expected.

The problem might be a typo, an inconsistent name or a redirect that removes the parameters. It might also be the report you are looking at. Before adding more tags, check the link and the measurement path.

This guide separates URL syntax, Google's recommendations and your team's naming conventions. They are related, but they are different decisions.

Why small link mistakes make campaigns harder to read

Someone copies last month's link and changes the campaign. Another person types the source from memory. A third uses a different separator. All three links can open the correct page while producing inconsistent campaign labels.

For example, spring_sale and spring-sale are different strings. If both are meant to identify the same promotion, the naming inconsistency makes comparison harder.

A misspelled key such as utm-source is not the standard utm_source field. A misplaced # puts the following text inside a fragment instead of the query string. These are reasons to inspect a link, not proof that every affected visit will become Direct.

Start with your last five campaign links. Check the destination, parameter names, values and final URL after redirects. Fix the repeatable process as well as the individual link.

The official UTM link format

Here is an example you can adapt:

https://www.example.com/sale?utm_source=facebook&utm_medium=paid_social&utm_campaign=spring_sale_2026q2

Read it in four parts:

  1. Destination: https://www.example.com/sale is the page people should reach.
  2. Query separator: ? starts the query string.
  3. Parameters: each name is paired with a value using =.
  4. Joining character: & separates one parameter from the next.

Parameter names must be correct. Keep one value per campaign field rather than repeating the same key with competing values. A builder is useful because it assembles the URL without requiring everyone to remember the punctuation.

Official rules vs house rules

Your team needs a standard, but it should not present every preference as a Google requirement.

Decision What determines it? Practical choice
Exact UTM parameter names Google's campaign tagging specification Use utm_source, not utm-source.
Query strings and encoding URL syntax Preserve existing parameters and encode each value.
Lowercase values Google recommends lowercase; values are case-sensitive Use lowercase consistently.
Hyphens or underscores Team naming convention Pick one separator for campaign names.
Campaign naming structure Team reporting needs Agree the initiative, period and optional region.
Approved source and medium values Team taxonomy and GA4 channel definitions Keep a shared list and check channel classification.

Write these decisions into one short naming guide. For example, your team could choose initiative_period_region, such as spring_sale_2026q2_us. That is a proposed convention, not a mandatory GA4 format. A smaller team may need fewer components.

For the official parameter list and lowercase recommendation, see Google's campaign URL guide.

How to type each parameter

The following worksheet gives your team a place to define values before launch.

Parameter Meaning Example or decision
utm_source Traffic origin facebook or customer_newsletter
utm_medium Marketing medium paid_social, cpc or email
utm_campaign Campaign name spring_sale_2026q2
utm_id Campaign identifier Match the ID used in campaign data imports.
utm_source_platform Platform directing the traffic Use a consistent, documented platform label.
utm_content Creative or link variation header_cta or carousel_v2
utm_term Paid keyword Use the actual applicable keyword value.

Include source, medium and campaign together. Add other relevant fields deliberately. If you use campaign cost imports, coordinate the campaign ID with that import workflow.

Google also lists utm_creative_format and utm_marketing_tactic, but says they are not currently reported in Analytics properties. Do not design an essential report around them without confirming current support.

For your internal taxonomy, avoid treating a paid audience label as an official definition of utm_term. If your team uses that field beyond paid keywords, document the convention so another person can interpret it.

Check the medium in context. GA4's default channels use rules involving source, medium and other information. A custom medium can lead to Unassigned when no rule matches. A recognized-looking medium alone does not guarantee a particular channel. Review Google's default channel definitions before standardizing your list.

Spaces, special characters and encoding

Spaces can be represented in a URL through encoding. %20 and, in form-style query serialization, + can represent a space. A space is not automatically evidence of broken tracking. MDN explains how URLSearchParams serializes query values.

For day-to-day naming, a simple value such as spring_sale_2026 is easier for a team to type and review than several variations of “Spring Sale 2026.” That is a consistency decision rather than a claim that spaces are forbidden.

Characters such as &, # and % have special meanings. If they are part of a value, a URL builder must encode them correctly. For example, a literal ampersand in a campaign name cannot be left unescaped, because it would look like a parameter separator.

Enter plain values into a builder that handles encoding. Do not manually encode a value first and then encode it again. Do not encode the whole destination URL as though it were one parameter value.

Keep personal information out of campaign names. Do not include email addresses, names, phone numbers or customer identifiers in UTMs. Use campaign labels that make sense without identifying a person. See Google's guidance on avoiding personally identifiable information.

Existing query strings and hash fragments

Some destination URLs already contain a parameter, such as ?color=black. Keep that parameter and join the UTMs with an ampersand:

https://shop.example.com/product?color=black&utm_source=facebook&utm_medium=paid_social&utm_campaign=spring_sale_2026q2

Adding a second question mark is the wrong joining method. It can become part of a value rather than starting the new campaign field you intended.

A fragment begins with #. Place the query string before it:

https://example.com/page?utm_source=customer_newsletter&utm_medium=email&utm_campaign=review_push_2026q2#reviews

Text after # belongs to the fragment, not the URL query. A special application could interpret it, but you should not rely on that for ordinary campaign tagging. If your website uses hash-based routes, test its behavior rather than assuming a standard builder can resolve every routing requirement. MDN documents URI fragments.

These links use example domains. Replace the destination and campaign labels before publishing them.

Paid social campaign

https://shop.example.com/collections/new?utm_source=facebook&utm_medium=paid_social&utm_campaign=spring_sale_2026q2&utm_content=carousel_v2

Email newsletter

https://shop.example.com/?utm_source=customer_newsletter&utm_medium=email&utm_campaign=spring_sale_2026q2&utm_content=header_cta

Google Ads campaign

https://shop.example.com/?utm_source=google&utm_medium=cpc&utm_campaign=brand_search_2026&utm_content=ad_v1

This is a manual-tagging illustration. Keep an appropriate Google Ads auto-tagging setup enabled. UTMs do not replace the linked account data or click identifiers used by that integration. When manual and automatic tagging coexist, GA4 applies its traffic-source precedence rules. Read Google's manual and automatic tagging guidance.

If you want dynamic campaign or keyword values, use the advertising platform's supported placeholders in the correct field and test their expansion. Do not paste another platform's macro syntax into a live ad and assume it works.

QR code on a packaging insert

https://shop.example.com/?utm_source=packaging_insert&utm_medium=qr&utm_campaign=post_purchase_2026q2

Here, qr is an example house convention. It is not a promise of a recognized default GA4 channel. Decide how offline campaigns should be grouped, and use an appropriate custom channel group if needed.

Step 1: Choose the final destination

Open the intended landing page and check where it redirects. Keep parameters needed for the page to work. Replace old campaign values deliberately so last month's promotion does not remain in the new link.

Step 2: Open your naming standard

Use a shared list for sources, mediums and campaign names. Choose the values before assembling the URL. A campaign owner should be able to explain the name without asking the person who built the link.

Step 3: Fill in the core campaign fields

Add source, medium and campaign together. Follow the agreed casing and separator. Use a date or region only when it helps your team distinguish campaigns.

Step 4: Add useful detail

Use content for creative variants or link positions. Add other relevant fields when you have a reporting purpose for them. More parameters do not automatically produce a more useful report.

Step 5: Build the URL

Open the free UTM Builder. Enter the destination and your approved values, then review the generated link. Check that existing query parameters and any fragment remain in the correct places.

Step 6: Test the full journey

Open the generated URL in a fresh test session, use the appropriate consent state and follow the redirects. Inspect the final landing URL and the collected page location. A private window alone does not guarantee a clean measurement test, because consent settings, blockers and existing attribution context can affect the result.

Use GA4 DebugView for collection checks where debug mode is enabled. Then inspect the relevant acquisition dimensions after processing. Do not expect every UTM value to appear in every report or expect a second campaign click inside an existing session to create a new session. Google documents DebugView and GA4 sessions separately.

If the link is correct but acquisition still looks wrong, investigate redirects, consent, tag delivery and reporting scope. This belongs in a conversion tracking audit, rather than another round of renaming campaigns.

Step 7: Save the approved link

Log the destination, campaign, channel, final URL, launch date and owner. Keep the row as the reference when someone asks which link was used. Review the result after launch and correct the naming standard when a recurring ambiguity appears.

UTM building FAQ

What is the correct format for a UTM link?

Place name=value pairs in the destination URL’s query string, separated by ampersands. Use ? to start a query, or & to extend an existing one. Keep any # fragment after the query string.

Which UTM parameters does GA4 support?

The campaign guide lists source, medium, campaign, ID, source platform, term, content, creative format and marketing tactic, using their utm_ parameter names. Google currently says creative format and marketing tactic are not reported in Analytics properties. An arbitrary custom parameter is not automatically a GA4 campaign dimension.

Which UTM parameters are required?

Use source, medium and campaign together as the core campaign fields, and include other relevant parameters. This is practical tagging guidance, not a claim that a URL with fewer fields cannot open. Match campaign IDs when using campaign data imports.

Can I use spaces in UTM values?

Yes, when encoded correctly. Spaces may be represented as %20 or + in query strings. Simple names with one agreed separator can make team workflows easier, but spaces are not inherently invalid. Avoid double encoding.

Should I use hyphens or underscores?

Either can work in a value. Pick one naming convention and use it consistently. spring-sale and spring_sale are different campaign labels.

Does parameter order matter?

Distinct UTM fields do not need a particular order. A consistent order is useful for review. Avoid repeating a field with competing values.

Are UTM values case-sensitive in GA4?

Yes. Keep casing consistent to avoid separate labels for the same intended campaign. Google recommends lowercase values.

Where do UTMs go when the URL has a hash fragment?

Place them in the query string before the # fragment. Text after # is part of the fragment, so it is not an ordinary query parameter. Test websites with hash-based routing separately.

Check your next campaign link

Agree the names, build the URL and test the landing journey before launch. You will have a clearer record of what each link was meant to measure and a better starting point when a report looks wrong.

Build your next campaign link

Use your approved campaign names in the free UTM Builder, then check the final URL before sharing it.

Open the UTM Builder ↗

Already seeing mislabeled traffic? Request a free tracking audit ↗

Related reading

Related: GA4 ecommerce tracking service · Kijir case study · Tracking Health Checker.

Sources and further reading

Technical references checked on 30 October 2026. Examples are illustrative and contain no client results.