PHPackages                             yajra/analytics-module - 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. yajra/analytics-module

ActiveLaravel-module[Utility &amp; Helpers](/categories/utility)

yajra/analytics-module
======================

YajraCMS Google Analytics Module

2152HTML

Since Jun 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/yajra/analytics-module)[ Packagist](https://packagist.org/packages/yajra/analytics-module)[ RSS](/packages/yajra-analytics-module/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

YajraCMS Google Analytics Module
================================

[](#yajracms-google-analytics-module)

Installation
------------

[](#installation)

- Install module: `composer require yajra/analytics-module`
- Publish config: `php artisan vendor:publish --provider="Spatie\Analytics\AnalyticsServiceProvider"`
- Update `.env` and add your `ANALYTICS_VIEW_ID`
- Copy and paste your google service account credentials on `storage/app/analytics/service-account-credentials.json`

TODO
----

[](#todo)

- Fetch all widgets data via ajax request.
- Convert period of each widgets to ajax parameters.
- Add total stats along with the graph.

Credits
-------

[](#credits)

This module uses [laravel-analytics](https://github.com/spatie/laravel-analytics) package.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c245d1effe6022f9f09b2e8b9cce26743de03a64d612cea4ce9885560d7c0b2?d=identicon)[yajra](/maintainers/yajra)

---

Top Contributors

[![yajra](https://avatars.githubusercontent.com/u/2687997?v=4)](https://github.com/yajra "yajra (18 commits)")

---

Tags

analyticscmsgooglelaravelmodulereportingyajra

### Embed Badge

![Health badge](/badges/yajra-analytics-module/health.svg)

```
[![Health](https://phpackages.com/badges/yajra-analytics-module/health.svg)](https://phpackages.com/packages/yajra-analytics-module)
```

PHPackages © 2026

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