PHPackages                             rocramer/nova-matomo-analytics - 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. rocramer/nova-matomo-analytics

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

rocramer/nova-matomo-analytics
==============================

Matomo Analytics cards for Laravel Nova.

v0.5.0(5y ago)2226.0k↓33.3%5[1 issues](https://github.com/rocramer/nova-matomo-analytics/issues)MITVuePHP &gt;=7.1.0

Since Nov 15Pushed 5y ago2 watchersCompare

[ Source](https://github.com/rocramer/nova-matomo-analytics)[ Packagist](https://packagist.org/packages/rocramer/nova-matomo-analytics)[ RSS](/packages/rocramer-nova-matomo-analytics/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)DependenciesVersions (11)Used By (0)

Matomo Analytics for Nova
=========================

[](#matomo-analytics-for-nova)

*Matomo Analytics for Nova* provides some basic Matomo metrics and page tables for your Laravel Nova dashboard.

[![image](https://camo.githubusercontent.com/943df6a1b41587d457fdafb3c6dcb1ddab8e0f658e7db1c5b8476c64d0178035/68747470733a2f2f7777772e726f62696e6372616d65722e64652f77702d636f6e74656e742f75706c6f6164732f323031382f31322f6d61746f6d6f2d6e6f76612e706e67)](https://camo.githubusercontent.com/943df6a1b41587d457fdafb3c6dcb1ddab8e0f658e7db1c5b8476c64d0178035/68747470733a2f2f7777772e726f62696e6372616d65722e64652f77702d636f6e74656e742f75706c6f6164732f323031382f31322f6d61746f6d6f2d6e6f76612e706e67)

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

[](#installation)

You can install the package via composer:

```
composer require rocramer/nova-matomo-analytics

```

After that you can register the following metrics on a dashboard of your choice:

```
protected function cards()
{
    return [
        new \Rocramer\MatomoAnalytics\Cards\UniqueVisitors(),
        new \Rocramer\MatomoAnalytics\Cards\Visits(),
        new \Rocramer\MatomoAnalytics\Cards\VisitLength(),
        new \Rocramer\MatomoAnalytics\Cards\BounceRate(),
        new \Rocramer\MatomoAnalytics\Cards\Outlinks(),
        new \Rocramer\MatomoAnalytics\Cards\Downloads(),
        new \Rocramer\MatomoAnalytics\Cards\EntryPages(),
        new \Rocramer\MatomoAnalytics\Cards\ExitPages(),
        new \Rocramer\MatomoAnalytics\Cards\MostViewedPages(),
    ];
}
```

The plugin requires your Matomo url, token and side id in your `config/services.php` file:

```
'matomo' => [
    'token'   => env('MATOMO_TOKEN'),
    'url'     => env('MATOMO_URL'),
    'page_id' => env('MATOMO_PAGE_ID')
]
```

This is a first version. More Nova Cards and an own dashboard for Matomo metrics are planned for the future.

Feel free to create a PR or contribute suggestions.

Customization
-------------

[](#customization)

### Caching

[](#caching)

By default, all cards get cached for 5 minutes. You can change that behaviour by adding a `caching` setting with the number of minutes you want to cache within your `config/services.php` file:

```
'matomo' => [
    'token'   => env('MATOMO_TOKEN'),
    'url'     => env('MATOMO_URL'),
    'page_id' => env('MATOMO_PAGE_ID'),
    'caching' => 3
]
```

If you want to fully disable caching for the cards, just set the value to `false`.

### Localization

[](#localization)

This package uses localization via [Laravel Translation Strings](https://laravel.com/docs/5.7/localization#retrieving-translation-strings). Therefore, you can add localization support for your cards by adding the keys with their corresponding translations to your JSON localization files. So, for German language support add the following keys in `resources/lang/vendor/nova/de.json`:

```
"Unique Visitors": "Eindeutige Besucher",
"Visits": "Aufrufe",
"Visit Length": "Besuchsdauer",
"Outlinks": "Ausgehende Verweise",
"Bounce Rate": "Absprungrate",
"Downloads": "Downloads",
"seconds (avg.)": "Sekunden (Durchschnitt)",
"Days": "Tage",
"Clicks": "Klicks",
"Unique Clicks": "Eindeutige Klicks",
"URL": "URL",
"No data found.": "Keine Daten gefunden.",
"Time on Page (avg.)": "Besuchsdauer (Durchschnitt)",
"Exit Rate": "Ausstiegsrate",
"Page Load Time (avg.)": "Seitenladezeit (Durchschnitt)",
"Entry Pages": "Einstiegsseiten",
"Exit Pages": "Ausstiegsseiten",
"Most Viewed Pages": "Am häufigsten besuchte Seiten",
```

License
-------

[](#license)

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

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.3% 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 ~126 days

Recently: every ~94 days

Total

8

Last Release

1853d ago

### Community

Maintainers

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

---

Top Contributors

[![rocramer](https://avatars.githubusercontent.com/u/4487988?v=4)](https://github.com/rocramer "rocramer (29 commits)")[![marcreichel](https://avatars.githubusercontent.com/u/7645035?v=4)](https://github.com/marcreichel "marcreichel (6 commits)")[![ferdinandfrank](https://avatars.githubusercontent.com/u/19409640?v=4)](https://github.com/ferdinandfrank "ferdinandfrank (2 commits)")[![ajhaupt7](https://avatars.githubusercontent.com/u/12263163?v=4)](https://github.com/ajhaupt7 "ajhaupt7 (1 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/rocramer-nova-matomo-analytics/health.svg)

```
[![Health](https://phpackages.com/badges/rocramer-nova-matomo-analytics/health.svg)](https://phpackages.com/packages/rocramer-nova-matomo-analytics)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[genealabs/laravel-overridable-model

Provide a uniform method of allowing models to be overridden in Laravel.

92398.0k2](/packages/genealabs-laravel-overridable-model)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17165.2k](/packages/murdercode-nova4-tinymce-editor)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12218.4k](/packages/yieldstudio-nova-google-autocomplete)

PHPackages © 2026

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