PHPackages                             positron48/google-analytics-widget - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. positron48/google-analytics-widget

ActiveBolt-extension[Utility &amp; Helpers](/categories/utility)

positron48/google-analytics-widget
==================================

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

1.1.0(4y ago)119MITPHPPHP &gt;=7.1.3

Since Sep 4Pushed 4y agoCompare

[ Source](https://github.com/positron48/googleanalyticswidget)[ Packagist](https://packagist.org/packages/positron48/google-analytics-widget)[ RSS](/packages/positron48-google-analytics-widget/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

Google Analytics Widget
=======================

[](#google-analytics-widget)

Setting up
----------

[](#setting-up)

1. Setting and create key to access google api via google [devguide](https://developers.google.com/analytics/devguides/config/mgmt/v3/quickstart/service-php).
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
4. Now you have service account with email like \*\*\*@\*\*\*.iam.gserviceaccount.com. Go to [google analytics](https://analytics.google.com/analytics/web/) &gt; *admin* &gt; *manage access* and add this email to list.

You also can add extension to show analytics in admin panel: .

```
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

[](#reference-material)

- [Google Developers Console](https://console.developers.google.com/?hl=nl&pli=1)
- [Hello Analytics API: PHP quickstart for service accounts](https://developers.google.com/analytics/devguides/config/mgmt/v3/quickstart/service-php)
- [Ben Marshall - Google Analytics API Tutorial](https://benmarshall.me/google-analytics-api-tutorial/)
- [Google - Dimensions &amp; Metrics Explorer](https://developers.google.com/analytics/devguides/reporting/core/dimsmets)
- [Sanwe3be - Display Top URLs With Google Analytics API](https://www.sanwebe.com/2013/05/top-viewed-pages-with-google-analytics-api)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~324 days

Total

4

Last Release

1475d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/debafa207b3e0269ddd24d1897ad45f0e76f4d809d4651c92961dc90a13ae44c?d=identicon)[positron48](/maintainers/positron48)

---

Top Contributors

[![bobdenotter](https://avatars.githubusercontent.com/u/1833361?v=4)](https://github.com/bobdenotter "bobdenotter (7 commits)")[![crim3hound](https://avatars.githubusercontent.com/u/29301735?v=4)](https://github.com/crim3hound "crim3hound (1 commits)")[![positron48](https://avatars.githubusercontent.com/u/10388425?v=4)](https://github.com/positron48 "positron48 (1 commits)")

---

Tags

extensionstatisticsgoogle-analyticsbolt

###  Code Quality

Code StyleECS

### Embed Badge

![Health badge](/badges/positron48-google-analytics-widget/health.svg)

```
[![Health](https://phpackages.com/badges/positron48-google-analytics-widget/health.svg)](https://phpackages.com/packages/positron48-google-analytics-widget)
```

###  Alternatives

[rubix/tensor

A library and extension that provides objects for scientific computing in PHP.

2751.4M5](/packages/rubix-tensor)[fof/analytics

Tracks analytics using Google Analytics, Google Optimize/GTM and Matomo

3543.1k](/packages/fof-analytics)[tomatophp/filament-seo

Manage and generate SEO tags and integrate your website with Google SEO services

112.6k1](/packages/tomatophp-filament-seo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
