How to Change Web Address in Google Analytics

Cody Schneider••9 min read

Updating your website's address in Google Analytics might seem like a small task, but it's essential for maintaining accurate data after a domain change, a switch to HTTPS, or a subdomain shuffle. This guide will walk you through exactly how to change your web address in Google Analytics 4, covering the key steps and important considerations to ensure your data stays clean and reliable.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Why You Might Need to Change Your Website Address

Before jumping into the "how," let's quickly cover the "why." You're not just changing this setting for fun, there's usually a specific business reason behind it. Understanding the context helps ensure you don't miss any related steps.

Most changes fall into one of these common scenarios:

  • Switching from HTTP to HTTPS: This is the most frequent reason. As browsers prioritize secure connections, nearly every site has moved to HTTPS. If your original GA4 setup used the http:// protocol, you need to update it to https:// to match your live site's URL and ensure accurate attribution for things like referrals.
  • Moving to a New Domain: Rebranding or acquiring a new business often means a complete domain name change (e.g., moving from myoldsite.com to mynewbrand.com). If you plan to use the same GA4 property for your new domain, updating the web address is a critical step.
  • Changing a Subdomain: You might shift part of your site to or from a subdomain. For example, moving your blog from mysite.com/blog to blog.mysite.com or consolidating the subdomain back into the main site.
  • Consolidating "www" vs. "non-www": While modern redirects usually handle this, it’s good practice to set your preferred version (e.g., https://www.mysite.com) in GA4 to standardize your reporting and avoid seeing two different hostnames for the same site.

Failing to update your URL in these situations can lead to messy data. You might see self-referrals from your old domain, struggle with campaign tracking, or have trouble filtering internal traffic correctly. For clean, actionable data, your GA4 setup needs to mirror your actual site structure.

How to Change Your Website Address in Google Analytics 4

In the older Universal Analytics, changing your website URL was done in the "Property Settings." However, Google Analytics 4 handles this differently. Because GA4 is built around events and data streams rather than sessions and pageviews, the website URL is configured within the Data Stream settings. A data stream is essentially the pipeline that collects data from your website or app and sends it to your GA4 property.

Here's the step-by-step process:

Step 1: Go to the Admin Section

Log in to your Google Analytics account. At the bottom-left corner of the screen, you'll see a small gear icon labeled "Admin." Click it to access the administrative settings for your account and property.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Step 2: Select Your Property and Navigate to Data Streams

You'll see two or three columns on the Admin page: Account and Property. If you have access to multiple accounts or properties, make sure the correct ones are selected at the top of these columns. Under the "Property" column, find and click on "Data Streams."

Step 3: Choose the Web Data Stream to Edit

A list of your data streams will appear. For a website, you will typically see one web data stream. Click on it to open its details panel.

Step 4: Update the Stream URL

In the "Web stream details" view, you'll see two fields at the top: the "Stream name" and the "Stream URL." The Stream URL is what you need to change.

Click the small pencil icon to the right of your stream details to edit them.

Update the URL field with your new website address. Make sure it's accurate:

  • Include the protocol (https://).
  • Include the subdomain if you use one (e.g., www.).
  • Do not include any trailing slashes or subdirectories. For example, use https://www.mynewsite.com, not https://www.mynewsite.com/.

Optionally, you can also update the "Stream name" to something more descriptive if the old name is no longer relevant.

Step 5: Save Your Changes

Once you've entered the correct new URL, click the "Save" button in the top right corner. That's it! Your Google Analytics 4 property is now configured to recognize the new web address as the primary URL for its data stream.

Important Checks After Updating Your URL

Simply updating the Stream URL is the main part of the process, but your work isn't quite done. To avoid future data headaches, it's wise to run through a quick post-change checklist. Making these adjustments ensures that all parts of your GA4 configuration are aligned with your new domain.

1. Create an Annotation

Annotations are small notes you can add to your reports on a specific date. They are incredibly useful for remembering significant events, like updating your website's URL. Adding one will help you (or your team) understand why you might see a shift in traffic or behavior around this date when analyzing data months or years from now. In GA4, you can create them in Admin > Property column > Annotations to mark the date of the change.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

2. Review and Update Filters

If you have any filters set up, particularly those that include or exclude traffic based on the hostname, they'll need to be updated. A classic example is a filter to exclude traffic from internal IP addresses or office locations. Another is an advanced filter that only includes traffic to a specific hostname. Go to Admin > Data Settings > Data Filters and review any active filters to ensure they reference your new domain name.

3. Check Your Referral Exclusion List

Your referral exclusion list tells Google Analytics which domains should not be treated as referral traffic. This is most commonly used for payment gateways (like PayPal or Stripe) or third-party login systems. When a user is sent to PayPal and then returns to your site, you want Analytics to see them as part of the same session, not a new session referred by PayPal. Go to Admin > Data Streams > Click your stream > Configure tag settings > Show more > List unwanted referrals. Check that your old domain isn't listed here and that any payment gateway URLs or other relevant domains are correctly configured for your new URL.

4. Verify Linked Accounts

Your GA4 property is likely connected to other Google services like Google Ads, Google Search Console, or BigQuery. It's crucial to make sure these connections reflect your new domain.

  • Google Search Console: Ensure you have a Search Console property set up and verified for the new domain name and that it is linked to your GA4 property.
  • Google Ads: If you're running ads, the link between Google Ads and Analytics is vital for importing audiences and conversions. Double-check that all final URLs in your ads point to the new domain.

5. Review Conversions

Unlike Universal Analytics, GA4 conversions are event-based. While this makes them less likely to break during a domain change, it's still good practice to review them. If any of your conversions are based on specific 'page_view' events with page location parameters that hard-coded the old domain, they may need updating. This is rare, but worth a quick review in the Admin > Conversions section.

Common Questions & Answers

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Will I lose my historical data if I change my website URL in the data stream?

No, you will not lose historical data. The data that has already been collected and processed in your GA4 property is tied to the property itself, not the URL in the data stream settings. Changing the Stream URL only affects the configuration for incoming data. Your old reports will remain intact.

How long does it take for the URL change to take effect?

The change is applied immediately for how Google Analytics will process new data. As soon as you hit "Save," any new hits coming in will be associated with the configuration tied to the new URL. You should start seeing data appear with the new hostname in your real-time reports within minutes.

My old domain is still showing up in my reports. Why?

This can happen for a few reasons even after you've updated the settings:

  • Backlinks: People might still be clicking on old links from other websites that point to your old domain. If your 301 redirects are working properly, they will be redirected, but GA4 may sometimes register the initial hostname.
  • Bot Traffic: Scraper bots or other automated traffic might be hitting your old domain directly.
  • Delayed Processing: There could be a slight delay (up to 24-48 hours) for all reports to fully reflect the change, although it's typically much faster.
  • Your Implementation: Double check that your GTAG or Google Tag Manager configuration on your website doesn't have the old domain hard-coded anywhere (this is very uncommon, but possible in custom setups).

Can I change the property or stream name, too?

Yes. The property name and stream name are just labels for your reference. Unlike the Stream URL, changing them has no impact on data collection. It's good practice to rename them to reflect the new domain for clarity, but it's not a technical requirement.

Final Thoughts

Updating your website's URL in Google Analytics 4 is a straightforward process when you know where to look. Head to the Admin section, open your web data stream, and edit the Stream URL. Following this up with a quick review of your filters, referral exclusions, and linked accounts will ensure your analytics setup stays healthy and your data remains accurate for years to come.

Configuring settings is fundamental, but the real power comes from turning all that data into clear, actionable insights without spending hours lost in reports. Analyzing performance across GA, Google Ads, your CRM, and other tools often involves tiresome manual work. That's why we created Graphed. We turn hours of data pulling into an instant conversation, allowing you to build real-time dashboards and get answers using simple, natural language. It's like having a data analyst on your team to tell you what's working and why, so you can get back to growing your business.

Related Articles