When we implement User-ID in combination with anonymous tracking, we obviously do not want to track any User-IDs without consent of the user. But one specifc edge case is still letting us see question marks.
Here is a desciption of the case:
User visits website and grants consent for full tracking with cookies
User logs into the website - the user-id is collected
User goes into the privacy settings and revokes consent
Piwik PRO switches to anonymous tracking, so in the session log the IP adress is 0.0.0.0 and informations like city are not stored - as expected. But the collected UserID is still stitched to the session.
So while this is in fact an edge case that may not happen very often, as this is a legal matter, what solution is there to prevent Piwik PRO from storing the UserID even thou the user has revoked consent?
Technically you could clear the User ID from the JSTC using the resetUserId method -API ā Piwik PRO Analytics Suite 18.17 documentation
and force a new session by adding the &new_visit=1 to the next tracking request
_paq.push([āappendToTrackingUrlā, ānew_visit=1ā]);
_paq.push([ātrackEventā, āSessionā, āForcing New Visitā]);
_paq.push([āappendToTrackingUrlā, āā]);
Am I correct to assume that you expected the url parameter to be extended by mytest=1?
If my assumption is correct then it sadly wonāt work that way. The appendToTrackingUrl method will append the parameter to the tracking request body or query string (example.piwik.pro/ppms.php?mytest=1), not the actual tracked URL. The name might be slightly misleading.