Skip to content

Analytics

Integrate with Google Analytics

Getting credentials

Image

Image

  • Select your project and click on "ENABLE APIS AND SERVICES":

Image

  • Enable API:

Image

Image

Image

  • Generate service account key

Image

Image

Image

Image

Image

  • Open JSON file and copy its content, then go to Admin -> Settings -> General (/admin/settings/general) and update field "Service Account Credentials" in Analytics plugin settings by the content from JSON file:

It will look like this:

Image

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 to /admin/settings/general and tab "Google Analytics" and paste to field View ID.

Note: Change in Google Analytics 4 property.

When creating a new property, you need to check the "Create a Universal Analytics Property" checkbox.

Image

Then you will have view settings tab and View ID.

Image

  • 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.

Image

Image

Give your comment here if you got any problem.

Good luck!