PHPackages                             tetsuo13/piwik\_tracking\_api - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. tetsuo13/piwik\_tracking\_api

Abandoned → [tetsuo13/matomo\_tracking\_api](/?search=tetsuo13%2Fmatomo_tracking_api)Roundcube-plugin[Mail &amp; Notifications](/categories/mail)

tetsuo13/piwik\_tracking\_api
=============================

Add Piwik tracking server-side code to all requests in Roundcube

2.0.0(9y ago)232[2 issues](https://github.com/tetsuo13/Roundcube-Matomo-Tracking-Api-Plugin/issues)GPLv3+PHPCI passing

Since Apr 16Pushed 5mo ago3 watchersCompare

[ Source](https://github.com/tetsuo13/Roundcube-Matomo-Tracking-Api-Plugin)[ Packagist](https://packagist.org/packages/tetsuo13/piwik_tracking_api)[ Docs](https://github.com/tetsuo13/Roundcube-Piwik-Tracking-Api-Plugin)[ RSS](/packages/tetsuo13-piwik-tracking-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

Matomo Tracking Plugin for Roundcube
====================================

[](#matomo-tracking-plugin-for-roundcube)

[![Continuous integration](https://github.com/tetsuo13/Roundcube-Matomo-Tracking-Api-Plugin/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/tetsuo13/Roundcube-Matomo-Tracking-Api-Plugin/actions/workflows/ci.yml)[![Stable Version](https://camo.githubusercontent.com/186ad17c2a4c3092654784cbe04cfd5d3cce22eb31cb5cb1f0dab1a774659b1b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74657473756f31332f6d61746f6d6f5f747261636b696e675f6170692e737667)](https://packagist.org/packages/tetsuo13/matomo_tracking_api)

This plugin integrates Matomo analytics using the [Matomo Tracking API](https://matomo.org/docs/tracking-api/) into Roundcube. This plugin is very different from the [Roundcube Webmail piwik analytics plugin](https://blog.no-panic.at/projects/roundcube-webmail-piwik-analytics-plugin/)which adds the client-side [JavaScript Tracking Tag](https://developer.matomo.org/api-reference/tracking-javascript). The aim of this plugin is to add Matomo integration on the server-side in order to get around same-origin policy.

If your Matomo installation is on the same domain as your Roundcube installation and both are using the same protocol, then this plugin is probably not what you need as it will not add any significant value over the JavaScript Tracking Tag. Some example cases where this plugin shines:

- Matomo at `http://analytics.company.com`, Roundcube at `https://webmail.company.com`
- Matomo at `http://analytics.company.com`, Roundcube at `http://webmail.othercompany.com`

Install
-------

[](#install)

Install using Composer or manually download and install into `plugins/matomo_tracking_api`. Copy `config.inc.php.dist` to `config.inc.php`in the same directory and edit the file using the options shown below.

Add matomo\_tracking\_api to `$config['plugins']` in your Roundcube config to enable the plugin.

Configuration
-------------

[](#configuration)

Copy `config.inc.php.dist` to `config.inc.php` and edit the configuration variables. Set optional variables to `null` when unused.

**matomo\_tracking\_api\_url** \[string\]

Set this to the URL of the Matomo installation. This URL must be accessible from the Roundcube installation.

**matomo\_tracking\_api\_site\_id** \[int|array(string =&gt; int)\]

Configures the Matomo site ID. The value of this variable can either be a single integer or an array containing multiple server names and IDs in cases where a single Roundcube installation serves multiple hosts.

To set multiple hosts, use the key/value pair of server name and Matomo website ID. For example:

```
$rcmail_config['matomo_tracking_api_site_id'] = array(
    'webmail.foo.com' => 42,
    'webmail.bar.com' => 13
);
```

**matomo\_tracking\_api\_track\_user\_id** \[boolean\]

When enabled, the user's email address will be used to connect multiple devices and browsers. See [Benefits of User ID](https://matomo.org/docs/user-id/#benefits-of-enabling-user-id-tracking)at Matomo's User Guide for more information.

**matomo\_tracking\_api\_token\_auth** \[string\] *(Optional)*

Set to the token auth key of a Matomo user in order to take advantage of advanced tracking. Currently utilizes the following if provided:

- Sets remote IP to that of the user instead of defaulting to the IP of the Roundcube installation.

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 88.4% 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 ~108 days

Total

3

Last Release

3440d ago

Major Versions

1.1.0 → 2.0.02016-12-07

### Community

Maintainers

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

---

Top Contributors

[![tetsuo13](https://avatars.githubusercontent.com/u/92477?v=4)](https://github.com/tetsuo13 "tetsuo13 (38 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")

---

Tags

matomopiwikroundcube-pluginroundcube-webmail-pluginmailpiwikroundcubetrackinganalytics

### Embed Badge

![Health badge](/badges/tetsuo13-piwik-tracking-api/health.svg)

```
[![Health](https://phpackages.com/badges/tetsuo13-piwik-tracking-api/health.svg)](https://phpackages.com/packages/tetsuo13-piwik-tracking-api)
```

###  Alternatives

[dsoares/rcguard

Roundcube plugin that enforces reCAPTCHA for users that have too many failed logins

243.9k](/packages/dsoares-rcguard)[kitist/html5_notifier

Desktop Notifications for Roundcube

7710.9k](/packages/kitist-html5-notifier)[weird-birds/thunderbird_labels

Shows thunderbird labels for messages in roundcube webmail.

6310.5k](/packages/weird-birds-thunderbird-labels)[toteph42/identity_switch

This plugin allows users to switch between different accounts (and check for new mails) in a single Roundcube session.

211.2k](/packages/toteph42-identity-switch)[elm/identity_smtp

Individual SMTP settings for every identity

481.5k](/packages/elm-identity-smtp)[texxasrulez/advanced_search

Add Advanced Search Capabilities

113.9k](/packages/texxasrulez-advanced-search)

PHPackages © 2026

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