How do I prevent Piwik from hashing the userId to the visitorId?

Hi,

I want to be able to associate actions of a user to a visitor profile before the user creates and account and logs in. As of right now visitors get a visitorID and their actions are recorded, but as soon as they create an account a new (from the hashed userID) visitorID is created and all previous actions are lost. How do I preserve the information before the login?

Mixpanel offers this functionality with the help of aliases.
https://mixpanel.com/help/questions/articles/how-should-i-handle-my-user-identity-with-the-mixpanel-javascript-library

bump. anyone have a solution to this in Piwik?

there is no solution yet, please have a look at:

As an alternative, you could use a visit scope CustomDimension to store the UserID.