@peterbo opened this Issue on May 26th 2022 Contributor

If "disableBrowserFeatureDetection" is enabled and remember(Cookie)ConsentGiven is called, a new visitor is recognized

Expected Behavior

After calling remember(Cookie)ConsentGiven, the same visitor should be recognized and no new (unique) visitor should be created.

Possible Solution

When re-enabling browserFeatureDetection, try to sync / match the "old" config_id without browserFeatures in the fingerprint.

Steps to Reproduce (for Bugs)

  1. Enable disableBrowserFeatureDetection
  2. Call remember(Cookie)ConsentGiven

Context

Giving consent enables the browserFeatureDetection - https://github.com/matomo-org/matomo/blob/4.x-dev/js/piwik.js#L6030 - That's why the current visior is not recognized again (and a new visitor is created), because the config_id (fingerprint) changed.

Your Environment

  • Matomo Version: 4.10.1
  • Browser: Multiple tested
@bx80 commented on May 30th 2022 Contributor

Hi @peterbo, thanks for reporting this, the extra detail is very helpful :+1: Our product team will review and assign priority for this issue.

Powered by GitHub Issue Mirror