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:
authordiosmosis <benaka@piwik.pro>2015-07-11 05:13:40 +0300
committerdiosmosis <benaka@piwik.pro>2015-08-06 17:37:59 +0300
commit25613735e5467806b33f651dbeffb16570851646 (patch)
tree95b6b5786de760e0984a4a730b71a35d65b3f696 /plugins/CustomVariables/Tracker
parentd337b5f19acf28eb1522d32dff7af07a9b775020 (diff)
Document RequestProcessors and tweak some RequestProcessors.
Diffstat (limited to 'plugins/CustomVariables/Tracker')
-rw-r--r--plugins/CustomVariables/Tracker/CustomVariablesRequestProcessor.php21
1 files changed, 16 insertions, 5 deletions
diff --git a/plugins/CustomVariables/Tracker/CustomVariablesRequestProcessor.php b/plugins/CustomVariables/Tracker/CustomVariablesRequestProcessor.php
index 066e332440..82dc17413e 100644
--- a/plugins/CustomVariables/Tracker/CustomVariablesRequestProcessor.php
+++ b/plugins/CustomVariables/Tracker/CustomVariablesRequestProcessor.php
@@ -14,9 +14,22 @@ use Piwik\Tracker\RequestProcessor;
use Piwik\Tracker\Visit\VisitProperties;
/**
- * TODO
+ * Handles tracking of visit level custom variables.
*
- * TODO: document request metadata
+ * ### Request Metadata
+ *
+ * Defines the following request metadata for the **CustomVariables** plugin:
+ *
+ * * **visitCustomVariables**: An array of custom variable names & values. The data is stored
+ * as log_visit column name/value pairs, eg,
+ *
+ * ```
+ * array(
+ * 'custom_var_k1' => 'the name',
+ * 'custom_var_v1' => 'the value',
+ * ...
+ * )
+ * ```
*/
class CustomVariablesRequestProcessor extends RequestProcessor
{
@@ -49,6 +62,4 @@ class CustomVariablesRequestProcessor extends RequestProcessor
$valuesToUpdate = array_merge($valuesToUpdate, $visitCustomVariables);
}
}
-
-
-} \ No newline at end of file
+}