@mattab opened this Issue on September 9th 2014 Member

The goal of this issue is to improve the Javascript Tracking API. In particular, instead of asking users to call setUserId on each page view to assign actions to a particular user, we would like Piwik.js to automatically remember the User ID that was set and set it again on subsequent requests.
The goal of this issue is to improve the Javascript Tracking API. In particular, instead of asking users to call setUserId on each page view to assign actions to a particular user, we would like Piwik.js to automatically remember the User ID that was set and set it again on subsequent requests.

Tasks

  • How to enable this new feature? maybe a new function to enable the persisting of this user id value.
  • When User ID is set in the Piwik.js, also set it as the the Visitor ID hash in the first party cookie (see getVisitorId)
  • Document how to reset the Piwik session ie. when user logs out from the system, how to reset cookies in Piwik.
  • See also User ID #3490
  • this would have some privacy implications refs #6160
@dieskim commented on February 20th 2019

Hi, is this still on the roadmap or is there a better way to do this?

Powered by GitHub Issue Mirror