PHPackages                             bkstar123/bkscms-site-stats - 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. bkstar123/bkscms-site-stats

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bkstar123/bkscms-site-stats
===========================

A bkstar123/bkscms's package visualizes some basic Google Analytics data for a website from a \*\*BKSCMS\*\* CMS project

1.0.1(6y ago)021MITJavaScriptPHP ^7.1.3

Since Nov 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/bkstar123/bkscms-site-stats)[ Packagist](https://packagist.org/packages/bkstar123/bkscms-site-stats)[ RSS](/packages/bkstar123-bkscms-site-stats/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (4)Used By (0)

bkscms-site-stats
=================

[](#bkscms-site-stats)

> A bkstar123/bkscms's package visualizes some basic Google Analytics data for a website from a **BKSCMS** CMS project

The following information is included in the site statistics:

- Number of new visitor
- Number of returning visitor
- Page view per session
- Average session duration
- Bounce rate
- Average page load time
- Total page views and visitors
- Browser usage
- Top visited pages
- Top visiting countries
- Top visiting operating systems
- Total 1-day, 7-day, 30-day active users

For creating a **BKSCMS** project, run the following command:
`composer create-project --prefer-dist bkstar123/bkscms `

1. Requirement
--------------

[](#1-requirement)

It is recommended to install this package with PHP version 7.1.3+ and Laravel Framework version 5.6+.

2. Installation
---------------

[](#2-installation)

```
composer require bkstar123/bkscms-site-stats

```

Then, publish the package's configuration &amp; assets:
`php artisan vendor:publish --provider="Bkstar123\BksCMS\SiteStats\Providers\SiteStatsServiceProvider"`

In the underlaying layer, it uses ***spatie/laravel-analytics*** package to retrieve data from Google Analytics. Please refer to  for more details on how to obtain the credentials to communicate with Google Analytics.

You can also tweak **spatie/laravel-analytics**'s configuration by publishing its assets to **config/analytics.php** as follows:
`php artisan vendor:publish --provider="Spatie\Analytics\AnalyticsServiceProvider"`.

3. Usage
--------

[](#3-usage)

In **.env**, set the environment variable **ANALYTICS\_VIEW\_ID** to the value of **View ID** of the monitored site on Google Analytics console.

Download **service-account-credentials.json** file from Google Analytics, and put it to **storage/app/analytics/service-account-credentials.json**.

The Google Analytics dashboard will be exposed under the path **/cms/sitestatistics** with the route name of **cms.sitestatistics**.

Finally, you can add the link of the Google Analytics dashboard to the **/config/bkstar123\_bkscms\_sidebarmenu**.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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.

###  Release Activity

Cadence

Every ~6 days

Total

2

Last Release

2356d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90147e91656dcac27be0a14b7600445eae40a5a8f3859f8ac9e1f9a051626095?d=identicon)[bkstar123](/maintainers/bkstar123)

---

Top Contributors

[![bkstar123](https://avatars.githubusercontent.com/u/12879662?v=4)](https://github.com/bkstar123 "bkstar123 (5 commits)")

---

Tags

laravelgoogle-analyticspage viewssite statisticsnew visitorsactive usersbounce ratereturning visitors

### Embed Badge

![Health badge](/badges/bkstar123-bkscms-site-stats/health.svg)

```
[![Health](https://phpackages.com/badges/bkstar123-bkscms-site-stats/health.svg)](https://phpackages.com/packages/bkstar123-bkscms-site-stats)
```

###  Alternatives

[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[foothing/laravel-simple-pageviews

281.5k](/packages/foothing-laravel-simple-pageviews)[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)
