Check 41.18 · Tracking and analytics setup

Use available UTM parameters

Use the UTM parameters added by AI assistants and tag your own links (Google profile, emails, social) with a clean convention, without harming SEO.

Priority
Critical
Difficulty
Easy
Estimated time
1 to 2 h, then ongoing
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

UTM (Urchin Tracking Module) parameters are the utm_source, utm_medium, utm_campaign and following parameters added to a URL to say where the visit comes from. This task has two parts: reading the UTM parameters that others already add to your links, such as ChatGPT with utm_source=chatgpt.com, and tagging the links you control (Google Business Profile, emails, social networks, partners) according to a written convention. Once it is done, these visits leave “Referral”, “Direct” or “Unassigned” and are placed in the right channel.

Why it matters

Without UTM parameters, the analytics tool guesses the source from the referrer passed by the browser. This guess often fails: an email opened in an app arrives without a referrer and falls into direct traffic; a click from the Google Business Profile gets mixed with classic organic results; a link in a PDF or a message has no referrer at all.

UTM parameters solve these cases, provided they are consistent. Google Analytics 4 (GA4) places a visit in a channel based on the exact value of utm_medium: email goes into “Email”, social into “Organic Social”, ai-assistant into “AI Assistant”. A case mistake or an invented medium (newsletter, Mail) sends the visit to “Unassigned”. Values are case-sensitive: utm_source=google and utm_source=Google make two rows.

On the SEO side, UTM parameters have a cost if they are badly placed: each URL variant is a separate address for crawlers. Placed on internal links or in sitemaps, they create duplicates and distort attribution.

What it improves

  • Attribution Fewer visits in direct and “Unassigned”, more visits in the right channel.
  • Separating local from organic Clicks from the Google Business Profile can be told apart from classic results.
  • Measuring AI traffic Visits tagged by assistants remain identifiable even without a referrer.
  • Comparing actions Each campaign, newsletter or partnership has its own figures.
  • Rankings No effect. Misused, UTM parameters create duplicate URLs that need canonicalizing.

How to check

  1. In GA4, Reports > Acquisition > Traffic acquisition, dimension “Session source / medium”, 90 days. Spot the mediums that match no channel (newsletter, Email, fb, gmb) and the rows in “Unassigned”.
  2. Switch the dimension to “Session campaign”: names must follow a single convention (lowercase, hyphens).
  3. Open a page with ?utm_source=test&utm_medium=test added to the URL and check that no redirect removes the parameters: the final URL in the address bar must contain them.
  4. Inspect the source code of a tagged page: the canonical tag must point to the URL without parameters.

How to implement

Step 1 — Spot the UTM parameters already present

Some services add UTM parameters to their outbound links themselves. ChatGPT commonly adds utm_source=chatgpt.com to the links in its answers; other services do the same or may start doing so. To list them in GA4, create a free-form exploration:

  • Dimensions: “Session manual source”, “Session manual medium”, “Session campaign”.
  • Rows: the three dimensions; Values: “Sessions”, “Key events”.

Any row whose manual source is not (not set) comes from a tagged URL. utm_source=chatgpt.com visits without utm_medium can fall into “Unassigned”: your AI channel must catch them with a condition on the source. See create a dedicated channel for AI traffic (opens in a new tab).

In Matomo, open Acquisition > Campaigns. Matomo recognizes its own mtm_ parameters as well as utm_ parameters.

Step 2 — Write the convention

A page in your measurement documentation, shared with anyone who creates links:

Parameter Role Rule Examples
utm_source Who sends the visit Name of the site or tool, lowercase google, newsletter-mensuelle, linkedin, partenaire-dupont
utm_medium Channel type Only values recognized by GA4 organic, email, social, referral, affiliate, cpc
utm_campaign Operation yyyy-mm-topic, hyphens, no accents 2026-11-guide-chaudiere, fiche-gbp
utm_content Link variant Placement or visual bouton-haut, lien-signature
utm_id Campaign ID Optional, for cost imports c2611

Mapping between utm_medium and GA4 default channels:

utm_medium GA4 channel
organic Organic Search
email, e-mail Email
social, social-network, social-media, sm Organic Social
referral, link, app Referral
affiliate Affiliates
ai-assistant AI Assistant
cpc, ppc, paid… (with a search engine source) Paid Search

The social and organic mediums do not require a list of sources; paid mediums do. Check the full list of rules in GA4 Help before inventing a medium.

Placement Tagged URL
Website link in the Google Business Profile https://www.example.com/?utm_source=google&utm_medium=organic&utm_campaign=fiche-gbp
Profile's appointment link https://www.example.com/rendez-vous/?utm_source=google&utm_medium=organic&utm_campaign=fiche-gbp&utm_content=rdv
Bing Places listing https://www.example.com/?utm_source=bing&utm_medium=organic&utm_campaign=fiche-bing-places
Newsletter https://www.example.com/guides/entretien-chaudiere/?utm_source=newsletter-mensuelle&utm_medium=email&utm_campaign=2026-11-guide-chaudiere
Company LinkedIn post https://www.example.com/etudes/barometre-2026/?utm_source=linkedin&utm_medium=social&utm_campaign=2026-11-barometre
Email signature https://www.example.com/?utm_source=signature&utm_medium=email&utm_campaign=signature
QR code on a brochure https://www.example.com/devis/?utm_source=plaquette&utm_medium=print&utm_campaign=2026-salon

