Extension:MatomoAnalytics
Jump to navigation
Jump to search
MatomoAnalytics Release status: stable |
|
---|---|
![]() |
|
Description | Integration with Matomo for analytics. Adds a special page to view that stats on-wiki. |
Author(s) | John Lewis |
Maintainer(s) | John Lewis/other sysadmins of Miraheze |
Latest version | continuous updates |
MediaWiki | 1.33+ |
PHP | 5.6+ |
Database changes | No, Yes if $wgMatomoAnalyticsUseDB is enabled |
License | GNU General Public License 3.0 |
Download | GitHub: |
The MatomoAnalytics extension inserts tracking code for the Matomo analytics platform. It also creates a Special Page (Special:Analytics) where you can view the stats on-wiki.
To report an issue or a bug related with this extension, please use Miraheze Phabricator.
Installation[edit]
- Download and place the file(s) in a directory called
MatomoAnalytics
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'MatomoAnalytics' );
- Configure as required.
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration[edit]
parameter | default | comment | required? |
---|---|---|---|
$wgMatomoAnalyticsServerURL
|
false
|
URL of your Matomo installation | yes |
$wgMatomoAnalyticsTokenAuth
|
false
|
The auth token for the API of your Matomo install | yes |
$wgMatomoAnalyticsSiteID
|
1
|
Matomo site ID | no |
$wgMatomoAnalyticsGlobalID
|
false
|
Shared Matomo site ID. For use on wikifarms. | no |
$wgMatomoAnalyticsUseDB
|
false
|
Whether to use a database or not. For use on wikifarms. | no |
$wgMatomoAnalyticsDatabase
|
false
|
Name of the main database to use. For use on wikifarms. | no |
$wgMatomoAnalyticsDisableCookie
|
false
|
Allow disabling cookies set by Matomo. | no |
$wgMatomoAnalyticsDisableJS
|
false
|
Allow disabling of JS tracking code globally | no |
See also[edit]
Categories:
- Stable extensions
- Extensions with invalid or missing type
- GPL licensed extensions
- Extensions in GitHub version control
- CreateWikiCreation extensions
- CreateWikiDeletion extensions
- CreateWikiRename extensions
- LoadExtensionSchemaUpdates extensions
- SkinAfterBottomScripts extensions
- All extensions
- Web Analytics extensions
- Statistics extensions
- Extensions by Miraheze