From 5e65cfbcb7582cecbe3aee6362a780eec23faf89 Mon Sep 17 00:00:00 2001 From: mattab <matthieu.aubry@gmail.com> Date: Sat, 7 Jun 2014 17:44:03 +1200 Subject: [PATCH] Refs #5291 adding call to clearCustomVariables() Let's see if some test will fail as a result. --- libs/PiwikTracker/PiwikTracker.php | 5 +++-- 1 file 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; } -- GitLab