Skip to content

Latest commit

 

History

History
66 lines (35 loc) · 1.89 KB

usage-analytics.md

File metadata and controls

66 lines (35 loc) · 1.89 KB

Analytics

Integrate with Google Analytics

Getting credentials

Please check instruction in Admin -> Settings -> General.

Instructions

Google tag ID: https://support.google.com/analytics/answer/9539598#find-G-ID

Property ID: https://developers.google.com/analytics/devguides/reporting/data/v1/property-id

Service Account Credentials: https://github.com/akki-io/laravel-google-analytics/wiki/2.-Configure-Google-Service-Account-&-Google-Analytics

After getting JSON credential file, you need to open this file and copy content to "Service Account Credential" field.

The final setting will look like this:

Demo settings

Check this video:

<iframe width="560" height="315" src="https://www.youtube.com/embed/2q7ufd8W8WI?si=XZnYcfZ55vg2WgSg" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

Troubleshooting

Service is not enabled

If you got this error:

Image

You need to enable "Google Analytics Data API".

Select project

Image

Search for API

Image

Enable API

Image

Setup timezone and clear cache

  • Go to Admin -> Settings -> General and setup timezone to your local timezone.

Image

  • Go to Admin -> Platform Administration -> Cache management and clear your site cache.

Image

::: 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!