@BraveSauce opened this Issue on December 10th 2019

After upgrading to php 7.4 from 7.3, each action recorded from the same visitor gets recorded as a separate visit with the same ID and other details, while the unique user count keeps rising up as the same one user navigates through more pages.

This is happening on a setup that is using image tracking method.

Matomo version latest beta 3.13.0

@tsteur commented on December 10th 2019 Member

@BraveSauce any chance you are setting a userId in the image tracking method? As we changed there something in a recent release around that. It might not be PHP 7.4 related

@BraveSauce commented on December 10th 2019

@tsteur As a matter of fact, I do use uid in the tracking method. I tried to play with _id values paired with my uid to fix this issue but it breaks my c_n values if I use it.

Edit: Looking at my logs this might indeed not be php7.4 related, sorry for the wrong information. Looks like it started hapenning mid November. Any suggestions on how to get the old functionality back?

@tsteur commented on December 10th 2019 Member

Do you know if you have maybe trust_visitors_cookies enabled in your config/config.ini.php file?

You mention the solution already basically ideally you would set _id to some 16 characters hexadecimal string. You could for example hash the userId to generate a visitorId for each user. I can't really think of any reasons this could break your c_n values unless you values are not properly URL escaped.

@BraveSauce commented on February 20th 2020

For closure, just wanted to report that this issue was fixed in later beta updates without any code changes on my end.

@tsteur commented on February 20th 2020 Member

Awesome thanks for letting us know @BraveSauce

This Issue was closed on January 21st 2020
Powered by GitHub Issue Mirror