Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2020-06-30 01:14:18 +0300
committerGitHub <noreply@github.com>2020-06-30 01:14:18 +0300
commitd7dced0928c7457f4e14fb571d897ac927b95134 (patch)
tree5432a0a6ded1d9f9f2d1d0df8a2120bd020e9b14 /plugins/CustomDimensions/docs/faq.md
parent544cbc826296cab3db3fd7c6eace2c14ec41245a (diff)
Include CustomDimensions plugin in core (#16086)
Diffstat (limited to 'plugins/CustomDimensions/docs/faq.md')
m---------plugins/CustomDimensions0
-rw-r--r--plugins/CustomDimensions/docs/faq.md59
2 files changed, 59 insertions, 0 deletions
diff --git a/plugins/CustomDimensions b/plugins/CustomDimensions
deleted file mode 160000
-Subproject 318661a2fb1ef3b3e5d6d999ae8b9628cb5a113
diff --git a/plugins/CustomDimensions/docs/faq.md b/plugins/CustomDimensions/docs/faq.md
new file mode 100644
index 0000000000..81637ddc72
--- /dev/null
+++ b/plugins/CustomDimensions/docs/faq.md
@@ -0,0 +1,59 @@
+## FAQ
+
+__I have a large database, can I install the plugin on the command line?__
+
+Yes, this is not only possible but even recommended as the installation may take hours. To do this follow these steps:
+
+* Download the Plugin from [https://plugins.piwik.org/CustomDimensions](https://plugins.piwik.org/CustomDimensions)
+* Extract the files within the downloaded ZIP file
+* Copy the `CustomDimensions` directory into the `plugins` directory of your Piwik
+* Execute the command `./console plugin:activate CustomDimensions` within your Piwik directory
+
+__Where can I manage Custom Dimensions?__
+
+Custom Dimensions can be managed by clicking on your username or user icon in the top right. There will be a menu
+item "Custom Dimensions" within the "Manage" section of the left menu. By clicking on it you can manage Custom Dimensions.
+Please note that the permission Admin is required in order to be able to manage them.
+
+__Where can I find the Id for a Custom Dimension?__
+
+You can find them by going to the "Manage Custom Dimensions" page in your personal area. For each dimension you will
+find the Id in the table that lists all available Custom Dimensions.
+
+__How do I set a value for a dimension in the JavaScript Tracker?__
+
+Please have a look at the [JavaScript Tracker guide for Custom Dimensions](https://developer.piwik.org/guides/tracking-javascript-guide#custom-dimensions).
+
+__How do I set a value for a dimension in the PHP Tracker?__
+
+`$tracker->setCustomTrackingParameter('dimension' . $customDimensionId, $value);`
+
+Please note custom tracking parameters are cleared after each tracking request. If you want to keep the same
+Custom Dimensions over all request make sure to call this method before each tracking call.
+
+__I have configured all available Custom Dimension slots, can I add more?__
+
+Yes, this is possible. To make a new Custom Dimension slot available execute the following command including the scope option:
+
+```
+./console customdimensions:add-custom-dimension --scope=action
+./console customdimensions:add-custom-dimension --scope=visit
+```
+
+Be aware that this can take a long time depending on the size of your database as it requires MySQL schema changes.
+You can directly create multiple Custom Dimension slots. To do this add the option `--count=X`. Usually it doesn't take much
+longer to create directly multiple new slots.
+
+__Is it possible to delete a Custom Dimension and all of its data?__
+
+In the UI it is only possible to deactivate a dimension. However, on the command line you can remove a Custom Dimension
+and report it's log data by executing the following console command:
+
+```
+./console customdimensions:remove-custom-dimension --scope=$scope --index=$index
+```
+
+Make sure to replace `$scope` and `$index` with the correct values. To get a list of all available indexes execute `./console customdimensions:info`.
+
+Removing a Custom Dimension may take a long time as it requires MySQL schema changes. Currently, only log data is removed. Archived reports will be
+not deleted currently.