Reset tracking ids for website spoof mode

On the js client tracker is there a (recommended) way to reset the IDs below?
We are trying to reset it when specific users are impersonated in admin mode for the website.

clearUserData is one of them but that doesn’t seem to reset the network user id

  • Domain user Id
  • Network user Id
  • Domain Session Id

Hi Lukas. Network User Id is set by the collector in its HTTP response so it could only be reset by the collector.

You might want to record that the user is being impersonated and handle that in your data model?