Add Google Analytics to WordPress Without a Plugin
The first step is to get the analytics code from Google.
To do this, go to your Google Analytics account page, and click on the Admin button (looks like a wheel cog) as shown below:
When the Tracking Info sub-menu is displayed, click on the Tracking Code link.
Highlight the code shown and copy this code to your clipboard.
The next step is to locate the correct place to insert this code in your website…