How to Install Google Analytics in WordPress in 10 mins
Log into your Google Analytics account and select the website for which you need the tracking code. Click on Admin in the left taskbar. In the property column, click Tracking Info and then Tracking Code. Now you can get the tracking code under the Website tracking section.