Are you changing the domain name of your website? In this article, we’ll show you how the change the domain name of your Google Analytics Property, so you don’t lose your historical Google Analytics data.
If you have a Google Analytics 4 property, we’ll show you how to create a new data stream.
Let’s get started!
- How to Change the Domain Name of Your Universal Analytics property
- How to Change the Data Stream URL of Your GA4 property
How to Change the Domain Name of Your Universal Analytics Property
If you were to make a new Google Analytics Property and connect it to your site, you’d not have the Google Analytics data to compare your current stats to. So we’d like to propose you change the domain name of your current Google Analytics property rather than starting from scratch.
Step 1: Navigate to https://analytics.google.com and go to the existing Google Analytics Property you’d like to change the domain name for.
Step 2: Click on the Admin Cog in the bottom left of the main menu.
Step 3: In the middle column, click Property Settings.
Step 4: Change the Property Name and the Default URL.
Step 5: Save the changes!
Your Google Analytics Universal Analytics property name and default URL are now changed and saved!
How to Change the Data Stream URL of Your GA4 Property
If you are authenticated into a GA4 property via MonsterInsights, and you have changed your website URL, all you need to do is reconnect MonsterInsights to your GA4 property.
You can do this by logging into your WordPress site and then navigating to Insights » Settings » Google Authentication » Reconnect MonsterInsights.
MonsterInsights will automatically create a new data stream for you which will be configured with the new website URL.
If you are not authenticated into a GA4 property via MonsterInsights, and you are instead dual tracking GA4, you will need to manually remake a data stream. You can then use the newly created ID and update the Dual Tracking option at Insights » Settings.
To make a data stream within your Google Analytics account click the Admin Cog, then Data Streams.
You can then click Add stream in the top right corner followed by Web.
Enter your website address followed by an easily identifiable name for your data stream. Click Create steam.
That’s it! You’ve changed the Data Stream URL of your Google Analytics 4 Property!
Are you interested in setting up Google Search Console for your new site so you can see how it’s showing up in the Google search results? Then see our guide: How to Verify Your Site in Google Search Console with Google Analytics.