How to Update URL on Google Analytics

Cody Schneider8 min read

Switching your website's domain can feel like a fresh start, but it brings a critical task: updating your information in Google Analytics. If you've just moved to a new URL, this guide will walk you through exactly how to make the change in both Universal Analytics (UA) and Google Analytics 4 so you don’t lose your precious data stream. We’ll cover the step-by-step process and the important checks to run afterward to ensure everything is working correctly.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Why Updating Your URL in Google Analytics is a Big Deal

You might think that as long as the tracking code is on your new website, everything will work fine. While that’s partially true for data collection, failing to update the URL inside the Google Analytics interface can create significant data headaches. It's a small task with big consequences.

Here’s why it's so important to get this right:

  • Data Continuity: Properly updating a property ensures your historical data remains connected to your future data under a single umbrella. Without this, you might end up creating a completely new property, splitting your analytics and making year-over-year comparisons a manual, spreadsheet-fueled nightmare.
  • Accurate Reporting Features: Some built-in reports and features within Google Analytics use the property's default URL to generate links or display information. If the URL is wrong, these links will be broken, sending you to a non-existent page when trying to analyze reports like In-Page Analytics.
  • Preventing Self-Referrals: If you don’t tell Google Analytics about your old domain after a move, traffic moving from your old URL to your new one via redirects can be mislabeled as "Referral" traffic. This muddies your data, making it look like you have a new external traffic source when it's really just your own users bouncing between old and new links.
  • Seamless Integrations: Tools connected to Google Analytics, like Google Ads and Google Search Console, rely on the correct URL for proper data syncing. An incorrect URL can disrupt this flow, impacting your conversion tracking and search performance reports.

Common reasons for a website URL change include rebranding to a new domain name, switching from HTTP to HTTPS, or migrating from a subdomain (e.g., blog.yourcompany.com) to a top-level domain (www.yourcompany.com).

Pre-Flight Checklist: Before You Change Anything

Before you even open Google Analytics, a little preparation goes a long way. Think of this as a pre-flight checklist to ensure a smooth transition without losing historical context or encountering frustrating errors later.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

1. Confirm Your 301 Redirects are Working

First and foremost, changing your URL in Google Analytics does not move your website. That part has to be done separately. Your first priority should be ensuring that server-side 301 redirects are in place, sending visitors and search engines from every page on your old domain to the corresponding page on your new domain. Flawless redirects are crucial for both user experience and SEO.

2. Document the Date of the Change

This is simple but incredibly important. Make a note of the exact date you switched domains. You’ll want to create an "annotation" in Google Analytics to mark this event. When you're looking at a traffic chart six months from now and see a weird dip or spike, this annotation will be a lifesaver, reminding you exactly what happened on that day.

3. Create a Backup (Optional but Wise)

While this process is generally safe, it never hurts to be cautious. Consider exporting some of your all-time key reports as CSV or PDF files from your analytics property. Having a record of your top landing pages, traffic sources, and conversion data provides a safety net, just in case something goes wrong.

How to Update Your URL in Universal Analytics (UA)

Even though Google Analytics 4 is the new standard, millions of websites still have Universal Analytics properties they rely on for historical data. If you're managing an older property or need to reference past information, here’s how to make the update.

The process in UA involves changing the URL at both the Property level and the View level.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Step 1: Update the Property Settings

This is the main setting for the entire property.

  1. Log into your Google Analytics account.
  2. Click the Admin button (the gear icon) in the bottom-left corner of the page.
  3. In the "Account" column, select the correct account. In the "Property" column, select the Universal Analytics property you want to update.
  4. Under the "Property" column, click on Property Settings.
  5. You’ll see a field labeled "Default URL". This is what you need to change. Update it with your new website address. Make sure to select the correct protocol (http:// or https://) from the dropdown menu.
  6. Scroll down and click Save.

That takes care of the first half. Now, you need to update the URL in the View settings as well.

Step 2: Update the View Settings

Each view inside a UA property also has its own URL setting that should match the one you just entered.

  1. While still in the Admin section, look at the third column, "View."
  2. Click on View Settings at the top of the column.
  3. Find the "Website's URL" field and update it to your new domain, again being careful to select the correct http:// or https:// protocol.
  4. Scroll down and click Save.

After saving, your Universal Analytics property is now officially pointing to your new website URL.

How to Update Your URL in Google Analytics 4

GA4 handles things a bit differently. It's built around "Data Streams" rather than the Property-View hierarchy of Universal Analytics. The process here is much simpler because there’s only one place to make the change.

Step-by-Step Instructions to Update a GA4 Data Stream

  1. Log into your GA4 property in Google Analytics.
  2. Click the Admin button (gear icon) in the bottom-left corner.
  3. In the "Property" column, click on Data Streams. This will show you a list of the data streams feeding information into your property (e.g., Web, iOS app, Android app).
  4. Click on your existing web data stream to open its details.
  5. In the "Stream details" panel, you’ll see the Stream URL. Click anywhere in that box (or the pencil icon if you see one) to edit it.
  6. Enter your new website URL. Make sure the protocol (https://) is correct.
  7. Click Update stream to save your changes.

That's it for GA4! The primary function of this setting is referential, as GA4 identifies traffic based on the Measurement ID in your tracking code, not the URL in the settings. However, keeping this URL current is a best practice for clarity and ensures internal linking features work correctly.

Post-Update Checklist: Verify and Troubleshoot

You’ve updated your settings, but the job isn't done yet. Now you need to make sure data is flowing as expected and fix a few common post-migration issues. Spending five minutes on these checks now can save you hours of confusion later.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

1. Check Real-Time Reports

This is the fastest way to confirm GA is receiving data from your new domain.

  • Open a new browser tab and navigate to your new website. Click around on a few pages.
  • In Google Analytics (both UA and GA4 have this feature), go to the Realtime report.
  • You should see your own visit pop up within a minute. If you see yourself, you know the basic connection is working. If not, double-check that your GA tracking code was successfully carried over to the new domain.

2. Add Your Old Domain to the Referral Exclusion List

This is the most common mistake people make. To prevent your old domain from showing up as a "Referral," you need to tell Google Analytics to ignore it.

  • For GA4:
  • For Universal Analytics:

3. Check Your Google Ads and Search Console Integrations

Linked services need to know about the change too.

  • Google Search Console: You must create a new property in Google Search Console for your new domain. Once that's verified, go into your GA4 settings (Admin > Product Links > Search Console Links) and link this new Search Console property.
  • Google Ads: If you import conversions from Google Analytics into Google Ads, confirm the link is still active and that data continues to flow correctly after the domain change.

Final Thoughts

Updating your URL in Google Analytics is a straightforward but essential step in any website migration. Following these procedures for your UA or GA4 property helps maintain data integrity, ensures your reporting is accurate, and prevents future confusion. The most important parts are updating the property settings and running through the post-update checklist to verify that everything looks good.

We know that managing data changes and trying to get a clear picture of your business performance can be a real headache. After all, your marketing data isn't just in Google Analytics, it’s scattered across your ad platforms, CRM, and e-commerce tools. To solve this, we created Graphed. Our platform connects directly to all your data sources, and you can simply ask questions in plain English, like "Show me my top traffic sources that led to a purchase" to get real-time dashboards and answers in seconds. We automate the heavy lifting of data analysis so you can focus on making smarter decisions, not wrestling with reports.

Related Articles

How to Enable Data Analysis in Excel

Enable Excel's hidden data analysis tools with our step-by-step guide. Uncover trends, make forecasts, and turn raw numbers into actionable insights today!