Summary: when a visitor triggers a signup goal, we register them and associate their userid to piwik for tracking.
However, all pre-goal-conversion visit history for that user is orphaned as an anonymous visitor, in that, it's not showing under the userid for that visitor when viewing the log or custom dimension reports. Piwik seems to attribute all pre-conversion history (including the conversion itself) to an anonymous visitor with the same IP and shows post-conversion history to the userId profile.
I swear piwik used to combine pre and post conversion history under one userID once the anonymous user signed in or registered. Is this a bug or as designed? What am I missing?
I am using 2.16.1
Currently this is how User ID works (by design). However, as explained in https://github.com/piwik/piwik/issues/7691#issuecomment-93869541 amongst other, we may change the way User ID works in the future. Can't say yet as we are under discussion to maybe make several changes. We'll announce it in the issue tracker
Would be great. It totally makes sense to me show visitor's pre-conversion / pre-login activity from all previous visits. And when they login from another device, the activity from this device should be also shown all under same User ID.
This feature is actually the most crucial for us to use Matomo.
I am considering to hack something together with Custom dimension and my own Cookies / JS / SQL views.