Skip to content
FunnelGuard

Fix guide by FunnelsGuard

UTMs overwritten by internal links with UTM tags: how to fix

TRK-317Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

UTM parameters are tags added to a URL, such as utm_source=google&utm_medium=cpc&utm_campaign=spring. They tell analytics where a visitor came from. They are meant for links on other sites, emails and ads, not for links between your own pages.

The problem starts when someone tags an internal link, for example a homepage banner like /pricing?utm_source=homepage&utm_medium=banner. A visitor who arrived from a Google ad clicks it. The new URL carries new UTMs, and analytics treats them as the latest campaign details. The original Google Ads source is replaced, and often a new session starts too (see TRK-318).

Why it costs you leads or sales

The lead or sale still happens, but the credit goes to the wrong place. Paid campaigns look weaker than they are, and "homepage / banner" looks like your best channel. You may then cut ad budget that was working and fund the wrong thing.

How an internal UTM link steals the credit
  1. Ad clickutm_source=google, utm_medium=cpc
  2. Landing pageVisitor sees a banner
  3. Internal link with UTMsutm_source=homepage replaces google
  4. Form or checkoutConversion recorded
  5. ReportCredit goes to homepage / banner

The ad click is real, but the conversion is credited to the internal banner.

Where conversions get creditedExample numbers
Where conversions get credited (example)Ads credited (no internal UTMs): 100 conversions; Ads credited (with internal UTMs): 55 conversions; Banner credited (with internal UTMs): 45 conversions038771005545Ads credited (no inte…Ads credited (with in…Banner credited (with…conversions

Example: 100 conversions that really came from one ad campaign, as reported with and without internal UTM links.

How to check if your site has it

Find internal links that carry UTMs
  1. Search your site for utm_ in links

    Open a key page, view the page source (Ctrl+U or Cmd+Option+U) and search for utm_. Any hit in an href that points to your own domain is a problem.

  2. Check menus, banners, pop-ups and footers

    These are the usual places. Also check buttons in page builders, announcement bars, blog call-to-action blocks and email-signup widgets.

  3. Crawl the site

    Use a crawler such as Screaming Frog (Custom Search for utm_ in the HTML) to list every page with tagged internal links.

  4. Test the journey yourself

    Visit your site with ?utm_source=test&utm_medium=check&utm_campaign=manual, click through to the form or checkout, and watch whether the address bar UTMs change.

  5. Look at GA4 for clues

    In Reports > Acquisition > Traffic acquisition, a source or medium that matches your own banner names (such as homepage / banner) with conversions is a sign.

UTMs replaced mid-journey

The original campaign tags disappear as soon as the internal tagged link is clicked.

How to fix it

The fix has two parts: strip the UTMs from internal links, then measure those clicks a better way.

Fix internal UTM links
  1. List every tagged internal link

    Use the crawl or source search above. Note the page, the link text and the current URL.

  2. Remove the utm_ parameters

    Edit each link so it points to the clean URL, for example /pricing instead of /pricing?utm_source=homepage&utm_medium=banner.

  3. Track the click as an event instead

    Send a GA4 event such as select_promotion or a custom banner_click with a parameter naming the banner. This records the click without touching attribution.

  4. Keep UTMs for external links only

    Use them on ads, emails, social posts and partner links. Agree a rule with your team and write it down.

Where to remove the tags
  1. Edit pages and menus

    Check Appearance > Menus, widgets, and the block or page-builder content for links containing utm_. A plugin like Better Search Replace can find utm_source=homepage in the database; back up first.

Track a banner click as an event, not a UTMhtml
<a href="/pricing" data-banner="home_hero">See pricing</a>

<script>
document.addEventListener('click', function (e) {
  var link = e.target.closest('a[data-banner]');
  if (!link) return;
  window.dataLayer = window.dataLayer || [];
  window.dataLayer.push({
    event: 'banner_click',
    banner_name: link.getAttribute('data-banner')
  });
});
</script>
Internal link before and after

Before

  • Link: /pricing?utm_source=homepage&utm_medium=banner
  • Ad source replaced by homepage / banner
  • Ads look weak in reports

After

  • Link: /pricing
  • Original google / cpc source is kept
  • Banner clicks measured by a banner_click event

How to confirm it's fixed

Verify with a manual test
  1. Land with test UTMs

    Open a private window and visit your page with ?utm_source=test&utm_medium=check&utm_campaign=internal-link-test.

  2. Click the formerly tagged links

    Check that the address bar no longer shows new utm_ values.

  3. Check GA4 DebugView

    Turn on debug mode with Tag Assistant or the GA debug extension. Confirm the session keeps source test, and that your banner_click event appears.

  4. Re-run the crawl

    Search again for utm_ in internal links. The result should be empty.

How to prevent it happening again

Prevention checklist
  • Write a rule: UTMs only on links that lead to your site from outside.
  • Give the team a banner and button tracking method that uses events.
  • Review new banners, pop-ups and email-signup blocks before they go live.
  • Crawl the site for utm_ in internal links every month.
  • Use a shared UTM naming sheet so campaign tags stay consistent (see TRK-319).

How FunnelGuard handles this

FunnelGuard does not check for this yet. Spotting internal links that overwrite UTMs is a possible future check.

Nearby, FunnelGuard runs your real customer journeys on a schedule, checks each step, and checks that tracking hits reach platforms such as GA4, Google Ads and Meta, and that test leads reach your inbox and CRM. That confirms the funnel works and tracking fires, but it does not tell you which source a conversion was credited to.

To watch for this issue today, run the manual test above after each site change, crawl for utm_ in internal links monthly, and review GA4 traffic acquisition for sources that match your own banner names. A free read-only website audit from FunnelGuard is also available.

Questions people ask

Why is my campaign source changing to my own website in GA4?

A link on your site probably carries its own utm tags. When a visitor clicks it, the new UTMs replace the ones they arrived with, so the conversion is credited to the internal tag. Find and remove utm parameters from internal links.

Should I use UTM parameters on internal links?

No. UTMs describe how a visitor reached your site, so use them only on external links such as ads, emails and social posts. For internal banners and buttons, use events or a non-UTM parameter.

How do I track internal banner clicks without UTMs?

Send a GA4 event when the banner is clicked, for example banner_click with a banner name parameter. You can do this with a Google Tag Manager click trigger or a small click listener. Attribution stays untouched.

Do UTMs on internal links start a new session in GA4?

They can cause attribution to change, and in some setups a new session is recorded, so the original source is lost. Removing UTMs from internal links avoids both effects. See the related guide on internal links restarting sessions.

How do I find internal links with UTM parameters?

View page source and search for utm_, or crawl your site with a tool such as Screaming Frog and use Custom Search for utm_. Any hit in a link to your own domain should be cleaned up. Also check menus, banners and pop-ups.

Will removing UTMs from internal links fix my old data?

No. Past reports stay as recorded. The fix improves attribution from the time you publish it, so note the date in your reporting.

Does FunnelGuard detect UTMs overwritten by internal links?

Not yet. It is a possible future check. FunnelGuard does test your funnel journeys and tracking hits, so use a manual test and a site crawl to watch for this.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.