matomo-org / matomo-org/plugin-QueuedTracking

Userids are randomly double-hashed

Open
#141 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
87
Forks
41
Avg merge
2d 18h
Merged PRs (30d)
7

Description

Using Matomo 3.14.1

When pseudonimization is enabled, sometimes the user_id is hashed twice, creating an artificial duplicate visit.

In the attached image, dacc63938... is a hash of the username, f7d09460... is a hash of dacc63938... a hash of the hash of the username.
double-hash

Happens randomly, I cannot reproduce on a controlled environment, only in a site with large amount of visits.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the QueuedTracking plugin handles user_id values when Matomo 3.14.1 pseudonymization is enabled, including requests processed through its Redis or MySQL queue. Compare the normal hash path with the reported large-site behavior; done means identifying the duplicate-hashing path and confirming that a queued user_id is hashed only once.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.