If you haven’t already, sign up for a Google Analytics account. https://analytics.google.com/

To enable tracking from Google Analytics on the activities of your site, enter the Google Analytics tracking code into the back end of your Settings tab. 

Go to Settings > Configurations > Marketing > Analytics Settings

Enter the appropriate tracking code. The instruction and explanation for the code format and other fields are available under each. 

Once with Google Analytics, we also offer settings for other analytical programs (Click Analytics, Hubspot, Yahoo, Google Adwords, etc). Scroll down the page to see the rest of the available programs. Input the relevant information into the fields of the program you want. 

Scroll down to save Settings once done.