The organic medium for the Google profile keeps these visits in organic search while making them filterable by campaign. Details for local listings are in add UTM parameters to the Business Profile (opens in a new tab). The print medium is not recognized by GA4: these visits will go to “Unassigned” unless you add a custom channel for this medium.

To generate the URLs, use Google's Campaign URL Builder or a spreadsheet formula. In Google Sheets, with the destination URL in A2, the source in B2, the medium in C2 and the campaign in D2 (French locale settings):

=A2&IF(ISNUMBER(SEARCH("?";A2));"&";"?")&"utm_source="&ENCODEURL(LOWER(B2))&"&utm_medium="&ENCODEURL(LOWER(C2))&"&utm_campaign="&ENCODEURL(LOWER(D2))

In French-language Excel: SI, ESTNUM, CHERCHE, URLENCODAGE, MINUSCULE. Keep a tab that lists every URL created, with its date, placement and author.

Step 4 — Protect SEO

  • Never put UTM parameters on internal links. A tagged link from the menu or an article to another page of the site replaces the real source of the visit with yours.
  • Never in signals meant for crawlers: sitemaps, canonical tags, hreflang, structured data, the llms.txt file.
  • Canonical without parameters. Each page must declare its clean URL; this is the default on WordPress with Yoast SEO or Rank Math, on Shopify and on most CMSs. See use self-referencing canonicals where relevant (opens in a new tab).
  • Redirects that keep the query string. The usual rules (return 301 https://$host$request_uri; on Nginx, RewriteRule on Apache without the QSD flag) keep it; some redirect plugins or CDN rules remove it. Test as in point 3 of “How to check”.
  • Do not ask sites that cite you spontaneously to add UTM parameters. An untagged editorial link is already classified as “Referral” with the right domain; a UTM adds nothing and lengthens the URL that others copy.

Warning: UTM parameters do not serve to influence an AI assistant. Adding parameters to URLs published on third-party sites in the hope of being cited has no documented effect and only multiplies URL variants.

Step 5 — Read the results

  • By channel: Reports > Acquisition > Traffic acquisition, dimension “Session default channel group”.
  • By campaign: same report, dimension “Session campaign”, with “Key events” and “Total revenue”.
  • Local listing: filter “Session campaign” equal to fiche-gbp and landing page as a secondary dimension.
  • Matomo: Acquisition > Campaigns, with campaign names and keywords.

Every quarter, review the list of mediums present and fix at the source any links that do not follow the convention.

Common mistakes

  • Tagging internal links, home page banners included: the real source of the visit is overwritten.
  • Inventing mediums (newsletter, gmb, post): GA4 sends them to “Unassigned”.
  • Mixing upper and lower case: Email and email make two separate rows.
  • Putting UTM parameters in the sitemap or the canonical: crawlers explore duplicate URLs.
  • A redirect that removes the parameters, for example when moving from HTTP to HTTPS or adding a trailing slash.
  • Tagging the Google profile with utm_medium=referral: visits leave organic search and the link between local visibility and visits is lost.
  • Not recording the links created: six months later, nobody knows what a campaign corresponds to.

Frequently asked questions

Do UTM parameters harm SEO?

No, not if they stay on external links and each page declares a canonical tag pointing to its URL without parameters. Google then groups the tagged variants with the clean URL. UTM parameters become a problem when they appear on internal links, in the sitemap or in the canonical: crawlers explore duplicates and the analytics tool misattributes visits.

Why does utm_source=chatgpt.com show up in the statistics?

ChatGPT commonly adds the utm_source=chatgpt.com parameter to the links it shows in its answers. GA4 and Matomo read this parameter as a campaign source, which makes it possible to identify the visit even when the browser does not pass a referrer. Without utm_medium, the visit can end up in Unassigned: a condition on the source in your AI channel reclassifies it.

Updated on

Topic checklist (PDF)

And now?

In the “Tracking and analytics setup” topic

  1. Set up Google Search Console
  2. Verify the domain property via DNS
  3. Set up Bing Webmaster Tools
  4. Set up GA4, Matomo or an equivalent
  5. Set up Google Tag Manager if needed
  6. Check data collection
  7. Handle applicable consent requirements
  8. Track conversions, forms and quote requests
  9. Track phone and email clicks
  10. Track downloads and sign-ups
  11. Track purchases
  12. Set up cross-domain tracking if needed
  13. Fix duplicate conversions
  14. Exclude internal traffic if relevant
  15. Identify organic and AI landing pages
  16. Create a dedicated channel for AI traffic
  17. Identify ChatGPT, Perplexity, Gemini, Copilot and Claude referrers
  18. Use available UTM parameters
  19. Connect analytics to the CRM if relevant
  20. Measure lead quality and revenue
  21. Document the limits of attribution
  22. Set up Consent Mode v2 if you use Google tags