Now let’s try to track user’s activity on our site.
We’ll use Google Analytics for it.
At first go to Admin Panel -> Configuration -> Google Analytics and fill in a Tracking ID (number 1 on screenshot).
If your don’t have it - you’ll need to create a GA account. Use the link (number 2 on screenshot) and fill in a client id.
After it you’ll need to add a Google Analytics Reports API credentials.
Go to admin/config/system/google-analytics-reports-api and just follow the instruction on this page.
After you’ve done - click a start setup and authorize account button.