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
path: root/core
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-04-07 05:09:09 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-04-07 05:09:09 +0400
commit44aade37e9f6fcdc72549334b2eb2515a800cb73 (patch)
tree97c0f546324cb7b10d167e79399af0f8bc9165de /core
parent5757dae69e76e9bc76b81f1be743143981031bc2 (diff)
tests for unlimited custom variables
Diffstat (limited to 'core')
-rw-r--r--core/Piwik.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Piwik.php b/core/Piwik.php
index 1e93ff22dc..3117ecd508 100644
--- a/core/Piwik.php
+++ b/core/Piwik.php
@@ -151,15 +151,16 @@ class Piwik
if ($mergeSubdomains || $mergeAliasUrls) {
$options .= self::getJavascriptTagOptions($idSite, $mergeSubdomains, $mergeAliasUrls);
}
+ $maxCustomVars = Plugins\CustomVariables\CustomVariables::getMaxCustomVariables();
if ($visitorCustomVariables) {
- $options .= ' // you can set up to 5 custom variables for each visitor' . PHP_EOL;
+ $options .= ' // you can set up to ' . $maxCustomVars . ' custom variables for each visitor' . PHP_EOL;
$index = 0;
foreach ($visitorCustomVariables as $visitorCustomVariable) {
$options .= ' _paq.push(["setCustomVariable", '.$index++.', "'.$visitorCustomVariable[0].'", "'.$visitorCustomVariable[1].'", "visit"]);' . PHP_EOL;
}
}
if ($pageCustomVariables) {
- $options .= ' // you can set up to 5 custom variables for each action (page view, download, click, site search)' . PHP_EOL;
+ $options .= ' // you can set up to ' . $maxCustomVars . ' custom variables for each action (page view, download, click, site search)' . PHP_EOL;
$index = 0;
foreach ($pageCustomVariables as $pageCustomVariable) {
$options .= ' _paq.push(["setCustomVariable", '.$index++.', "'.$pageCustomVariable[0].'", "'.$pageCustomVariable[1].'", "page"]);' . PHP_EOL;