Path to Tracking ID, Code
Admin \ Property Settings \ Tracking Info \ Tracking Code
Under the Tracking Info menu, you can get your unique identifier generated by the system. It’s called Tracking ID. This ID identifies your property, page.
Just choose the Tracking code, where you get this ID. You will need this Tracking ID, so memorize it somehow.
Just copy the code from the field.
To make sure, copy the text into notepad and check your code.
Now open your browser and navigate to your WP admin’s page. Find the Theme Editor under the Appearance menu.
Select the Theme Editor (WP Admin\Appearance\Theme Editor)
Now you need to look for a file called header.php. Right side, check the files and double click on header.php
After you clicked on it, you will see a code, text editor in your WordPress screen.
You need to find the start of the head tag, see picture line 16.
Just paste the code you copied earlier from Google Analytics site.
Now you have the updated file, it’s time to check it. It should work by now.
Just visit your site, then open your new Google Analytics account.
On the main dashboard, you can immediately check the number of your active users.
Since you visited your site GA should measure your activity.
If you see a number greater than zero you then you have succeeded.
If you are interested in saving yourself a lot of time, check AHK.
Autohotkey is an automation tool, easy to learn, powerful!
You can check my favorite editors here.