It’s easy to add Google Analytics to your WordPress installation.
Simply copy your Google Analytics code and login to your WordPress dashboard
Appearance > Editor > Footer.php
Search for </body>
and paste the Google Analytic’s code just before this. Update / Save and That’s it.