PHPackages                             panchania83/laravel-nova-google-analytics-4 - 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. panchania83/laravel-nova-google-analytics-4

ActiveLibrary[API Development](/categories/api)

panchania83/laravel-nova-google-analytics-4
===========================================

Google Analytics 4 integration with Laravel Nova

1.0.1(2y ago)13611MITPHPPHP &gt;=7.4

Since Oct 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/panchania83/laravel-nova-google-analytics-4)[ Packagist](https://packagist.org/packages/panchania83/laravel-nova-google-analytics-4)[ Docs](https://github.com/panchania83/laravel-nova-google-analytics-4)[ RSS](/packages/panchania83-laravel-nova-google-analytics-4/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Google Analytics integration with Laravel Nova
==============================================

[](#google-analytics-integration-with-laravel-nova)

[![Latest Stable Version](https://camo.githubusercontent.com/1beb3f099ca59078fd432af4944b971a678da34ca19a683a2a480427818c8eaf/687474703a2f2f706f7365722e707567782e6f72672f70616e6368616e696138332f6c61726176656c2d6e6f76612d676f6f676c652d616e616c79746963732d342f76)](https://packagist.org/packages/panchania83/laravel-nova-google-analytics-4) [![Total Downloads](https://camo.githubusercontent.com/886915115fbb00f6cc7184604fa55dc4f8d029abcd2a997950a4a1dbec6b9987/687474703a2f2f706f7365722e707567782e6f72672f70616e6368616e696138332f6c61726176656c2d6e6f76612d676f6f676c652d616e616c79746963732d342f646f776e6c6f616473)](https://packagist.org/packages/panchania83/laravel-nova-google-analytics-4) [![License](https://camo.githubusercontent.com/ac1b5ff3d6f1184791b686b20a4c570db9c78b729d83f8a2daa81aa7086493c9/687474703a2f2f706f7365722e707567782e6f72672f70616e6368616e696138332f6c61726176656c2d6e6f76612d676f6f676c652d616e616c79746963732d342f6c6963656e7365)](https://packagist.org/packages/panchania83/laravel-nova-google-analytics-4) [![PHP Version Require](https://camo.githubusercontent.com/24aeede9f343c173acc8443acd31d8dc59e1dae74420f05898f628719316e1bd/687474703a2f2f706f7365722e707567782e6f72672f70616e6368616e696138332f6c61726176656c2d6e6f76612d676f6f676c652d616e616c79746963732d342f726571756972652f706870)](https://packagist.org/packages/panchania83/laravel-nova-google-analytics-4)

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

[](#installation)

You can install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require panchania83/laravel-nova-google-analytics-4
```

Optionally, you can publish the config file of this package with this command:

```
php artisan vendor:publish --tag="analytics-config"
```

The following config file will be published in `config/analytics.php`

```
return [

    /*
     * The property id of which you want to display data.
     */
    'property_id' => env('PROPERTY_ID'),

    /*
     * Path to the client secret json file. Take a look at the README of this package
     * to learn how to get this file. You can also pass the credentials as an array
     * instead of a file path.
     */
    'service_account_credentials_json' => storage_path('app/analytics/service-account-credentials.json'),
];
```

Also add this to the `.env` for your Nova app:

```
PROPERTY_ID=
```

Usage
-----

[](#usage)

Next up, you must register the card with Nova. This is typically done in the `cards` method of the `NovaServiceProvider`.

```
// in app/Providers/NovaServiceProvider.php

// ...

public function cards()
{
    return [
        // ...
        new \panchania83\LaravelNovaGoogleAnalytics4\VisitorsMetric,
        new \panchania83\LaravelNovaGoogleAnalytics4\GoogleAnalyticsCard,
    ];
}
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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 ~17 days

Total

2

Last Release

925d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/38a735adec55294e6865c02a447ea65adce544760fb82f59f96dfa6e6e6152db?d=identicon)[panchania83](/maintainers/panchania83)

---

Top Contributors

[![panchania83](https://avatars.githubusercontent.com/u/95633879?v=4)](https://github.com/panchania83 "panchania83 (6 commits)")

---

Tags

laravelnovagoogle analytics 4

### Embed Badge

![Health badge](/badges/panchania83-laravel-nova-google-analytics-4/health.svg)

```
[![Health](https://phpackages.com/badges/panchania83-laravel-nova-google-analytics-4/health.svg)](https://phpackages.com/packages/panchania83-laravel-nova-google-analytics-4)
```

###  Alternatives

[hammerstone/refine-nova

A Laravel Nova integration for the Refine query builder.

3356.5k](/packages/hammerstone-refine-nova)[coreproc/nova-echo

Adds Laravel Echo with your broadcast configuration to your Laravel Nova app

1996.9k2](/packages/coreproc-nova-echo)[gtmassey/laravel-analytics

Create and run Google Analytics Data API queries in Laravel

3868.4k](/packages/gtmassey-laravel-analytics)[vormkracht10/laravel-google-analytics-v4

Laravel package to get insights in Google Analytics v4 data

367.1k](/packages/vormkracht10-laravel-google-analytics-v4)[myoutdeskllc/laravel-analytics-v4

GA4 integration for laravel

153.9k](/packages/myoutdeskllc-laravel-analytics-v4)

PHPackages © 2026

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