How to create UTMs and measure campaigns in Google Analytics

By Martín Garay

A CookingMetrics guide to adapting Google Analytics reports to the work of your team.

To create a UTM-tagged link, add parameters to the destination URL that identify its source, medium, and campaign. Then publish that URL in the appropriate external channel and check that Google Analytics receives the data. Tagging lets you distinguish, for example, a newsletter link from one published on Instagram, even when both lead to the same article.

The task has two parts: create consistent links and build a report that explains what happened to that traffic. This guide connects both, with examples for email, social media, and QR codes. The example.com URLs are illustrative examples; replace them with the actual destination before using them.

Key takeaways

  • Source, medium, and campaign need a shared convention; changing capitalization or names fragments results.
  • The parameters identify external links. Banners and links within the website need interaction or promotion events.
  • Creating UTMs does not install Analytics, record a purchase, or guarantee that every click becomes a measured session.
  • Analysis continues through acquisition and manual campaign dimensions; GA4 Report Generator helps prepare the report, not generate UTMs.

Before writing a URL: define the question

A useful operational question is: “Which newsletter placement generated sessions with a contact request?” To answer it, keep the same campaign across its links and distinguish each placement with utm_content.

If the question is “Which channels participated in the journey before a purchase?”, tagging alone is not enough: the report's scope and attribution also need review. A session's source and the credit assigned to a key event describe different perspectives. Google distinguishes these scopes in its documentation on traffic-source dimensions.

This approach draws on two suggestions from Martín Garay: centralize links in a UTM Builder spreadsheet and establish criteria before measuring campaign attribution. The examples below develop an original procedure for the current Analytics workflow.

Promotional content · CookingMetrics

Which campaign brought those sessions?

From traffic source to campaign.

Prepare an acquisition report with session dimensions to review traffic tagged with UTMs.

Prepare a campaign report Analytics access and permissions are managed separately.

What each UTM parameter means

For a simple campaign, define these three fields first:

  • utm_source: source. Identifies the origin, such as newsletter, instagram, or cartel_local.
  • utm_medium: medium. Describes the channel type, such as email or social. Choose it according to how the link is actually used.
  • utm_campaign: campaign. Groups an initiative, for example guia_analytics_2026.

Add other parameters when they support a decision:

  • utm_content: content or variation. Can distinguish boton_principal from enlace_texto within the same mailing.
  • utm_term: term. Identifies keywords in manually tagged paid campaigns; it does not reveal organic Google queries by itself.
  • utm_id: campaign identifier. Define it when the campaign import or reconciliation process requires it.

Do not fill every field with arbitrary values. The custom campaign documentation explains the supported parameters and recommends including source, medium, and campaign when tagging URLs.

As an editorial guideline, we recommend lowercase letters, names without spaces, and a consistent separator, such as an underscore. Maintaining a dictionary prevents different people from using Newsletter, newsletter, and boletin for the same source.

Simple names make the team's work easier; this does not mean accented characters are technically prohibited. What matters is encoding values correctly and maintaining stable naming. Google treats values with different capitalization as different values. UTM best practices.

A shared register can have one row per link: destination, source, medium, campaign, content, final URL, owner, date, and publication placement. Archiving campaigns makes it possible to reuse conventions without accidentally reusing another initiative's URL.

The medium name also influences channel classification. email, social, and cpc are not interchangeable labels. An invented value may fall outside the default channel group's rules. Check the official channel definitions before adopting a team-wide convention.

Create a UTM-tagged URL step by step

  1. Copy the final URL and check that it opens the correct page.
  2. Define source, medium, and campaign according to the shared register.
  3. Add content if placements or creatives will be compared.
  4. Generate the URL with a builder or spreadsheet that encodes each value.
  5. Open the result and verify that redirects preserve the parameters.
  6. Save the final URL in the register and publish that exact version.

The first parameter starts with ?; subsequent parameters are separated by &. This example identifies a newsletter's main button:

https://example.com/guia-analytics/?utm_source=newsletter&utm_medium=email&utm_campaign=guia_analytics_2026&utm_content=boton_principal

If the destination already contains a query, preserve it and append the UTMs with &:

https://example.com/catalogo/?categoria=analitica&utm_source=newsletter&utm_medium=email&utm_campaign=guia_analytics_2026

Do not add a second ?. Also avoid concatenating unencoded values containing &, #, or spaces: they could be interpreted as part of the URL structure. Parameter-building tools such as URLSearchParams handle that encoding.

If a fragment is needed to reach a section, place it after the parameters:

https://example.com/guia-analytics/?utm_source=newsletter&utm_medium=email&utm_campaign=guia_analytics_2026#ejemplos

Test the complete link: reaching the correct section matters just as much as preserving the tags.

Three examples for real campaigns

Newsletter: compare two placements

Keep newsletter / email and guia_analytics_2026. Create one URL with utm_content=boton_principal and another with utm_content=enlace_texto. The difference identifies the link's placement, not the person who received it.

