How to Change Website on Google Analytics
Wondering how to change the website URL you're tracking in Google Analytics? The answer isn't a single "edit" button - Google Analytics is designed to link a specific tracking code to a specific data property. Whether you've launched a new site, rebranded your domain, or simply made a typo during setup, you can get everything sorted out. This guide will walk you through the correct steps for each scenario in Google Analytics 4.
First, Why Can't You Just Swap the URL?
In Google Analytics, a "Property" represents your website or app. Within that property, a "Data Stream" is the source of the data - your specific website. This structure is built for data integrity. Each data stream has a unique Measurement ID (starting with "G-") embedded in your site's tracking code. Simply changing the URL in the settings without updating anything else would corrupt your data, mixing traffic from your old and new sites into one messy pile. That's why GA makes you follow a more structured process.
Let's find the right path for your situation.
Scenario 1: You're Adding a Completely New Website
This is the most common case. You have an existing Google Analytics account that you use for one website, and now you're launching a second, unrelated website. You want to track it without creating a brand new Google account.
The correct method here is to create a new property within your existing GA account.
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-by-Step Guide to Adding a New Property:
Follow these instructions to create a clean, separate tracking setup for your new site.
1. Navigate to the Admin Section
Log in to your Google Analytics account. In the bottom-left corner of the screen, click on the gear icon labeled Admin. This is your control center for all settings.
2. Create a New Property
In the Admin panel, you'll see two or three columns. In the second column ("Property"), you'll see a blue button that says + Create Property. Click it.
3. Enter Your Property Details
Now you'll go through the new property setup wizard:
- Property name: Give your property a clear name (e.g., "My New E-commerce Store" or the name of the website).
- Reporting time zone: Select the primary time zone for your business.
- Currency: Choose the currency you use for your business transactions. This is crucial for accurate e-commerce reporting.
Click Next. Then, provide some optional business information like your industry category and business size. This helps GA provide you with benchmarking data. Click Next again.
4. Set Up Your Data Stream
Next, you'll choose your business objectives. This helps customize the default reports you see. Afterward, you need to set up your data source. Since you're tracking a website, choose Web.
Here you will input your new website's URL and give the data stream a name (the website name is usually perfect for this). Make sure "Enhanced measurement" is turned on - it automatically tracks important interactions like scrolls, outbound clicks, and video engagement.
5. Install Your New Tracking Tag
Once you create the data stream, GA will provide you with your new Measurement ID (e.g., G-XYZ123ABC). This ID is unique to your new website. You must now install this tracking tag on your new website. You have several options:
- Install manually: Copy the provided tracking script (gtag.js) and paste it into the
<head>section of every page on your new site. - Use a website builder integration: Platforms like Shopify, Squarespace, and Wix have a simple field in their settings where you just paste the new Measurement ID.
- Use Google Tag Manager: If you use GTM, create a new GA4 Configuration tag and paste your Measurement ID there. Set it to fire on all pages. This is the most flexible and recommended method.
Once the tag is installed, data for the new site will start appearing in its own, separate property within about 24-48 hours. Your old website's data will remain untouched in its original property.
Scenario 2: You've Changed Your Website's Domain Name
Imagine you just rebranded from oldpizzashop.com to famouspizzaparlor.com. You aren't launching a new site entirely, you're just moving the existing one to a new address. In this scenario, you probably want to keep your historical analytics data rather than starting from scratch.
Good news! With GA4, this is much simpler than it was with older versions of Analytics.
Step-by-Step Guide to Updating Your Domain
1. Go to Your Data Stream Settings
Navigate to Admin > Property > Data Streams. Click on the web data stream for the website you are updating.
2. Edit the Website URL
In the "Web stream details" panel, click the pencil icon in the top right corner to edit. Simply change the "Website URL" from your old domain to your new one. For example, change https://oldpizzashop.com to https://famouspizzaparlor.com. Click Save.
3. Check Your Referral Exclusion List
This is a critical step that many people miss. Google Analytics needs to know that your new domain is part of your website, not an external site referring traffic. Self-referrals can ruin your marketing attribution data.
- While still in your Web stream details, click on Configure tag settings.
- Under "Settings," click Show more, then select List unwanted referrals.
- If your old domain is listed here, you can remove it. Ensure your new domain name is NOT on this list. GA4 is usually smart enough to handle this, but it's essential to double-check. Proper configuration here ensures that if someone clicks a link from your old domain (which should now redirect to your new one), it doesn't show up as a "referral" from
oldpizzashop.com.
As long as the GA tracking code is already on your website, it will continue to work on the new domain seamlessly. No need to change the tracking code itself.
Scenario 3: You Just Need to Fix a Typo or Rename the Property
This is the easiest fix of all. If you just made a simple spelling mistake or want to change how the property is named for organizational purposes, here’s how to do it.
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.
To Edit the Property Name:
- Navigate to Admin.
- In the "Property" column, select the property you want to change.
- Click on Property Settings.
- Change the "Property name" field to whatever you want.
- Click Save.
To Edit the Data Stream Name (or URL typo):
- Go to Admin > Data Streams.
- Click on the web data stream you need to edit.
- Click the pencil icon in the top right.
- Here you can edit the "Stream name" or fix a typo in the "Website URL," just like in Scenario 2.
- Click Save.
These actions just change the display names or fix minor errors, they have no impact on data collection itself.
Best Practices After Making a Change
Once you've followed one of the scenarios above, your job isn't quite done. Follow this checklist to ensure everything is working correctly:
- Verify Realtime Data: The quickest way to confirm your tracking is working is to open your website in one browser window and the GA4 "Realtime" report in another. If you see your own visit pop up within a minute, the tracking tag is installed and firing correctly on your new site or domain.
- Check for Self-Referrals: As mentioned, self-referrals are poison for data accuracy. After a few days, go to the Reports > Acquisition > Traffic acquisition report. Add "Session source" as a secondary dimension. If you see your own new domain name listed as a source, you have a referral issue that needs to be fixed in the tag settings.
- Set Up an Annotation: In the GA4 "Reports" section, you can add annotations to mark important dates. Create one on the day you changed your domain or launched a new property. This will save you (or your teammates) headaches months from now when you see a sudden shift in traffic and can't remember why.
- Update Your Goals (Conversions): If you're setting up a new property, you'll need to re-configure any important conversion events, like 'generate_lead' or 'purchase', in the GA4 admin panel. Don't forget this, or you'll be flying blind on your most important metrics.
Final Thoughts
"Changing" a website in Google Analytics isn't a single action but a process determined by your specific goal. Whether you're adding a new site by creating a new property, updating a domain within an existing data stream, or fixing a simple typo, following the correct procedure ensures your data remains clean, accurate, and valuable for decision-making.
While getting Google Analytics set up correctly is the essential first step, the real challenge is bringing that data together with information from your other platforms. At Graphed{:target="_blank" rel="noopener"}, we built our tool to solve that exact problem. Instead of manually exporting data from GA, Shopify, HubSpot, and your ad platforms, you can connect them all in seconds. From there, you just ask questions in plain English - like "Compare my website traffic from Facebook ads vs. Google ads this month" - and get instant dashboards and reports. It eliminates the manual work so you can focus on insights, not spreadsheets.
Related Articles
Facebook Ads for Dog Trainers: The Complete 2026 Strategy Guide
Learn how to use Facebook ads to generate high-quality leads for your dog training business in 2026. Complete strategy guide with targeting, lead magnets, and budget optimization.
Facebook Ads for Roofers: The Complete 2026 Strategy Guide
Learn how to run effective Facebook ads for roofers in 2026. Discover proven targeting strategies, ad types, and campaign funnels that generate high-quality roofing leads.
Facebook Ads for Hair Salons: The Complete 2026 Strategy Guide
Learn how to run profitable Facebook ads for hair salons in 2026. This guide covers audience targeting, ad creatives, retargeting strategies, and budget optimization to get more bookings.