---
title: "How to create UTMs and measure campaigns in Google Analytics"
description: "Create UTM links for email, social media and QR codes. Learn to name campaigns, validate URLs and separate external acquisition from internal promotions."
url: "https://cookingmetrics.com/blog/crear-utms-medir-campanas-google-analytics/"
markdown_url: "https://cookingmetrics.com/blog/crear-utms-medir-campanas-google-analytics.md"
lang: "en"
date_published: "2026-12-03"
author: "Martín Garay"
author_url: "https://cookingmetrics.com/about-martin-garay/"
publisher: "CookingMetrics"
publisher_url: "https://cookingmetrics.com/"
keywords: ["Google Analytics", "MarTech"]
citation_apa7: "Garay, M. (2026, December 3). *How to create UTMs and measure campaigns in Google Analytics*. CookingMetrics. https://cookingmetrics.com/blog/crear-utms-medir-campanas-google-analytics/"
---

# How to create UTMs and measure campaigns in Google Analytics

> Create UTM links for email, social media and QR codes. Learn to name campaigns, validate URLs and separate external acquisition from internal promotions.

- **Author:** [Martín Garay](https://cookingmetrics.com/about-martin-garay/) · Founder of CookingMetrics
- **Published:** December 3, 2026
- **Topics:** Google Analytics, MarTech
- **Web version:** https://cookingmetrics.com/blog/crear-utms-medir-campanas-google-analytics/

## How to cite this article (APA, 7th edition)

Garay, M. (2026, December 3). *How to create UTMs and measure campaigns in Google Analytics*. CookingMetrics. https://cookingmetrics.com/blog/crear-utms-medir-campanas-google-analytics/

In-text citation: (Garay, 2026)

---

A [CookingMetrics](https://cookingmetrics.com/) 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](https://support.google.com/analytics/answer/11242870?hl=en).

This approach draws on two suggestions from Martín Garay: centralize links in a [UTM Builder spreadsheet](https://www.martingaray.com.ar/analytics/free-utm-builder-template-google-spreadsheet/) and establish criteria before [measuring campaign attribution](https://www.martingaray.com.ar/analytics/como-medir-atribucion-de-tus-campanas/). The examples below develop an original procedure for the current Analytics workflow.

[Prepare a campaign report — GA4 Report Generator](https://app.cookingmetrics.com/ga4-report-generator/)

## 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](https://support.google.com/analytics/answer/10917952?hl=en) explains the supported parameters and recommends including source, medium, and campaign when tagging URLs.

## Establish a convention before generating links

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](https://support.google.com/analytics/answer/10917952?hl=en).

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](https://support.google.com/analytics/answer/9756891?hl=en) 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](https://developer.mozilla.org/en-US/docs/Web/API/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](https://support.google.com/analytics/answer/12923437?hl=en) and [Manual report](https://support.google.com/analytics/answer/14264492?hl=en).

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](https://support.google.com/analytics/answer/10917952?hl=en).

The guide [How to create reports for traffic sources, campaigns, and UTMs](https://cookingmetrics.com/blog/informes-fuentes-trafico-campanas-utms/) explains the setup. To prepare a report with the generator and finish saving it in Analytics, consult the [GA4 Report Generator manual](https://cookingmetrics.com/blog/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](https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?client_type=gtag#apply_promotions).

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](https://cookingmetrics.com/blog/medir-home-banners-ga4-promociones/).

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](https://support.google.com/analytics/answer/9191807?hl=en).

## Check the link before distributing it

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](https://support.google.com/analytics/answer/6366371?hl=en).

## 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](https://support.google.com/analytics/answer/11242870?hl=en).

### 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](https://support.google.com/analytics/answer/13682862?hl=en).

### 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](https://cookingmetrics.com/blog/ga4-report-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.*

---

## About the author

**[Martín Garay](https://cookingmetrics.com/about-martin-garay/)** — Founder of CookingMetrics

I'm Martín Garay, founder and Martech Advisor at CookingMetrics and Chair of the Technology Committee at CACE, Argentina's ecommerce chamber. For more than 20 years I've worked in Analytics, development, technical SEO and ecommerce: I implement measurement, find where it breaks and turn it into information you can act on.

### My work at CACE, Argentina's ecommerce chamber

- **Chair of the Technology Committee** (SINCE AUGUST 2025): I set the committee's agenda together with Gabriel Topola, vice-chair. We look at the platforms and tools an online business needs to grow: CMS, integrations, customer service and omnichannel operations.
- **Curating the technical forum** (IT CAMP · ECOMMERCE DAY ARGENTINA): With CACE's Events team I put together the IT Camp programme: talks for engineering and development teams on platform architecture, code and good practice, given by speakers who do the implementation work.
- **Marketing and Data Analytics committees** (SINCE 2016): I started in the Marketing committee and helped create the Data Analytics committee. I gave Google Analytics webinars, including the migration to GA4, and worked on the Google Analytics implementation for Hot Sale and Cyber Monday.
- **Ecommerce metrics dashboard** (FOR MEMBERS): With the Data Analytics committee and the CACE Community team we built a dashboard in Google Analytics and Looker Studio so each member can check the key indicators of their own store.

### Talks

- [From SEO to GEO: what it takes for a brand to be cited by an answer engine](https://www.youtube.com/watch?v=mlyjuSBdMzI) — ECOMMERCE DAY ARGENTINA 2026 · IT CAMP · AUGUST 27, 2026 · BUENOS AIRES CONVENTION CENTER
- [SEO for AI: how to prepare a brand to show up in ChatGPT and Google's AI overviews](https://www.youtube.com/watch?v=4dI7jqnLg-M) — AI IN LATAM 2025 · BUENOS AIRES · OVER 3,500 ATTENDEES AND 100 SPEAKERS, PER THE ORGANIZERS

### Profiles and links

- [Full profile](https://cookingmetrics.com/about-martin-garay/)
- [LinkedIn](https://www.linkedin.com/in/seospecialistmartingaray/)
- [Instagram](https://www.instagram.com/garaymartin/)
- [YouTube](https://www.youtube.com/@MartinGaray)
- [martingaray.com.ar](https://www.martingaray.com.ar/)
- [Chair of the Technology Committee at CACE, Argentina's ecommerce chamber](https://cace.org.ar/pages/comision-de-tecnologia?utm_source=cookingmetrics.com&utm_medium=referral&utm_campaign=perfil-martin&utm_content=caja-autor)
- [Ecommerce metrics dashboard, free for CACE members](https://cace.org.ar/pages/dashboard-de-metricas?utm_source=cookingmetrics.com&utm_medium=referral&utm_campaign=perfil-martin&utm_content=caja-autor)

---

## About CookingMetrics

CookingMetrics provides Google Analytics consulting, measurement implementation and SEO. Founder Martín Garay brings more than 20 years of experience in Analytics, development and ecommerce. The work connects data with business decisions.

### Services

- **[Google Analytics audit](https://cookingmetrics.com/data-analytics-consulting/)**: Do purchases or revenue differ from your store? We review your measurement and deliver a correction plan in 10 business days. [See the audit scope](https://cookingmetrics.com/data-analytics-consulting/).
- **[Google Tag Manager](https://cookingmetrics.com/services/gtm/)**: Did events stop being tracked after a website change? We review tags, triggers and versions to find duplicates or missing data. [Ask about Google Tag Manager audits and implementation](https://cookingmetrics.com/services/gtm/).
- **[Server-side measurement](https://cookingmetrics.com/services/cookieless-tracking/)**: We assess how to send data from your server, respect consent and prevent duplication. [What's included in server-side measurement](https://cookingmetrics.com/services/cookieless-tracking/).
- **[Technical SEO](https://cookingmetrics.com/services/technical-seo/)**: Have you migrated your site, or are pages missing from Google? We review crawling, indexing, structure and performance. [How we approach technical SEO](https://cookingmetrics.com/services/technical-seo/).
- **[SEO for AI search (GEO)](https://cookingmetrics.com/services/seo-ai-geo/)**: We review whether search engines and assistants can access your pages and understand their content. [What we can improve for AI search](https://cookingmetrics.com/services/seo-ai-geo/).

**Let's talk about your measurement:** [Contact us](https://cookingmetrics.com/about-martin-garay/) · [CookingMetrics](https://cookingmetrics.com/)
