Store visitorID related to userID to cookies.
Please see https://github.com/piwik/piwik/pull/6838 to additional info
I will try to verify it today.
It doesn't seem to work correctly.
This is what I did:
Using piwik.js from 2.11.0-b7;
@asafyish I tested this and for me it works correctly, I see only one visit even after removing the call to set
setUserId - if you still have issue with the latest beta, please attach the files to reproduce and i'll take a look!