{"id":16330379,"url":"https://github.com/tetsuo13/roundcube-matomo-tracking-api-plugin","last_synced_at":"2025-07-29T06:32:52.295Z","repository":{"id":11653626,"uuid":"14160884","full_name":"tetsuo13/Roundcube-Matomo-Tracking-Api-Plugin","owner":"tetsuo13","description":"Add Matomo (formerly Piwik) tracking server-side code to all requests in Roundcube","archived":false,"fork":false,"pushed_at":"2024-06-23T17:45:01.000Z","size":78,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-22T22:40:48.961Z","etag":null,"topics":["matomo","piwik","roundcube-plugin","roundcube-webmail-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tetsuo13.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-11-06T02:30:15.000Z","updated_at":"2025-02-12T22:10:29.000Z","dependencies_parsed_at":"2024-10-28T15:36:17.513Z","dependency_job_id":null,"html_url":"https://github.com/tetsuo13/Roundcube-Matomo-Tracking-Api-Plugin","commit_stats":{"total_commits":32,"total_committers":2,"mean_commits":16.0,"dds":0.09375,"last_synced_commit":"785ae34f11706dce8217965603e074f733528ebd"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/tetsuo13/Roundcube-Matomo-Tracking-Api-Plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuo13%2FRoundcube-Matomo-Tracking-Api-Plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuo13%2FRoundcube-Matomo-Tracking-Api-Plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuo13%2FRoundcube-Matomo-Tracking-Api-Plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuo13%2FRoundcube-Matomo-Tracking-Api-Plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tetsuo13","download_url":"https://codeload.github.com/tetsuo13/Roundcube-Matomo-Tracking-Api-Plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetsuo13%2FRoundcube-Matomo-Tracking-Api-Plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267639569,"owners_count":24119780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["matomo","piwik","roundcube-plugin","roundcube-webmail-plugin"],"created_at":"2024-10-10T23:19:07.627Z","updated_at":"2025-07-29T06:32:52.267Z","avatar_url":"https://github.com/tetsuo13.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Matomo Tracking Plugin for Roundcube\n\n[![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)\n[![Stable Version](https://img.shields.io/packagist/v/tetsuo13/matomo_tracking_api.svg)](https://packagist.org/packages/tetsuo13/matomo_tracking_api)\n\nThis plugin integrates Matomo analytics using the\n[Matomo Tracking API](https://matomo.org/docs/tracking-api/) into Roundcube.\nThis plugin is very different from the\n[Roundcube Webmail piwik analytics plugin](https://blog.no-panic.at/projects/roundcube-webmail-piwik-analytics-plugin/)\nwhich adds the client-side\n[JavaScript Tracking Tag](https://developer.matomo.org/api-reference/tracking-javascript).\nThe aim of this plugin is to add Matomo integration on the server-side in order\nto get around same-origin policy.\n\nIf your Matomo installation is on the same domain as your Roundcube\ninstallation and both are using the same protocol, then this plugin is\nprobably not what you need as it will not add any significant value over the\nJavaScript Tracking Tag. Some example cases where this plugin shines:\n\n* Matomo at `http://analytics.company.com`, Roundcube at\n  `https://webmail.company.com`\n* Matomo at `http://analytics.company.com`, Roundcube at\n  `http://webmail.othercompany.com`\n\n## Install\n\nInstall using Composer or manually download and install into\n`plugins/matomo_tracking_api`. Copy `config.inc.php.dist` to `config.inc.php`\nin the same directory and edit the file using the options shown below.\n\nAdd matomo_tracking_api to `$config['plugins']` in your Roundcube config to\nenable the plugin.\n\n## Configuration\n\nCopy `config.inc.php.dist` to `config.inc.php` and edit the configuration\nvariables. Set optional variables to `null` when unused.\n\n**matomo_tracking_api_url** [string]\n\nSet this to the URL of the Matomo installation. This URL must be accessible\nfrom the Roundcube installation.\n\n**matomo_tracking_api_site_id** [int|array(string =\u003e int)]\n\nConfigures the Matomo site ID. The value of this variable can either be a\nsingle integer or an array containing multiple server names and IDs in cases\nwhere a single Roundcube installation serves multiple hosts.\n\nTo set multiple hosts, use the key/value pair of server name and Matomo website\nID. For example:\n\n```php\n$rcmail_config['matomo_tracking_api_site_id'] = array(\n    'webmail.foo.com' =\u003e 42,\n    'webmail.bar.com' =\u003e 13\n);\n```\n\n**matomo_tracking_api_track_user_id** [boolean]\n\nWhen enabled, the user's email address will be used to connect multiple\ndevices and browsers. See\n[Benefits of User ID](https://matomo.org/docs/user-id/#benefits-of-enabling-user-id-tracking)\nat Matomo's User Guide for more information.\n\n**matomo_tracking_api_token_auth** [string] _(Optional)_\n\nSet to the token auth key of a Matomo user in order to take advantage of\nadvanced tracking. Currently utilizes the following if provided:\n\n* Sets remote IP to that of the user instead of defaulting to the IP of the\n  Roundcube installation.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftetsuo13%2Froundcube-matomo-tracking-api-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftetsuo13%2Froundcube-matomo-tracking-api-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftetsuo13%2Froundcube-matomo-tracking-api-plugin/lists"}