PHPackages                             the-3labs-team/nova-google-analytics-cards - 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. [API Development](/categories/api)
4. /
5. the-3labs-team/nova-google-analytics-cards

ActiveLibrary[API Development](/categories/api)

the-3labs-team/nova-google-analytics-cards
==========================================

Google Analytics integration with Nova Metrics

v2.0.4(1y ago)02.6k1[4 PRs](https://github.com/The-3Labs-Team/nova-google-analytics-cards/pulls)MITPHPPHP ^8.1|^8.2|^8.3CI passing

Since Aug 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/The-3Labs-Team/nova-google-analytics-cards)[ Packagist](https://packagist.org/packages/the-3labs-team/nova-google-analytics-cards)[ Docs](https://github.com/The-3Labs-Team/nova-google-analytics-cards)[ RSS](/packages/the-3labs-team-nova-google-analytics-cards/feed)WikiDiscussions main Synced yesterday

READMEChangelog (8)Dependencies (4)Versions (13)Used By (0)

[![Logo Nova Google Analytics Cards by The3LabsTeam](https://github.com/the-3labs-team/nova-google-analytics-cards/raw/HEAD/art/banner.png)](https://github.com/the-3labs-team/nova-google-analytics-cards/raw/HEAD/art/banner.png)

Nova Google Analytics Cards
===========================

[](#nova-google-analytics-cards)

Stay on top of your website's performance with the Google Analytics Insights Package for Laravel Nova. This powerful integration empowers you to seamlessly integrate Google Analytics data directly into your Nova dashboard, offering you a comprehensive and real-time overview of your website's key metrics.

Requirements
------------

[](#requirements)

- php ^8.1|^8.2|^8.3
- laravel/framework ^10.0|^11.0

Version Compatibility
---------------------

[](#version-compatibility)

LaravelNovaPHPPackage10.x4.x8.11.x11.x4.x8.2/8.32.xInstallation
------------

[](#installation)

You can install the package via composer:

```
composer require the-3labs-team/nova-google-analytics-cards
```

You can publish the config file with:

```
php artisan vendor:publish
```

and choose: `The3LabsTeam\NovaGoogleAnalyticsCards\NovaGoogleAnalyticsCardsServiceProvider`.

You can publish the Google Analytics config file with:

```
php artisan vendor:publish
```

**and select: `Spatie\Analytics\AnalyticsServiceProvider`.**

**Note:** this package uses [Laravel Analytics](https://github.com/spatie/laravel-analytics), so you need to configure it in your `config/analytics.php` file.

**The config file is documented, so choose the option that best suits your needs.**

Usage
-----

[](#usage)

```
use The3LabsTeam\NovaGoogleAnalyticsCards\Counter\ActiveUsersCounter;use The3LabsTeam\NovaGoogleAnalyticsCards\Counter\NewUsersCounter;use The3LabsTeam\NovaGoogleAnalyticsCards\Counter\PageViewsCounter;use The3LabsTeam\NovaGoogleAnalyticsCards\LineChart\PageViewLineChart;

...

(new ActiveUsersCounter())
(new NewUsersCounter())
(new PageViewsCounter())

(new PageViewLineChart())
```

You can also override the name of cards like this:

```
use The3LabsTeam\NovaGoogleAnalyticsCards\Counter\ActiveUsersCounter;
...

(new ActiveUsersCounter(name: 'The name of the card (string)'))
```

### Using the `PageViewLineChart` and `RefClickPartition` card in single Article

[](#using-the-pageviewlinechart-and-refclickpartition-card-in-single-article)

1. Add in your `Article` model the following attribute:

```
/**
* Return the page path for Google Analytics
*/
public function getGaPagePathAttribute(): string
{
   return str_replace(config('app.url'), '', $this->route);
}
```

2. Add the card in your `Nova\Article` resource:

```
public function cards(NovaRequest $request)
{
    return [
        (new PageViewLineChart(articleId: $request->resourceId))->width('1/2 ')
            ->onlyOnDetail()
            ->height('dynamic'),
        (new RefClickPartition(articleId: $request->resourceId))->width('1/3')
                ->onlyOnDetail()
                ->height('dynamic'),
    ];
}
```

Sponsor
-------

[](#sponsor)

 [ ![Tom's Hardware - Notizie, recensioni, guide all'acquisto e approfondimenti per tutti gli appassionati di computer, smartphone, videogiochi, film, serie tv, gadget e non solo](https://camo.githubusercontent.com/a9fa1ed2b6a72e6fcb0b2f3176c99d5073f5b75d532223562736659d447022f2/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f746f6d732e706e67) ](https://www.tomshw.it/) [ ![Spaziogames - Tutto sul mondo dei videogiochi. Troverai tantissime anteprime, recensioni, notizie dei giochi per tutte le console, PC, iPhone e Android.](https://camo.githubusercontent.com/e197c1e8d1428d36e0a1f9b9ec750b26d9432a7a2911c926c3aa29852edfdf6b/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f7370617a696f2e706e67) ](https://spaziogames.it/)
 [ ![Cpop - News, recensioni, guide su fumetto, cinema & serie TV, gioco da tavolo e di ruolo e collezionismo. Tutto quello di cui hai bisogno per rimanere aggiornato sul mondo della cultura pop](https://camo.githubusercontent.com/d6c1e37a8034b0d2d7df21c8130509e6ca539141bbed582a39021ea1a9f9d479/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f63706f702e706e67) ](https://cpop.it/) [ ![Data4Biz - Sito dedicato alla trasformazione digitale del business](https://camo.githubusercontent.com/5558e851010e4ae4b5cb43921a90e7cf67afd89d3e6b9ce5c780858e6f34ab19/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f6434622e706e67) ](https://data4biz.com/)
 [ ![SOS Home & Garden - Realtà dedicata a 360 gradi ai settori della casa e del giardino.](https://camo.githubusercontent.com/ef1f19fa4635ea5a313915fb5e7e4fdfc97007e168f51cf4da5009a9b1934da2/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f736f732e706e67) ](https://soshomegarden.com/) [ ![Techradar - Le ultime notizie e recensioni dal mondo della tecnologia, su computer, sistemi per la casa, gadget e altro.](https://camo.githubusercontent.com/df0dac8e4d85175fac6143938c38e370f9fdfa60d19647e8cafe554624246b33/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f7465636872616461722e706e67) ](https://global.techradar.com/it-it)
 [ ![Aibay - Scopri AiBay, il leader delle notizie sull'intelligenza artificiale. Resta aggiornato sulle ultime innovazioni, ricerche e tendenze del mondo AI con approfondimenti, interviste esclusive e analisi dettagliate.](https://camo.githubusercontent.com/647cb00914c70c5851526defce1b0a9ec012e2fcd97ddb029c8abda7bf9c2037/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f61696261792e706e67) ](https://aibay.it/) [ ![Coinlabs - Notizie, analisi approfondite, guide e opinioni aggiornate sul mondo delle criptovalute, blockchain e finanza](https://camo.githubusercontent.com/5b483d538588264ca081383dacf830d9aab280a07c2388c70bd02887ef59fa0f/68747470733a2f2f336c6162732d6173736574732e622d63646e2e6e65742f6173736574732f6c6f676f732f62616e6e65722d6769746875622f636f696e6c6162732e706e67) ](https://coinlabs.it/)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance43

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 85.1% 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 ~82 days

Recently: every ~0 days

Total

8

Last Release

486d ago

Major Versions

v1.0.1 → v2.0.0-beta.12024-03-18

PHP version history (2 changes)v1.0.0PHP ^8.1|^8.2

v2.0.0-beta.1PHP ^8.1|^8.2|^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7630252?v=4)[Stefano Novelli](/maintainers/murdercode)[@murdercode](https://github.com/murdercode)

![](https://avatars.githubusercontent.com/u/122809067?v=4)[the-3labs-team](/maintainers/the-3labs-team)[@The-3Labs-Team](https://github.com/The-3Labs-Team)

---

Top Contributors

[![Claudio-Emmolo](https://avatars.githubusercontent.com/u/113107618?v=4)](https://github.com/Claudio-Emmolo "Claudio-Emmolo (40 commits)")[![murdercode](https://avatars.githubusercontent.com/u/7630252?v=4)](https://github.com/murdercode "murdercode (7 commits)")

---

Tags

analyticscardslaravelnovaphplaravelanalyticsgoogle-analyticsnovanova-metrics

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/the-3labs-team-nova-google-analytics-cards/health.svg)

```
[![Health](https://phpackages.com/badges/the-3labs-team-nova-google-analytics-cards/health.svg)](https://phpackages.com/packages/the-3labs-team-nova-google-analytics-cards)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k9.5M89](/packages/openai-php-laravel)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

3.0k37.6M134](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M63](/packages/knuckleswtf-scribe)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

211189.7k8](/packages/bezhansalleh-filament-google-analytics)[tightenco/nova-google-analytics

Google Analytics integration with Nova

166130.3k2](/packages/tightenco-nova-google-analytics)

PHPackages © 2026

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