At first you need to create a Google Analytics account. Once you sign-in with your Gmail account, you will be prompted to a screen where you will sign up for Google analytics with your Gmail account. On the next screen, you will be given a choice to choose between a website or mobile app. Make sure to select website. Now you will be presented with Google Analytics tracking code. Copy this tracking code because you will need to enter it to your WordPress site. Make sure to agree to Google Analytics terms and service, so click on the Agree button. In WordPress click analytics then authenticate to enter the tracking code. Allow the plugin to use data from your Google Analytics account. This will generate various reports and show websites visitors activity for you to be able to make better decisions for your business.
Read the full article here:
How to Add Google Analytics to WordPress with Google Analytics WD