mirror of
https://github.com/Findus23/plugin-ExcludeCountries.git
synced 2024-09-18 14:43:48 +02:00
add description
This commit is contained in:
parent
9001a7c83f
commit
c73de1da3d
7 changed files with 39 additions and 34 deletions
|
@ -1,3 +1,5 @@
|
|||
## Changelog
|
||||
|
||||
Here goes the changelog text.
|
||||
### 0.1.0
|
||||
|
||||
Initial release
|
||||
|
|
|
@ -2,5 +2,11 @@
|
|||
|
||||
## Description
|
||||
|
||||
Add your plugin description here.
|
||||
This plugin allows you to only track visitors from specific countries (or all but specific countries) and discards data from everyone else, reducing the amound of data stored in the database.
|
||||
|
||||
You can verify that the plugin works by temporarily enabling [tracking debugging](https://developer.matomo.org/api-reference/tracking-api#debugging-the-tracker) and checking the log.
|
||||
|
||||
### Important Limitations:
|
||||
|
||||
- This plugin needs to check the geolocation while recieving the data. This means that every visit is geolocated twice which might cause (a small amount of) additional server load
|
||||
- This plugin depends on your geolocation to be properly set up in Matomo. If the geolocation returns incorrect result, this plugin discards incorrect visitors.
|
||||
|
|
|
@ -11,14 +11,7 @@ namespace Piwik\Plugins\ExcludeCountries;
|
|||
use Piwik\Settings\FieldConfig;
|
||||
use Piwik\Settings\Setting;
|
||||
|
||||
/**
|
||||
* Defines Settings for ExcludeCountries.
|
||||
*
|
||||
* Usage like this:
|
||||
* $settings = new SystemSettings();
|
||||
* $settings->metric->getValue();
|
||||
* $settings->description->getValue();
|
||||
*/
|
||||
|
||||
class SystemSettings extends \Piwik\Settings\Plugin\SystemSettings
|
||||
{
|
||||
/** @var Setting */
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
## FAQ
|
||||
|
||||
__My question?__
|
||||
|
||||
My answer
|
|
@ -1 +0,0 @@
|
|||
## Documentation
|
46
plugin.json
46
plugin.json
|
@ -1,29 +1,39 @@
|
|||
{
|
||||
"name": "ExcludeCountries",
|
||||
"description": "Exclude or include visitors from selected countries",
|
||||
"version": "0.1.0",
|
||||
"theme": false,
|
||||
"require": {
|
||||
"name": "ExcludeCountries",
|
||||
"description": "TODO",
|
||||
"version": "0.1.0",
|
||||
"theme": false,
|
||||
"require": {
|
||||
"piwik": ">=3.10.0,<4.0.0-b1"
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "Matomo",
|
||||
"email": "",
|
||||
"homepage": ""
|
||||
}
|
||||
],
|
||||
"support": {
|
||||
"email": "",
|
||||
"issues": "",
|
||||
"forum": "",
|
||||
"irc": "",
|
||||
"wiki": "",
|
||||
"source": "",
|
||||
"docs": "",
|
||||
"rss": ""
|
||||
"piwik": ">=3.10.0,<4.0.0-b1"
|
||||
},
|
||||
"homepage": "",
|
||||
"license": "GPL v3+",
|
||||
"keywords": []
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "Lukas Winkler",
|
||||
"email": "lukas@matomo.org",
|
||||
"homepage": "https://lw1.at"
|
||||
}
|
||||
],
|
||||
"support": {
|
||||
"email": "lukas@matomo.org",
|
||||
"issues": "https://github.com/Findus23/plugin-ExcludeCountries/issues",
|
||||
"forum": "https://forum.matomo.org",
|
||||
"source": "https://github.com/Findus23/plugin-ExcludeCountries"
|
||||
},
|
||||
"homepage": "https://lw1.at",
|
||||
"license": "GPL v3+",
|
||||
"keywords": [
|
||||
"geolocation",
|
||||
"tracking",
|
||||
"countries",
|
||||
"filter"
|
||||
]
|
||||
}
|
||||
|
|
BIN
screenshots/settings.png
Normal file
BIN
screenshots/settings.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
Loading…
Reference in a new issue