Instructions for integrating Google Analytics 4 for WordPress website.
Like it or not, as of July 1, 2023, Google will also stop supporting Universal Analytics. This means that, if you want to continue tracking website traffic with Google Analytics, you will have to switch to using Google Analytics 4 (current latest version). If you are using Universal Analytics on your WordPress website, I will show you how to switch to Google Analytics 4 in a simple way.
When do you need to switch to Google Analytics 4?
- If you created your Google Analytics account before October 14, 2020, you may be using the Universal Analytics tracking code. You will need to switch over to Google Analytics 4.
- If you created a Google Analytics account after October 14, 2020, you’re probably already using the Google Analytics 4 property and don’t need to do anything.
Integrate Google Analytics 4 for website
1. First, log in to your Universal Analytics account, click on Administration (gear icon in the lower left corner of the interface) => select GA4 . Setup Assistant.
2. Click the button Begin in the item I want to create a new Google Analytics 4 property.
3. A pop-up window will appear, click the . button Create properties.
4. Wait for a moment for the process to complete => click the button View your GA4 assets.
5. In Home page of Google Analytics 4, click the . button Get tagging instructions.
6. Page Web Stream Insights will appear. You will need to copy 1 of 2 information: Measurement code or Sitewide tag (gtag.js).
7. Clear the website’s cache (if any) and check the results. It’s simple, right? Good luck!
Are you using Universal Analytics or Google Analytics 4? Which version do you prefer? Personally, I still prefer Universal Analytics because my only need is to track website traffic. Moreover Universal Analytics can be shortened to reduce the size a lot through the version Minimal Google Analytics.
If you liked this article, follow my blog to regularly update the best and latest articles. Thanks very much. 🙂