Google Analytics is the most innovative Free Google Service to analyze the web-traffic of your website. If you are running Blogger-based website, please read this tutorial on how to integrate Google Analytics in Blogger. In this article, we present the simple steps to connect Google Analytics 4 (GA4) to WordPress websites.
Stage 1: Add your Website as Property in Google Analytics
- Go to Google Analytics.
- Click Admin > Create Account (only if you need).
- Click Create Property.
- Put the Property Name (perhaps some word(s) you use to call your website).
- Choose Time Zones and Currency Settings.
- Click Next.
- Provide information on Industry Category, Business Size, and Purpose of Using Google Analytics.
- Click Create.
- Choose Web.
- Click Create.
- Give the URL of your website.
- Finally, click Create Stream.
Stage 2: Integrate Google Analytics 4 (GA4) in WordPress Website
- Click Admin on Google Analytics DashBoard.
- Select the GA4 Property ID (with the name that you provided) under Property column.
- Click Setup Assistant.
- Go to Tag Installation and click on the arrow-head icon.
- Click on your Property ID.
- Scroll down to see Global site tag (gtag.js) and click on it.
- Copy the ‘code’ that you see.
- Go to WordPress Dashboard of your website.
- Go to Appearance > Theme File Editor.
- Select the file header.php to edit.
- Paste the code between and tags in the same file.
- Save the file.
- You will begin to see the live visits on your website, quite visually and in a detailed manner in Google Analytics.