Step 2 – Adding Google Analytics to a WordPress Blog
There is more than one way to add Google Analytics tracking code to WordPress: by using a Plugin, by adding tracking script directly to the footer.php file.
Option 1 – Using a Plugin
If you are not familiar with WordPress file and PHP code, it’s recommended to use the Plugin method. One of the best plugins for this is Analytics Code Integration. This plugin will insert the Universal Analytics tracking code automatically – you will only have to enter your tracking ID (UA-ooooooo-1) .
The steps below show how to install the plugin and insert the Google Analytics tracking ID:
go to WordPress Dashboard and install the Google Analytics plugin.
Once the installation is complete, navigate to the Settings section and press on Google Analytics Code.
Paste your tracking id (like UA-ooooooo-1) in the field and click Save.