Closed mptasinski closed 1 month ago
Probably not gonna change this in core
You can use the storage
events https://getanalytics.io/lifecycle/#storage-events to prevent values from being removed or keep the id's in memory with analytics.getState()' and use
analytics.setAnonymousId`
Current implementation of
analytics.identify()
does't allow to set userId back to nullThe only way i manage to reset userId is with
analytics.reset()
but it clears annonymouseId and thats what i dont want.if i can simply run
analytics.identify(null);
and it will set userId back to null it will be greatthank you