Follow the instructions below to How to Configure the Google Analytics Tracking Tag in WordPress?
So first of all open your Browser. Now we have to search Google Analytics. As you can see this is the Google Analytics website so simply we have to Open this. If you are opening Google Analytics for the first time so you have to click on the Start measuring button it is a signup process.
Here we have to enter our account name or domain name. After that, we have to click on all the checkboxes. Now simply we have to click on the Next button.
So here we have to enter our property name. It means we have to add our domain name. After that, we have to choose our country and currency. Now we have to click on the Next button.
Now we have to select our category according to our website. Now we have to select our business size and intend to use Google Analytics with your business. Click on the create button.
So now here we have to again select our country and then click on the accept buttons. So now I have to click on the all checkboxes button and click on the Save button.
So now here we have to choose our platform And I am choosing the web platform. After that, we have to enter our URL without HTTPS and here we have to enter our Website name. After fulfilling the details we have to simply click on the create stream button.
Here as you can see we have to click on the admin button. After that, we have to click on a data stream button. Now we have to click here. Now we have to click on the Global site tag section. So now we have to copy this code.
And open our WordPress dashboard. On the left side, we have to click on the Appearance button. and Now Simply we have to click on the theme editor button. On the right side, we have to select header.php. Here as you can see the head section. The code that we copied now we have to paste here under the head section.
Now simply we have to click on the update file button. So your Google Analytics code has been added successfully.