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/libs
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-10-01 07:26:52 +0400
committermattab <matthieu.aubry@gmail.com>2014-10-01 07:26:52 +0400
commitcd1b52dd2e5807d2871e6037815cae2390c5243d (patch)
tree5e5ff7f877d60f8d477f9d21cf5b2d659acea68a /libs
parent2cd5f09a52fe28ff644827a58ce0f88f177b3f7e (diff)
Fixes #6313 - When a user starts to get a User ID set, then we set this User ID to the existing visit rather than create a new visit for this user id specifically
Diffstat (limited to 'libs')
-rw-r--r--libs/PiwikTracker/PiwikTracker.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/PiwikTracker/PiwikTracker.php b/libs/PiwikTracker/PiwikTracker.php
index 8605e38e1f..15e3b8420c 100644
--- a/libs/PiwikTracker/PiwikTracker.php
+++ b/libs/PiwikTracker/PiwikTracker.php
@@ -1063,6 +1063,8 @@ class PiwikTracker
/**
* Hash function used internally by Piwik to hash a User ID into the Visitor ID.
*
+ * Note: matches implementation of Tracker\Request->getUserIdHashed()
+ *
* @param $id
* @return string
*/
@@ -1071,7 +1073,6 @@ class PiwikTracker
return substr( sha1( $id ), 0, 16);
}
-
/**
* Forces the requests to be recorded for the specified Visitor ID.
* Note: it is recommended to use ->setUserId($userId); instead.