diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-04-07 05:09:09 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-04-07 05:09:09 +0400 |
commit | 44aade37e9f6fcdc72549334b2eb2515a800cb73 (patch) | |
tree | 97c0f546324cb7b10d167e79399af0f8bc9165de /core | |
parent | 5757dae69e76e9bc76b81f1be743143981031bc2 (diff) |
tests for unlimited custom variables
Diffstat (limited to 'core')
-rw-r--r-- | core/Piwik.php | 5 |
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; |