You heard how great Google Analytics is and that it is essential for you to track all traffic on your site. But no one takes the time to show you how to add the Google Analytics code to your website. Well here’s a quick guide.
Log into your WordPress dashboard and select the Theme Editor Menu under the Appearance menu header:
In theme editor look on the side panel with all the different template files:
and find the file header.php. Select header.php and wait for it to load.
Insert your GA code in the header section as the last thing between the <head> </head> tags.
And that’s it. Update the file and you are done