{
	"name": "MatomoAnalytics",
	"author": [
		"John Lewis",
		"Southparkfan",
		"Universal Omega",
		"Agent Isai"
	],
	"url": "https://www.mediawiki.org/wiki/Extension:MatomoAnalytics",
	"version": "1.5.0",
	"descriptionmsg": "matomoanalytics-desc",
	"license-name": "GPL-3.0-or-later",
	"type": "specialpage",
	"requires": {
		"MediaWiki": ">= 1.43.0"
	},
	"AvailableRights": [
		"noanalytics",
		"viewanalytics"
	],
	"GroupPermissions": {
		"*": {
			"viewanalytics": true
		}
	},
	"MessagesDirs": {
		"MatomoAnalytics": [
			"i18n"
		]
	},
	"ExtensionMessagesFiles": {
		"MatomoAnalyticsAliases": "MatomoAnalyticsAliases.php"
	},
	"AutoloadNamespaces": {
		"Miraheze\\MatomoAnalytics\\": "includes/",
		"Miraheze\\MatomoAnalytics\\Maintenance\\": "maintenance/"
	},
	"SpecialPages": {
		"Analytics": {
			"class": "Miraheze\\MatomoAnalytics\\Specials\\SpecialAnalytics"
		}
	},
	"Hooks": {
		"CreateWikiCreation": {
			"handler": "CreateWiki"
		},
		"CreateWikiDeletion": {
			"handler": "CreateWiki"
		},
		"CreateWikiRename": {
			"handler": "CreateWiki"
		},
		"InfoAction": {
			"handler": "Main"
		},
		"LoadExtensionSchemaUpdates": {
			"handler": "Installer"
		},
		"SkinAfterBottomScripts": {
			"handler": "Main"
		}
	},
	"HookHandlers": {
		"CreateWiki": {
			"class": "Miraheze\\MatomoAnalytics\\HookHandlers\\CreateWiki"
		},
		"Installer": {
			"class": "Miraheze\\MatomoAnalytics\\HookHandlers\\Installer"
		},
		"Main": {
			"class": "Miraheze\\MatomoAnalytics\\HookHandlers\\Main",
			"optional_services": [
				"CookieConsent.CookiePreferences"
			]
		}
	},
	"ResourceModules": {
		"ext.matomoanalytics.charts": {
			"scripts": "ext.matomoanalytics.charts.js"
		},
		"ext.matomoanalytics.graphs": {
			"scripts": "ext.matomoanalytics.graphs.js"
		},
		"ext.matomoanalytics.special": {
			"styles": "ext.matomoanalytics.special.less"
		}
	},
	"ResourceFileModulePaths": {
		"localBasePath": "modules",
		"remoteExtPath": "MatomoAnalytics/modules"
	},
	"config": {
		"MatomoAnalyticsDisableCookie": {
			"description": "Boolean. Whether or not to disable cookies being set by Matomo.",
			"value": false
		},
		"MatomoAnalyticsDisableJS": {
			"description": "Boolean. Whether or not to add Javascript tracking code to pages.",
			"value": false
		},
		"MatomoAnalyticsEnableCustomDimensionsUserType": {
			"description": "Boolean. Whether to fetch userType in Matomo using CustomDimensions. You must setup CustomDimensions to be able to use this.",
			"value": false
		},
		"MatomoAnalyticsForceGetRequest": {
			"description": "Boolean. Whether or not you want to foce GET requests which also disables beacon. Reverts back to Matomo v3 tracking behavior.",
			"value": false
		},
		"MatomoAnalyticsGlobalID": {
			"description": "Integer. If tracking more than one site, this is an ID to attach to all wikis for central aggregate statistics.",
			"value": 0
		},
		"MatomoAnalyticsServerURL": {
			"description": "String. URL of the Matomo installation to use for API queries.",
			"value": ""
		},
		"MatomoAnalyticsSiteID": {
			"description": "Integer. If not using database, the site number to add all monitoring to.",
			"value": 1
		},
		"MatomoAnalyticsTokenAuth": {
			"description": "String. The API token for authentication when making requests for data.",
			"value": ""
		},
		"MatomoAnalyticsUseDB": {
			"description": "Boolean. Whether or not to use the database for tracking site IDs.",
			"value": false
		}
	},
	"ConfigRegistry": {
		"MatomoAnalytics": "MediaWiki\\Config\\GlobalVarConfig::newInstance"
	},
	"DatabaseVirtualDomains": [
		"virtual-matomoanalytics"
	],
	"manifest_version": 2
}
