Does your redirect keep your UTM tags? How to check before a campaign goes out
The campaign went out, people clicked, and your analytics shows a jump in Direct traffic with nothing credited to the campaign. The tags were right when you built the link. Somewhere between the click and the page, a redirect threw them away.
Why redirects lose tags
UTM tags live in the query string, the part of the address after ?. When a server redirects a visitor, it sends back a new address, and only what's in that new address reaches the final page. A redirect rule written as "send /old to /new" often builds the new address from the path alone, so ?utm_source=newsletter&utm_medium=email is dropped silently. The page loads fine, which is why nobody notices.
Where it happens most
- http to https and adding or removing www, when they are set up as separate rules on an older server or a domain registrar's forwarding service.
- Trailing slash rules, such as
/pricingto/pricing/. - Old URLs moved after a redesign, where the redirect map was written by hand.
- Link-in-bio pages, shorteners and QR code services that wrap your link and pass on only part of it.
- Login or consent walls that send the visitor elsewhere first and back to a clean URL afterwards.
A chain makes it more likely: http://example.com/pricing may go to https, then to www, then add a slash. Each hop is another chance to lose the query string, and each one adds a round trip before the page starts loading.
How to check a link in seconds
Paste the exact link you're about to publish into the UTM link checker with "also open each link" ticked. It follows the redirects and tells you whether the final address still carries every tag. For the full picture of a chain, the HTTP status and redirect checker lists each hop with its status code, for up to 25 URLs at once.
You can also do it by hand: open the link in a private window and look at the address bar once the page loads. If the utm_ part is gone, so is your attribution.
How to fix it
- Link to the final URL. The simplest fix: use the https, www-or-not, slash-or-not address that the page actually lives at, so there's no redirect at all. This matters most for printed QR codes, which you can't change later.
- Make redirects keep the query string. Most servers and hosting platforms have an option for it, and some keep it by default. Check your platform's documentation for redirect rules and test again afterwards.
- Collapse chains into one hop. Send the old address straight to the final one instead of through each intermediate step.
- Re-test after every redesign. Redirect maps change, and a working link from last month may not work now.
Make it a habit
Checking takes less time than writing the post the link goes into. Run every campaign link, ad URL and QR code target through a checker before it goes live, and you'll never have to guess what a "Direct" spike was. If you track campaigns with measuremy.site, a tracked link that survives the redirect is credited to its campaign automatically, and your coding agent can report on it whenever you ask. More on naming tags in UTM tracking explained.
See it on your own site
measuremy.site is cookieless analytics your coding agent can read. 30-day free trial, no card. Plans from $9/month.
Start free trial See the live demoAdd measuremy.site analytics to this project: connect the measuremy.site MCP server at https://a.measuremy.site/mcp for all my projects (claude mcp add --scope user; it signs in with OAuth, no key, and one sign-in covers every site), then tell me how to sign in. Details: measuremy.site/llms.txt
Free tools
- Free UTM link builder: Add utm_source, medium and campaign to any link.
- UTM link checker: Find broken UTM tags and see which GA4 channel a link lands in.
- Link shortener with click tracking: Short links with a click count by day and country.
More from the blog
- How to calculate your website conversion rate, and what to compare it to
- Is my A/B test result significant? A plain-English guide with a worked example
- What is bounce rate, how is it calculated, and is yours a problem?
- How to add a visitor counter to your website or GitHub README
- How much traffic does a website get? How to estimate any site's visits
- How to track QR code scans: count them, and see which poster worked
- How to see how many people clicked your link (without a paid shortener)
- How to check if your Google Analytics 4 tag is installed (and only counting once)
- Why GA4 shows your campaign traffic as Unassigned (and how to fix the links)
- How I built a self-hosted analytics MCP server on Cloudflare Workers and D1
- UTM tracking explained: what the parameters mean and how to use them
- Conversion funnel analysis for small sites: a practical guide
- Sudden drop in website traffic? A checklist for finding the cause
- What is an MCP server? A plain-English guide for people who run websites
- Website analytics for indie hackers: what to watch and what to ignore
- Direct Traffic Explained: Why So Much Is Unknown
- Why a high bounce rate is not always bad
- High bounce rate: 8 causes and practical fixes
- How to Set Up Traffic Alerts for Sudden Drops
- How to Track Traffic From a Podcast
- How to measure the return on a paid ad campaign
- How to use analytics to decide what to write next
- How the Model Context Protocol Works
- Track File Downloads Without Guesswork
- Adding analytics to a Next.js app without slowing it down
- Core Web Vitals and Traffic: Is There a Link?
- Analytics After Cookies: What Actually Changes
- GDPR and website analytics: a practical guide for small sites
- How to Compare Website Analytics Tools by Privacy
- GA4 Events Explained for Beginners
- How to measure a newsletter send with UTM links
- How to track Hacker News traffic
- Adding Analytics to a Framer Site
- How to ask your coding agent about your analytics
- What Is Bounce Rate and How Is It Calculated?
- A practical website analytics retention policy
- Map your site's funnel from first visit to signup
- What Is a Good Bounce Rate?
- How to automate a weekly traffic report
- A Practical Privacy-Friendly Analytics Checklist
- Adding an MCP server to Claude Code
- How long should you keep analytics data?
- How to Build a Small MCP Server That Actually Helps
- How to Find the Biggest Drop Off in a Funnel
- What Is the Urchin Tracking Module?
- What Microsoft MCP servers actually do
- UTM parameters for email newsletters
- Track Button Clicks Without Google Tag Manager
- How to track the results of a social media post without cookies
- How to track traffic from a GitHub README
- How to measure a product launch without guessing