PHPackages                             luyadev/luya-module-matomo - 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. luyadev/luya-module-matomo

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

luyadev/luya-module-matomo
==========================

Matomo (former piwik) analytics

1.0.2(6y ago)04.0kMIT

Since Mar 5Compare

[ Source](https://github.com/luyadev/luya-module-matomo)[ Packagist](https://packagist.org/packages/luyadev/luya-module-matomo)[ Docs](http://luya.io)[ RSS](/packages/luyadev-luya-module-matomo/feed)WikiDiscussions Synced today

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

 [![LUYA Logo](https://raw.githubusercontent.com/luyadev/luya/master/docs/logo/luya-logo-0.2x.png)](https://raw.githubusercontent.com/luyadev/luya/master/docs/logo/luya-logo-0.2x.png)

Matomo (Piwik) Module
=====================

[](#matomo-piwik-module)

[![LUYA](https://camo.githubusercontent.com/c30b61934591d3a6fcb8718a93fd61bf840c0abd8a8d49aa0fdd4ab99567bdf4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f776572656425323062792d4c5559412d627269676874677265656e2e737667)](https://luya.io)[![Latest Stable Version](https://camo.githubusercontent.com/ef1004645cd8df81da3d4790d6f319fed6c4aae7cba5caa4825ad65369489e07/68747470733a2f2f706f7365722e707567782e6f72672f6c7579616465762f6c7579612d6d6f64756c652d6d61746f6d6f2f762f737461626c65)](https://packagist.org/packages/luyadev/luya-module-matomo)[![Total Downloads](https://camo.githubusercontent.com/37fa1ec06e2032e492ca21f56f56f3bb9d8219a4f5132d024f78a4ea297e4e08/68747470733a2f2f706f7365722e707567782e6f72672f6c7579616465762f6c7579612d6d6f64756c652d6d61746f6d6f2f646f776e6c6f616473)](https://packagist.org/packages/luyadev/luya-module-matomo)[![Slack Support](https://camo.githubusercontent.com/3574a291a5d77f541be2a9aebff47cf60ed44274b70f9d90bdf6d0d7f4911892/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f536c61636b2d6c7579616465762d79656c6c6f77677265656e2e737667)](https://slack.luya.io/)

Provide TrackingCode implementation Widget and Admin-Dashboard object to see latest visits from Matomo (former Piwik).

 [![LUYA Logo](https://raw.githubusercontent.com/luyadev/luya-module-matomo/master/matomo.png)](https://raw.githubusercontent.com/luyadev/luya-module-matomo/master/matomo.png)

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

[](#installation)

For the installation of modules Composer is required.

```
composer require luyadev/luya-module-matomo
```

In order to add the modules to your project go into the modules section of your config:

```
'modules' => [
    // ...
    'matomoadmin' => [
        'class' => 'luya\matomo\Module',
         'serverUrl' => 'https://matomo.example.com', // without trailing slash, use full schema path.
         'siteId' => 1,
         'apiToken' => 'THE_API_TOKEN',
    ]
]
```

- serverUrl: the URL which points to the Matomo installation
- siteId: get the site Id in the Matomo dashboard under Settings &gt; Websites &gt; Manage
- apiToken: get the Matomo API token under Settings &gt; Platform &gt; API &gt; User authentication

Usage
-----

[](#usage)

After configure the admin module you can now integrate the TrackingCode widget. The tracking code will register the javascript tracking and as fall back also the tracking image between noscript tags.

We reccommend to integrate the TrackingCodeWidget right before the endBody() function in the layout.

```

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 64.5% 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 ~358 days

Total

3

Last Release

2322d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86184bf08843ed8fcc4aedb2fdecd8a9e832e47e89a7166cebfda529c176f5ce?d=identicon)[nadar](/maintainers/nadar)

---

Top Contributors

[![nadar](https://avatars.githubusercontent.com/u/3417221?v=4)](https://github.com/nadar "nadar (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![martinpetrasch](https://avatars.githubusercontent.com/u/6354795?v=4)](https://github.com/martinpetrasch "martinpetrasch (3 commits)")[![hbugdoll](https://avatars.githubusercontent.com/u/6715827?v=4)](https://github.com/hbugdoll "hbugdoll (2 commits)")[![rolandschaub](https://avatars.githubusercontent.com/u/3786245?v=4)](https://github.com/rolandschaub "rolandschaub (1 commits)")

---

Tags

phppiwikmatomomoduleluya

### Embed Badge

![Health badge](/badges/luyadev-luya-module-matomo/health.svg)

```
[![Health](https://phpackages.com/badges/luyadev-luya-module-matomo/health.svg)](https://phpackages.com/packages/luyadev-luya-module-matomo)
```

PHPackages © 2026

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