Skip links

How to add your Google Analytics code to your wordpress site

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.

Step 1:

Log into your WordPress dashboard and select the Theme Editor Menu under the Appearance menu header:

Step 2:

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.

Step 3:

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