analytics-react-native icon indicating copy to clipboard operation
analytics-react-native copied to clipboard

identify & reset

Open carlosconnected opened this issue 7 years ago • 1 comments

The mobile clients and the web client provide identify and reset functions to, among other things, handle the anonymous ID. Would it be possible to implement those extensions to this library as well? They can be backed by AsyncStorage for persistency. I'd be happy to contribute.

carlosconnected avatar Nov 24 '17 20:11 carlosconnected

@carlos-peru

I'm currently handling this with a saga. Generating and id with react-native-unique-id for anonymous users and using alias method once we identify the user. But yeah, feel free to send a pull request if you have a better solution :)

neiker avatar Nov 29 '17 19:11 neiker