PHPackages                             mercator/wn-matomo-plugin - 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. mercator/wn-matomo-plugin

Abandoned → [winter/wn-matomo-plugin](/?search=winter%2Fwn-matomo-plugin)Winter-plugin

mercator/wn-matomo-plugin
=========================

Matomo Analytics is a WinterCMS plugin for Matomo, a Google Analytics alternative that lets website owners own their analytical data and protect their customers' privacy. It provides tracking as well as reporting functionality.

0.9.011(4y ago)3391GPL-3.0-or-laterPHPPHP &gt;=7.2.9

Since Feb 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/helmutkaufmann/wn-matomo-plugin)[ Packagist](https://packagist.org/packages/mercator/wn-matomo-plugin)[ Docs](https://github.com/helmutkaufmann/wn-matomo-plugin)[ Fund](https://www.paypal.com/donate/?hosted_button_id=MZYBN2NEDEDNC)[ RSS](/packages/mercator-wn-matomo-plugin/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (0)

Matomo Analytics
================

[](#matomo-analytics)

Matomo Analytics is a [WinterCMS](https://wintercms.com) plugin for [Matomo](https://matomo.org), a Google Analytics alternative that lets website owners own their analytical data and protect their customers' privacy.

Prerequisites
-------------

[](#prerequisites)

You must have access to Matomo, either through the cloud services provided by [Matomo](https://matomo.org) or a [private Matomo instance](https://matomo.org/matomo-on-premise/). If you are paranoid about privacy, you might want to go for a private instance.

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

[](#installation)

Use Composer to install the plugin by executing

```
composer require mercator/wn-matomo-plugin

```

and running

```
php artisan winter:up
php artisan cache:clear

```

from the root of your [WinterCMS](https://wintercms.com) installation.

Alternatively, create a directory "mercator/matomo", download the [files from Github](https://github.com/helmutkaufmann/wn-matomo-plugin)and move them in the newly created sub-directory.

Installation from the [WinterCMS](https://wintercms.com) backend will be added once the [WinterCMS](https://wintercms.com) marketplace is available.

Plugin Usage
------------

[](#plugin-usage)

You must have basic knowledge about Matomo in order to use this plugin, in particular, you must know how to create new tracking instances, users and security tokens. Don't be worried. This is quite easy to learn by playing around with Matomo.

### Configuration

[](#configuration)

On the Winter backend, go to the settings of the plugin Matomo Analytics.

[![](READMEMatomoSettings.png)](READMEMatomoSettings.png)

To get Matomo Analytics running,

- identify the analytics server you intend to use (e.g., matomo.org).
- in the Matoma backend set your CMS server up for tracking and note down the server ID
- again in the in the Matoma backend generate a security token (so-called *Auth Token*). Note that the *Auth Token* must be created under user who does **not** have Admin access to
- enter the above three items in Winter CMS's backend section of the plugin
- potentially disable any adblocker you are using

### Tracking

[](#tracking)

To start tracking your visitors go to the CMS section of Winter CMS and drag-drop the tracking code onto the layout(s) of your Winter site.

[![](READMEMatomoComponent.png)](READMEMatomoComponent.png)

With that, Matomo should start tracking and you should see results shortly. Note that Matomo provides near-realtime results with an emphasis on "near", so you might have to wait a few minutes to see first results.

### Reporting

[](#reporting)

Goto Winter's Dashbaord and add a new widget. Select *Matomo Widget* as the widget type in Winter's dashboard when adding a new widget. Then, select the actual report type. For each report added, you can change the reporting period (7/30/360 days) as well as the way the report is rendered (e.g., a pie chart). It is also possible to export the data of an individual report.

[![](READMEMatomoDashboard.png)](READMEMatomoDashboard.png)

In addition, the full Matomo Dashboard is available. This is a replica of the dashboard found in Matomo's backend. Simply select *Matomo Dashboard* as the widget type when creating the widget in in Winter's dashbaord.

The *Reports* tab in the backend provides a list of the available reports.

[![](READMEMatomoReports.png)](READMEMatomoReports.png)

First Aid
---------

[](#first-aid)

If you cannot select *Matomo Widget* or *Matomo Dashboard* when adding a widget, review the configuration settings in the backend. In particular ensure that *Winter Dashboard Widgets* is enabled.

Should you see an error message on your Winter Dashboard

- review the configuration settings in the backend
- make sure the Matomo users, whose Auth Token you are using, is *only* having *Read* privileges.

Should you see empty widgets on your Winter Dashboard

- review the configuration settings in the backend
- review the configuration settings of the widget, in particular that you have indeed selected a report and that the representation makes sense

If your Matomo widgets do not resize (and parts of the content is hidden)

- set the width of the widget in the widget configuration to another value, e.g., 6 columns instead of 12. You can set it to its original value afterwards
- remove and re-add the widget

Thank You
---------

[](#thank-you)

I would like to thank the guys from [WinterCMS](https://wintercms.com) for their ongoing support - not just for getting this plugin done but also the other ones I have been writing over the course of the past two years.

Note that this is not about money. It is about appreciation of my time.

Contributing
------------

[](#contributing)

Feel free to send pull request! Please, send Pull Request to the master branch.

A Final Word
------------

[](#a-final-word)

This plugin has been compiled by Helmut Kaufmann, Küssnacht am Rigi, in Switzerland. Helmut can be reached by mail at .

While it might look simple, putting this plugin together took some time. So, if you find it useful, feel free to sponsor a beer, two or more are welcome as well. [PayPal](https://www.paypal.com/donate/?hosted_button_id=MZYBN2NEDEDNC) might be your best friend for this...

License
-------

[](#license)

Copyright 2022 by Helmut Kaufmann, Küssnacht am Rigi, Switzerland ().

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program.
If not, see [](https://www.gnu.org/licenses).

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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

Total

6

Last Release

1538d ago

PHP version history (2 changes)0.9.006PHP &gt;=7.0

0.9.007PHP &gt;=7.2.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d4325040b5bcb235cf0f7555ec5b28498935f54c74bb90c3b2828461598500d?d=identicon)[mercator](/maintainers/mercator)

---

Tags

phplaravelgooglematomocmsanalyticsreplacementwinterwintercms

### Embed Badge

![Health badge](/badges/mercator-wn-matomo-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/mercator-wn-matomo-plugin/health.svg)](https://phpackages.com/packages/mercator-wn-matomo-plugin)
```

###  Alternatives

[wintercms/winter

Free, open-source, self-hosted CMS platform based on the Laravel PHP Framework. Originally known as October CMS.

1.5k43.3k](/packages/wintercms-winter)[gdg-tangier/cloud-pubsub

Google Cloud pub-sub for laravel

5054.9k](/packages/gdg-tangier-cloud-pubsub)

PHPackages © 2026

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