In the report, compare sessions and the relevant action for each variation. If volumes are small or placements receive different exposure, a difference in results does not prove that a button's design caused the improvement.

Social media: separate the link's origin

For an organic Instagram post, one example is:

https://example.com/guia-analytics/?utm_source=instagram&utm_medium=social&utm_campaign=guia_analytics_2026&utm_content=bio

For a paid campaign, use a convention that represents advertising and supports the intended classification; do not copy social without reviewing the context. If the advertising platform's dynamic macros are used, test the resulting URL: an unresolved macro becomes an unhelpful label.

QR code: distinguish printed materials

A QR code can contain a URL like this:

https://example.com/guia-analytics/?utm_source=cartel_local&utm_medium=qr&utm_campaign=guia_analytics_2026&utm_content=mostrador

qr is a proposed team convention, not a guarantee of membership in a default channel. It may require a custom channel group. A source/medium report lets you analyze that value even when the grouping differs. Before printing, scan the code with a phone and review the actual destination.

How to view UTMs in Google Analytics

Start at Reports → Acquisition → Traffic acquisition and choose session dimensions, such as Session source / medium and Session campaign. To review manual tagging specifically, use the Manual report and dimensions such as Session manual campaign name or Session manual ad content. The available menu may vary with the published collections. Traffic acquisition report and Manual report.

Filter for the exact campaign, choose a date range that includes it, and compare sessions with engaged sessions. Add key events only after checking that they represent the action being evaluated.

Do not look for UTMs only in Landing page + query string or Page path + query string: Google documents that they are omitted from these dimensions. The complete URL may appear in Page location, while the tags populate campaign dimensions. How UTM parameters are handled.

The guide How to create reports for traffic sources, campaigns, and UTMs explains the setup. To prepare a report with the generator and finish saving it in Analytics, consult the GA4 Report Generator manual.

Why homepage banners need a different approach

UTMs describe external acquisition. A homepage banner instead raises the question of which promotion was shown and which received an interaction within the site.

For ecommerce promotions, Google defines view_promotion and select_promotion, along with fields such as promotion ID, name, and placement. These events require an appropriate implementation; adding a UTM to the link does not replace it. Ecommerce promotion measurement.

We recommend keeping internal links clean and measuring interactions with events. To explore that case, continue with How to measure the homepage and its banners with GA4 promotions.

Avoid an overbroad explanation: an internal UTM does not mean GA4 necessarily starts another session. Session attribution and campaign information collected by events have different scopes. This is precisely why acquisition and internal interactions should be kept separate. How sessions work.

The review should cover the complete journey, not just syntax:

  • Destination: opens the expected page on mobile and desktop.
  • Parameters: there is only one version of each UTM, and values match the register.
  • Redirects: the published link, shortener, and destination preserve the tags.
  • Measurement: Analytics is installed, and the test respects the consent configuration.
  • Reception: events are checked during testing, followed by dimensions in processed reports.
  • Privacy: URLs contain no email addresses, phone numbers, customer names, or personal identifiers.

Google prohibits sending information it could recognize as personally identifiable, including in campaign parameters. Use creative names or general segments; never each recipient's email address. Analytics privacy recommendations.

Frequently asked questions about UTMs

Do I need a different landing page for each source?

Not to distinguish the link's origin. Several tagged URLs can point to the same page. Create separate destinations only when the experience, message, or offer justifies them.

Do UTMs work if Analytics is not installed?

The URL may open correctly, but its parameters do not install measurement. The site must collect and send the relevant data. They do not automatically generate purchase or contact-request events either.

Why do email clicks differ from sessions?

They are different measurements. A click may not complete the page load, several interactions may belong to one session, and collection depends on implementation and consent. Review the link and date range before attributing every difference to a UTM error.

Should UTMs be added to Google Ads?

If the Google Ads integration is used, review auto-tagging first. Do not remove or replace the gclid without assessing the effect. Google documents how manual and automatic tagging coexist and which takes priority; UTMs do not replace all the dimensions available through the integration. Manual tagging and auto-tagging.

What does (not set) mean in a campaign?

That the dimension has no value available in the context being queried. Investigate missing parameters, redirects, dimension scope, and collection. Not all visits have manual campaigns, so an artificial UTM should not be used to fill every absence.

Can I correct historical data by changing a UTM?

Changing the link affects its subsequent use; it does not rewrite events already collected. Document the correction date and consider both names when comparing the affected period.

Does a UTM reveal organic search keywords?

No. utm_term contains the value sent in the link. For Google Search queries, consult Search Console or its Analytics integration; do not interpret a manual term as a person's actual query. Search Console Queries report.

Does GA4 Report Generator also build UTM links?

No. Its role in this workflow is to prepare links that open a report configuration in Analytics. Campaign URLs are created and validated first; the generator is then used to organize the reading of collected data. The generator manual explains this workflow and its requirements.

Documentation consulted on November 24, 2026. The examples are illustrative and do not represent results from real campaigns.

Contents

Ready to prepare your next report?

Open GA4 Report Generator