How to Change Stream URL in Google Analytics
Moving your website to a new address or just noticed a typo from the initial setup? You'll need to update that URL in your Google Analytics 4 property to keep your data tracking correctly. This article will guide you through the exact steps to change your stream URL, plus a few crucial checks to make sure everything works perfectly after the switch.
What is a Data Stream in GA4?
In Google Analytics 4, a "data stream" is the source of information flowing into your property. It’s a significant shift from the old Universal Analytics, which used "Views." Each property can have multiple data streams. For instance, you could have one for your website, one for your iOS app, and another for your Android app, all sending data to the same GA4 property.
Each time you set one up, GA4 generates a unique "Measurement ID" (often starting with "G-"). This ID is what you use in your Google Tag (or within Google Tag Manager) to tell a specific website or app which data stream to send its tracking information to.
For most users, you’ll be focused on a single web data stream that captures all the activity on your website. The stream settings, which include the stream name and website URL, help Google Analytics organize this incoming data.
Why You Might Need to Change Your Stream URL
It's a common task, but the reason for the change can vary. You might need to edit your stream URL if you are:
- Rebranding Your Website: You've changed your domain name from
oldbrand.comtonewshinybrand.com. - Switching to HTTPS: You've installed an SSL certificate and are moving your site from
http://yourwebsite.comtohttps://yourwebsite.com. This is a critical update for both security and SEO. - Changing Your Domain Structure: Perhaps you're moving your blog from a subdomain (
blog.mysite.com) to a subdirectory (mysite.com/blog) to consolidate your web presence. - Correcting an Initial Typo: It happens! Maybe you entered
mywebsit.cominstead ofmywebsite.comduring setup. A quick edit is all you need. - Standardizing www vs. non-www: Inconsistent URLs can sometimes cause minor tracking discrepancies. Editing the stream URL to match the primary version of your site is good practice.
No matter the reason, keeping your stream URL accurate ensures GA4 correctly identifies referrals and understands the primary domain associated with your data. Crucially, updating the URL itself doesn't change your Measurement ID, so you likely won't need to change the tracking code on your site. You just need to make sure that same tracking code is present on the new URL.
Free PDF Guide
AI for Data Analysis Crash Course
Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.
Before You Begin: Important Considerations
Before you make any changes, run through this quick checklist. It'll save you from potential headaches later.
First, you need the right permissions. Only users with an Administrator or Editor role for the GA4 property can edit data stream settings. If you don't see the option to edit (which we'll cover below), it's almost always a permissions issue. You'll need to ask someone with administrative access for help.
Second, understand how this change affects your data. Changing the stream URL only affects data going forward. It does not retroactively change any of your historical data. That's a good thing! All your old reports and metrics will remain untouched. However, it's a good idea to take a few screenshots of your current stream settings just so you have a quick reference if you need it.
Finally, remember that this change is just one part of a bigger puzzle, especially for a full domain migration. You also need to ensure your Google Tag is running correctly on the new website URL and take care of other tasks like setting up 301 redirects and updating Google Search Console.
Step-by-Step Guide to Changing Your Web Stream URL in GA4
Ready to make the switch? The process itself is quick and only takes a few clicks within the GA4 admin interface.
1. Navigate to the Admin Panel
Log in to your Google Analytics account. In the bottom-left corner of the screen, you'll see a gear icon labeled "Admin." Click it to open the admin panel.
2. Select Your Property and Go to Data Streams
The Admin screen has two columns: "Account" and "Property." Make sure the correct GA4 property is selected in the "Property" column. Once you’ve confirmed you're in the right place, look for the "Data Streams" option and click on it.
3. Choose Your Web Stream
You'll see a list of your data streams. Most websites will only have one listed - it will be categorized under the "Platform" heading as "Web." Click on the web stream associated with the URL you want to change.
4. Open the Stream Details for Editing
This opens the "Web stream details" page. At the top, you'll see a box with your "Stream name," "Stream URL," and "Stream ID." Look for the small pencil icon (edit) in the top-right corner of this information box. Click it.
5. Update the Website URL
An "Edit web stream" pane will slide out from the right. Here you have two editable fields: "Stream name" and "Website URL." Change the "Website URL" field to your new address.
Pro Tip: Take a second to double-check what you've entered. Make sure you've selected the correct protocol (http:// or https://) and have entered the domain name exactly as it appears in the browser's address bar for your site's home page.
6. Save Your Changes
Once you’re confident the new URL is correct, click the blue "Save" button in the top-right corner. That's it! You've successfully updated your data stream URL in Google Analytics.
After a URL Change: What to Do Next
Just updating the URL isn't the final step. To ensure your data collection continues without interruption, you should immediately perform a few quick checks.
1. Verify Your Google Tag is Active
This is the most important check. Open your website at its new URL and ensure that your Google Analytics tracking code (your Google Tag) is installed and firing correctly. An easy way to do this is with the "Google Tag Assistant Companion" browser extension. Alternatively, simply view your website's page source and search for your Measurement ID (e.g., "G-XXXXXXXXXX") to see if the script is present.
2. Check the GA4 Realtime Report
With your website open in one browser tab, open your GA4 Realtime report in another. You should see yourself appear as a visitor within a minute or two. If you see activity pop up on the map and in the user cards, you can be confident that GA4 is receiving data from your new URL correctly.
3. Review Referral Exclusions
If you use payment gateways (like Shopify Payments, Stripe, or PayPal) or third-party logins, you may have set up referral exclusions in the past to prevent them from overwriting your true traffic sources. Navigate to Admin > Data Streams > Configure tag settings > Show all > List unwanted referrals. Check if any exclusions listed there are tied to your old domain name and update them if necessary.
4. Update Your Google Search Console Link
In addition to GA4, you should add your new URL to Google Search Console and verify ownership. Afterwards, you can link your Search Console and GA4 properties together in the GA4 admin panel under Admin > Property > Product Links > Google Search Console links. This enables valuable reports that combine click and impression data with on-site behavior.
Common Questions & Troubleshooting
Free PDF Guide
AI for Data Analysis Crash Course
Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.
Will changing the stream URL delete my old data?
No, it won’t. All your historical data is safe and attributed to the property. The change only tells GA4 where to expect data from for future sessions. You can analyze your old and new data together seamlessly.
I can't edit my stream URL. The pencil icon isn't there. Why?
This is almost always due to user permissions. You need to have either an Administrator or Editor role at the Property level to make this kind of change. A "Viewer" role, for example, will not let you edit stream settings.
Help! My Realtime report is empty after I made the change.
Don't panic. This is usually not related to the setting you just changed. The most common cause is that the Google Analytics tracking code (Google Tag) is either missing or incorrectly installed on the new website URL. Go back to the "Verify Your Google Tag" step above to troubleshoot. In rare cases, it can be a caching issue, so clear your browser cache and try again.
Should I create a completely new stream instead of editing the old one?
For simple changes like an HTTP to HTTPS switch, a rebrand (new domain, same business), or a typo correction, you should always edit the existing stream. This preserves the historical continuity of your data under one Measurement ID. You should only create a new data stream if you’re tracking a completely separate website with a different purpose within the same GA4 property, which is an uncommon setup.
Final Thoughts
Changing your website’s URL in Google Analytics 4 is a straightforward process right in the admin panel. The key is to be precise with the new URL and to perform a few post-change verifications, especially checking your Realtime report, to confirm data is flowing as expected.
Managing data tracking during website migrations and rebranding can get complicated, especially when you're pulling information from multiple places like Google Ads, Shopify, and your CRM. We built Graphed to simplify this entire experience. After a quick one-click setup to connect sources like your Google Analytics account, you can instantly build dashboards and pull reports using plain English. Just ask "show me my monthly website traffic, conversion rate, and top traffic sources," and we build the dashboard for you, all connected to your live data.
Related Articles
Facebook Ads for Gyms: The Complete 2026 Strategy Guide
Master Facebook advertising for your gym in 2026. Learn the proven 6-section framework, targeting strategies, and ad formats that drive memberships.
Facebook Ads for Home Cleaners: The Complete 2026 Strategy Guide
Learn how to run Facebook ads for home cleaners in 2026. Discover the best ad formats, targeting strategies, and budgeting tips to generate more leads.
Facebook Ads for Pet Grooming: The Complete 2026 Strategy Guide
Learn how to run Facebook ads for pet grooming businesses in 2025. Discover AI-powered creative scaling, pain point discovery strategies, and the new customer offer that works.