diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-06-07 09:44:03 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-06-07 09:44:03 +0400 |
commit | 5e65cfbcb7582cecbe3aee6362a780eec23faf89 (patch) | |
tree | 1cb8e29f2dae04fc34f0842115a200a69deb007e /libs | |
parent | 4190cecd9294383e78382f3dd5c31322c8aff98b (diff) |
Refs #5291 adding call to clearCustomVariables()
Let's see if some test will fail as a result.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/PiwikTracker/PiwikTracker.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/PiwikTracker/PiwikTracker.php b/libs/PiwikTracker/PiwikTracker.php index aa689a863c..e00120f71c 100644 --- a/libs/PiwikTracker/PiwikTracker.php +++ b/libs/PiwikTracker/PiwikTracker.php @@ -479,8 +479,6 @@ class PiwikTracker * Enables the bulk request feature. When used, each tracking action is stored until the * doBulkTrack method is called. This method will send all tracking data at once. * - * Note: when you enable bulk tracking, consider calling clearCustomVariables() before setting other - * attributes to your visitors and requests to track. */ public function enableBulkTracking() { @@ -1199,6 +1197,9 @@ class PiwikTracker = $url . (!empty($this->userAgent) ? ('&ua=' . urlencode($this->userAgent)) : '') . (!empty($this->acceptLanguage) ? ('&lang=' . urlencode($this->acceptLanguage)) : ''); + + // Clear custom variables so they don't get copied over to other users in the bulk request + $this->clearCustomVariables(); return true; } |