Last updated 26 November 2026. By Paul Badarau.
The template is https://example.com/page?utm_source=SOURCE&utm_campaign=CAMPAIGN. Replace the address, SOURCE and CAMPAIGN, and keep everything else as it is.
A fictional yoga studio links its December newsletter to the evening section of its classes page. The page is https://example.com/classes and the section is #evening. The finished link is https://example.com/classes?utm_source=newsletter&utm_campaign=december-classes#evening.
Check each link against this list before you send it:
- The address is the final one, on https and on the hostname your Project uses or one of its aliases. A redirect from another address can drop the query string, and pages on hostnames the Project does not list are not collected.
- The first parameter follows ?, and every later one follows &. If the address already has
?ref=spring, add&utm_source=newsletterafter it. - Values are short and lowercase, with hyphens for spaces:
december-classes, not December Classes. Letters, digits and hyphens need no encoding. Any other character, such as a space or an ampersand inside a value, must be percent-encoded. A space is %20 and an ampersand is %26. - The tracker keeps the first 100 characters of each value.
- The #section comes after the query, never before it. Analytics drops the fragment, so the section does not appear in reports.
- Keep
utm_medium,utm_contentorutm_termonly if another tool on your site reads them. PostDeploy Analytics ignores them.
To test the link, open it in a browser that sends no Do Not Track or Global Privacy Control signal, because new Projects drop those visits. In the Project report for Today in PostDeploy Analytics, the source breakdown should list newsletter and the campaign breakdown should list december-classes.
A tag labels only the visit that opens the link. Someone who returns the next day by typing the address counts under the source of that later visit. Anyone the link is forwarded to arrives tagged as newsletter too, because the full address stays in their browser.
The product page for this is Analytics.