Analytics
Integrate with Google Analytics
Getting credentials
- Go to https://console.developers.google.com/apis/dashboard and create a new project.
- Select your project and click on "ENABLE APIS AND SERVICES":
- Enable API:
- Generate service account key:
- Open JSON file and copy its content, then go to
Admin
->Settings
->General
and update field "Service Account Credentials" in Analytics plugin settings by the content from JSON file:
It will look like this:
Setting Google Analytics
- Go to Google Analytics account: https://analytics.google.com/analytics/web/. Click on
Admin
=> `View Settings and copy View ID number, then go back to the Settings General page, click to Google Analytics and paste to View ID field.
INFO
Change in Google Analytics 4 property.
When creating a new property, you need to check the "Create a Universal Analytics Property" checkbox.
Then you will have view settings tab and View ID.
- Open JSON credentials file and copy client email. Then click on "User management" and add that email to list account. Just need view only permission.
Setup timezone and clear cache
- Go to
Admin
->Settings
->General
and setup timezone to your local timezone.
- Go to
Admin
->Platform Administration
->Cache management
and clear your site cache.
WARNING
Analytics data in Admin dashboard is displayed daily data, so it will reset chart every day. It is displaying data from API, not realtime analytics so please wait until your site has data from API.
Give your comment here if you got any problem.
Good luck!