diff options
author | diosmosis <benaka@piwik.pro> | 2015-07-11 05:13:40 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-08-06 17:37:59 +0300 |
commit | 25613735e5467806b33f651dbeffb16570851646 (patch) | |
tree | 95b6b5786de760e0984a4a730b71a35d65b3f696 /plugins/CustomVariables/Tracker | |
parent | d337b5f19acf28eb1522d32dff7af07a9b775020 (diff) |
Document RequestProcessors and tweak some RequestProcessors.
Diffstat (limited to 'plugins/CustomVariables/Tracker')
-rw-r--r-- | plugins/CustomVariables/Tracker/CustomVariablesRequestProcessor.php | 21 |
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 +} |