positron48/google-analytics-widget

📊 This Bolt extension shows a Google Analytics visitor stats on the Dashboard

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 2

Type:bolt-extension

1.1.0 2022-05-04 19:19 UTC

This package is auto-updated.

Last update: 2024-05-04 23:52:09 UTC


README

Setting up

  1. Setting and create key to access google api via google devguide.

  2. Put downloaded json-key to /config/extensions/service-account-credentials.json.

    Warning! This file contents private key - don't add it to git repo even it is private. Add config/extensions/service-account-credentials.json to .gitignore file.

  3. Enable google analytics api access via your key https://console.cloud.google.com/apis/library/analytics.googleapis.com

  4. Now you have service account with email like ***@***.iam.gserviceaccount.com. Go to google analytics > admin > manage access and add this email to list.

You also can add extension to show analytics in admin panel: https://extensions.boltcms.io/package/bobdenotter-google-analytics-widget.

composer require bobdenotter/google-analytics-widget

On index admin page (/bolt) you can see panel with some diagrams (may be you need to wait some hours while analytics will be refreshed).

Reference material