Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 data stream URL pointing to an old domain: how to fix it

TRK-014Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

When you create a GA4 web data stream, you enter a website URL and a stream name. After a rebrand, domain change or migration, that URL can stay on the old domain while the site runs on a new one.

The stream URL does not decide where data is collected. Data comes in from any page that runs your measurement ID (the G-XXXXXXXXXX code). So a stale URL does not stop tracking by itself. It is a setup hygiene problem, and a sign that other things may have been missed in the move.

Why it costs you leads or sales

The stale URL rarely loses data directly. The cost comes from what it hides or causes around it:

Where an old stream URL causes trouble
  • Team members or agencies pick the wrong stream or property because the label looks like a dead site.
  • Enhanced measurement and tag settings get reviewed against the wrong site.
  • Linked tools such as Google Ads or Search Console are connected to the wrong stream by mistake.
  • The migration itself may have left the tag off the new domain, and nobody notices because the property looks 'set up'.
  • Cross-domain settings still list the old domain and miss the new one, which splits sessions and breaks attribution.
Where the real risk sits after a domain moveExample numbers
Where the real risk sits after a domain move (example)Stale stream URL label: 1 relative risk (1-10); Wrong stream chosen by team: 3 relative risk (1-10); Cross-domain list outdated: 6 relative risk (1-10); Tag missing on new domain: 9 relative risk (1-10)0371369Stale stream URL labelWrong stream chosen b…Cross-domain list out…Tag missing on new do…relative risk (1-10)

Example: illustrative scores only, not measured data. The stale URL label is low risk; a missing tag or cross-domain gap on the new domain is higher.

How to check if your site has it

Check the stream URL and whether data arrives
  1. Open the stream

    In GA4 go to Admin > Data collection and modification > Data streams (or Admin > Data streams), then click your web stream. The stream details show the stream URL, name and measurement ID.

  2. Compare to your live domain

    If the URL shows the old domain, you have this issue.

  3. Confirm data comes from the new domain

    Open Reports > Realtime, then browse your new site in another tab. Your visit should appear. You can also add Hostname as a dimension in an Explore report (or check Reports > Tech) to see which domains send hits.

  4. Check the measurement ID on the site

    View the page source or use your tag manager preview and confirm the same G- ID as in the stream.

  5. Review cross-domain settings

    In the stream, open Configure tag settings > Configure your domains and check the list includes every domain in your funnel.

How to fix it

How a stale URL can hide a bigger gap
  1. Domain movesSite goes live on the new domain
  2. Stream URL not updatedStill shows old domain
  3. Tag or cross-domain not recheckedNobody reviews the setup
  4. Reports look wrongSplit sessions or missing hits

The label is harmless, but the migration step that follows it is where data gets lost.

Update the stream URL
  1. Open the stream settings

    Admin > Data streams > click the web stream. You need the Editor role or higher on the property.

  2. Edit the details

    Depending on the interface, use the pencil icon or the stream name area to change the stream name and, where the field is editable, the website URL. Use your current domain, for example https://www.example.com.

  3. If the URL field is locked

    Rename the stream so it clearly names the current site. If you need the URL itself to change and cannot edit it, create a new web stream for the new domain, install its new measurement ID and keep the old stream for history. Do not run both IDs on the same pages unless you intend to.

  4. Save and recheck

    Save, then confirm the measurement ID is unchanged and Realtime still shows your visit.

Make sure the tag is on the new domain
  1. Check your GA4 plugin or theme setting

    In your analytics plugin (for example Site Kit or a header-scripts plugin), confirm the measurement ID matches the stream.

  2. Check the site URL

    Under Settings > General, confirm WordPress Address and Site Address use the new domain so the plugin loads on it.

gtag cross-domain linker listing the current domainsjavascript
gtag('config', 'G-XXXXXXXXXX', {
  'linker': {
    'domains': ['www.example.com', 'checkout.example.com']
  }
});

How to confirm it's fixed

Confirmation checks
  • The stream details show the current domain.
  • Realtime shows your own visit to the new domain.
  • Hostname in an Explore report lists the new domain and no unexpected old one.
  • The cross-domain list includes every domain in the funnel.
  • Key events (such as a form submit) still appear in Realtime or DebugView after a test.

How to prevent it happening again

Add this to your domain-change checklist
  • Update the GA4 stream name and URL on launch day.
  • Recheck the measurement ID on the new domain.
  • Update cross-domain settings and referral exclusions.
  • Update any hostname conditions in your tag manager.
  • Reconnect or review linked products such as Google Ads and Search Console.
  • Note the change and date in your internal documentation.

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. The stream URL is an admin setting inside your GA4 property, and a robot visitor running your journeys cannot read it. A setup audit or a manual review of the GA4 Admin area, or a documented analytics configuration checklist, is the right kind of tool.

Questions people ask

Does the GA4 data stream URL affect data collection?

No. GA4 collects data from any page that runs your measurement ID, whatever URL is saved in the stream. The URL is mainly a label. Check the tag on the live site to be sure data is flowing.

How do I change the website URL of a GA4 data stream?

Go to Admin > Data streams, click your web stream, and edit the stream details. Change the stream name and, where the field is editable, the URL. You need Editor access or higher on the property.

Why can't I edit the URL in my GA4 web stream?

In some interfaces the URL field is not editable after creation. You can rename the stream to name the current site. If you truly need a new URL, create a new web stream and install its new measurement ID.

Do I need a new GA4 property when my website changes domain?

Usually not. You can keep the same property and measurement ID and install the tag on the new domain. That keeps your history in one place. Create a new property only if you want separate reporting.

Will changing the stream URL delete my GA4 history?

No. Editing the name or URL does not change your measurement ID or remove past data. Your reports and key events keep their history.

Why is GA4 showing traffic from my old domain?

The old domain may still be live, redirected pages may still load the tag, or other sites may use your measurement ID. Add Hostname as a dimension in an Explore report to see which domains send hits.

What else should I check in GA4 after moving to a new domain?

Check the measurement ID is on every page, cross-domain domain lists, referral exclusions, tag manager hostname conditions, and links to Google Ads and Search Console. Then test a conversion and confirm it arrives.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

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.