{"id":15017717,"url":"https://github.com/daschtour/matomo-mediawiki-extension","last_synced_at":"2025-10-29T15:45:55.527Z","repository":{"id":45187631,"uuid":"5144519","full_name":"DaSchTour/matomo-mediawiki-extension","owner":"DaSchTour","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-10T12:36:06.000Z","size":64,"stargazers_count":17,"open_issues_count":7,"forks_count":21,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T09:08:45.383Z","etag":null,"topics":["matomo","matomo-plugin","mediawiki","mediawiki-extension","php","piwik","piwik-tracking"],"latest_commit_sha":null,"homepage":"https://www.mediawiki.org/wiki/Extension:Piwik_Integration","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DaSchTour.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2012-07-22T20:27:35.000Z","updated_at":"2023-04-14T20:12:50.000Z","dependencies_parsed_at":"2024-06-20T00:08:19.658Z","dependency_job_id":"a6f911d1-728d-487c-87c5-6d043f1948d9","html_url":"https://github.com/DaSchTour/matomo-mediawiki-extension","commit_stats":{"total_commits":49,"total_committers":16,"mean_commits":3.0625,"dds":0.7346938775510203,"last_synced_commit":"3e9bd0c65e56afd33a9deedf4ba6974570da18d8"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaSchTour%2Fmatomo-mediawiki-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaSchTour%2Fmatomo-mediawiki-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaSchTour%2Fmatomo-mediawiki-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaSchTour%2Fmatomo-mediawiki-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaSchTour","download_url":"https://codeload.github.com/DaSchTour/matomo-mediawiki-extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248566568,"owners_count":21125688,"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","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","matomo-plugin","mediawiki","mediawiki-extension","php","piwik","piwik-tracking"],"created_at":"2024-09-24T19:50:53.664Z","updated_at":"2025-10-29T15:45:50.483Z","avatar_url":"https://github.com/DaSchTour.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mamoto extension for MediaWiki\n==============================\nVersion 5.0.0\n - Last update: 27 October 2023\n\nThis the Mamoto (ex-Piwik) integration extension for MediaWiki\nsoftware. The extension is only useful if you've got a MediaWiki\ninstallation; it can only be installed by the administrator of the site.\n\nMinimum requirements\n--------------------\n\n1.  MediaWiki 1.34+\n\n2.  A Matomo (0.4+) installation with the site configured\n\n\nInstallation instructions\n-------------------------\n\nPlease, read them carefully. They're not very difficult to understand,\nbut **ALL** steps are necessary:\n\n1. Create a folder called \"Matomo\" in your extensions directory\n\n2. Upload extension.json and Matomo.hooks.php in the \"Matomo\" folder you've just created\n\n3. Edit your LocalSettings.php and, at the end of the file, add the\n  following:\n\n        wfLoadExtension( 'Matomo' );\n\n\n4. Configure the Matomo URL and site-id. To do so; edit the LocalSettings and set up the following variables:\n      \u003e $wgMatomoURL = \"matomo-host.tld/dir/\";\n\n      \u003e $wgMatomoIDSite = \"matomo_idsite\";\n\n      **IMPORTANT** Do not define the protocol of the $wgMatomoURL\n\n  Note: Change the value of $wgMatomoURL with the URL, without the protocol\n\tbut including the domain name, where you installed Matomo.\n\tRemember to add the trailing slash!\n\n5. Enjoy our extension!\n\u003e Note: to check if the extension has succesfully installed; go to your wiki and check if the Matomo extension is present on the bottom of the Wiki source code.\n\n\nCustom variables\n----------------\n\n* Disable cookies by setting  the ```$wgMatomoDisableCookies``` variable to ```false```.\n  \u003e For example: $wgMatomoDisableCookies = false;\n\n* Ignore regular editors: set ```$wgMatomoIgnoreEditors``` to  ```true```\n* Do not ignore Bots: set ```$wgMatomoIgnoreBots``` to ```false``` (by default bots are ignored)\n* Do not ignore sysop users: set ```$wgMatomoIgnoreSysops``` to ```false``` (by default sysops are ignored)\n\n* To define custom javascript tags in the Matomo javascript code, its possible to define the $wgMatomoCustomJS variable. For example if you have a single setting to insert; use the following code:\n   \u003e ```$wgMatomoCustomJS = \"_paq.push(['trackGoal', '1']);\"```\n\n   If you have multiple variables to define; use an array. For example:\n   \u003e `` $wgMatomoCustomJS = array(\n\"_paq.push(['setCustomVariable', '1','environment','production']);\",\n\"_paq.push(['setCustomVariable', '1','is_user','yes']);\"\n);``\n\n* If you want to change the title of your pages inside the Matomo tracker,\n  you can set ```$wgMatomoActionName``` inside your LocalSettings.php file.\n\n* In case you want to include the title as, for example,\n   \"wiki/Title of the page\", you can set ```$wgMatomoUsePageTitle``` to\n  ```true``` and set ```$wgMatomoActionName``` to ```wiki/```. The extension will print matomo_action_name = 'wiki/Title of the page';\n\n* If you want to track the username of the visitor with the Matomo feature User ID (needs Matomo \u003e= 2.7.0) \n  set the ```$wgMatomoTrackUsernames``` to true in LocalSettings.php.\n\n\nTroubleshooting\n---------------\n\nOn MediaWiki 1.39.0–1.39.4 and 1.40.0, the tracking code is included twice: this can be fixed by upgrading MediaWiki to 1.39.5 and 1.40.1 (see this [Phabricator task](https://phabricator.wikimedia.org/T345039).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaschtour%2Fmatomo-mediawiki-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaschtour%2Fmatomo-mediawiki-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaschtour%2Fmatomo-mediawiki-extension/lists"}