On this page
- Key Takeaways
- Why internal campaign tags deserve investigation
- Find UTM parameters on internal links
- Option 1: Filter a crawl or CMS export
- Option 2: Inspect a representative page in the browser
- Document and prioritize the findings
- Fix the link, then test the attribution question
- Common Mistakes
- Best Practices
- Conclusion
UTM parameters on internal links can make campaign attribution harder to interpret. Before year-end reporting, check whether navigation links add campaign tags after a visitor has already arrived from an external campaign. This workflow shows how to find those links, document them, and test a fix without removing tags from incoming campaign URLs.
Key Takeaways
- An internal link with UTM parameters may introduce another campaign signal during a visitor’s journey. The reporting effect depends on the analytics provider, configuration, and attribution scope.
- Inventory both the page containing the link and its destination, including the tag names and values. Check templates as well as individual pages.
- Remove unnecessary campaign tags from internal links—not from external campaign URLs or incoming landing-page requests.
- Test changes on staging or a representative page, then compare analytics behavior before applying them broadly.
Why internal campaign tags deserve investigation
UTM parameters are query parameters commonly used to describe a campaign, such as utm_source, utm_medium, and utm_campaign. They are useful on links from emails, advertisements, and other external placements. Inside a site, the same parameters can introduce a new signal after the original visit has begun.
Consider this illustrative journey, not a prediction of a particular report:
- A reader clicks an email link to
https://example.com/guide?utm_source=newsletter&utm_medium=email&utm_campaign=annual_review. - On the guide page, they click an internal footer link to
https://example.com/pricing?utm_source=site_nav&utm_medium=internal&utm_campaign=footer. - They complete an inquiry on the pricing page.
Depending on the analytics system and its settings, the internal tags might affect how a later page view, event, session, or conversion is attributed—or they might not change the report being examined. User acquisition, session acquisition, and event or conversion attribution are different questions; do not assume they all use the same campaign signal.
Google Analytics limitation: Current Google Analytics documentation and provider-specific behavior were not verified for this article. Before interpreting or correcting a Google Analytics report, consult the current Google documentation for your property’s campaign attribution and the specific report and scope you use. Confirm the behavior in your own property rather than assuming the example above will overwrite an attribution value.
Advertisement
Find UTM parameters on internal links
Choose a manageable page set first: campaign landing pages, high-traffic pages, and pages using shared headers, footers, or promotional modules are useful candidates. For a larger site, export links from a crawl or CMS and apply the same checks. A single tagged template can create many affected links.
Option 1: Filter a crawl or CMS export
Export or assemble rows containing at least the source page URL and the link destination. Then:
- Resolve relative destinations against the source page. For example,
/pricing?utm_source=site_navis an internal link when it resolves to the site being reviewed. - Keep destinations on the domains and subdomains your organization considers internal. Review cross-domain journeys separately if they cross analytics properties or configurations.
- Parse the destination query string and flag parameter names beginning with
utm_, including unexpected capitalization or custom UTM names. - Record each source page, destination, tag names and values, link location, and suspected template or content owner.
- Review duplicates: a footer link appearing on hundreds of pages may have one shared source in the CMS.
A crawl can miss links rendered only after interaction, behind authentication, or by client-side code. A CMS export can miss links generated by templates or scripts. Check those areas separately.
Option 2: Inspect a representative page in the browser
On a page you are authorized to inspect, open the browser’s developer console and paste the following JavaScript. It reports rendered links that point to the same origin—the same scheme, hostname, and port—and contain at least one parameter whose name starts with utm_.
const taggedLinks = Array.from(document.querySelectorAll('a[href]'))
.flatMap((link) => {
try {
const destination = new URL(link.getAttribute('href'), document.baseURI);
if (destination.origin !== location.origin) return [];
const tags = Array.from(destination.searchParams.entries())
.filter(([name]) => name.toLowerCase().startsWith('utm_'));
if (tags.length === 0) return [];
return [{
source: location.origin + location.pathname,
destination: destination.origin + destination.pathname,
tags: JSON.stringify(tags),
linkText: link.textContent.trim().replace(/\s+/g, ' ').slice(0, 120)
}];
} catch {
return [];
}
});
console.table(taggedLinks);
The snippet has not been executed for this article. Run it after the page and any relevant navigation have loaded, then repeat on other representative pages. It does not follow links, inspect pages automatically, or detect other internal domains and subdomains. The source and destination columns omit query strings and fragments; the tags column records the detected UTM names and values. Review and redact sensitive information before sharing console results or exports.
Advertisement
Document and prioritize the findings
Create an inventory with one row per distinct source-and-destination combination, or group repeated template links while retaining example pages. Useful columns include:
- Source page and link location: for example, guide page, footer.
- Destination and UTM values: for example, pricing page;
utm_source=site_nav,utm_campaign=footer. - Owner and source: shared template, CMS module, or individual page.
- Evidence: crawl row, export record, or inspection date and page.
- Action and status: remove tags, investigate an intentional exception, or retest after deployment.
Prioritize links on conversion paths and shared templates, then investigate unusual tags with the analytics and site owners. Preserve a dated copy of the inventory so report reviewers can understand what was found and when changes were made. Finding a tagged link alone does not establish that historical reports were affected.
Fix the link, then test the attribution question
For an ordinary internal navigation link, remove unnecessary campaign parameters from the link destination while preserving the intended path, any functional non-campaign parameters, and any required fragment. For example, a link to /pricing?utm_source=site_nav&utm_campaign=footer may become /pricing if those are its only unnecessary parameters. Confirm the destination still works.
Do not solve this by indiscriminately stripping UTM parameters from incoming campaign links or landing-page requests. Those tags may be needed to measure the external campaign. Avoid global URL rewriting unless it has been separately reviewed and tested for analytics and application effects.
Use a staging environment with suitable analytics isolation, or a controlled representative page and test property where available:
- Record the current link and analytics configuration. Confirm what data is collected and which report or fields you intend to compare.
- Reproduce an external campaign arrival using clearly identifiable test values, then follow the tagged internal link and perform a non-production test action. Record the sequence and timestamps without using real customer data.
- Remove the internal tags and repeat with a fresh, comparable test journey. Keep the external campaign tags intact.
- Compare the relevant page or event data and the appropriate acquisition or attribution report, allowing for the provider’s processing delays. Check consent settings, filters, sessions, and report scope before drawing conclusions.
- Verify that the changed link reaches the intended destination and that unrelated query parameters and fragments still work. After deployment, sample the changed templates and rerun the inventory.
Analytics settings, consent, caching, and differences between staging and production can limit what a test proves. If the observed result is unclear, involve the analytics owner and consult the provider’s current documentation before changing reporting conclusions.
Common Mistakes
- Treating every destination with UTM tags as an internal-link problem. Identify the source of the link; an external campaign link is a different case.
- Assuming one report proves all attribution scopes changed. Inspect the specific session, user, event, or conversion question relevant to the report.
- Removing every query parameter. Some parameters support site functionality or legitimate measurement.
- Fixing only a single page. A shared template or CMS module may reintroduce the same tags elsewhere.
- Overlooking the audit’s blind spots. Authenticated pages, client-rendered links, and other internal domains may require separate inspection.
Best Practices
Maintain a documented convention for external campaign tagging and a separate way to measure internal promotions where needed. Assign ownership of shared navigation, keep the inventory with the reporting review, and retest after template or analytics changes. When an internal campaign tag has an intentional purpose, document that purpose and verify its effect in the relevant analytics system before removing it.
Conclusion
Finding UTM parameters on internal links is a practical pre-reporting check, not proof of an attribution error. Inventory the links, distinguish them from incoming campaign URLs, and test changes against the specific analytics reports your organization relies on.
What would your domain sell for?
A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.