Manually adding Google Analytics code

The easiest method of inserting Google Analytics to your site, you need to add the tracking code to the header.php file of your active WordPress theme.

Go to Appearance → Editor and select the Header (header.php) to edit. Paste the copied tracking code right before the closing </ head> tag: