Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5709

Issue with Hashing user id to visitor id in version 3.13.3

$
0
0

@Shobhitha_c wrote:

I am setting userId when the user logs in to the site. When i want to fetch visitorId in my crm for that particular userId, i hash(sha1) the userid and get visitor id.

From the docs, I can see “*User ID will be converted (hashed) into a Visitor ID hexadecimal string.”
In version 3.12.0, in /var/www/matomo/core/Tracker/Visit.php on line 553
// User ID takes precedence and overwrites idvisitor value
$userId = $this->request->getForcedUserId();
if ($userId) {
$userIdHash = $this->request->getUserIdHashed($userId);
$binIdVisitor = Common::hex2bin($userIdHash);
$this->visitProperties->setProperty(‘idvisitor’, $binIdVisitor);
$valuesToUpdate[‘idvisitor’] = $binIdVisitor;
}

This is where hashing is done.
This code seems to be missing in v3.13.3
and hence i m not able to fetch proper visitor id.

Is this intended change or a bug?

Thanks,
Shobhitha

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5709

Trending Articles