Hello there, extremely basic question but not fin...
# support
l
Hello there, extremely basic question but not finding a clear answer in the doc. We're using the react native SDK for event collection which apparently sets a default anonymous ID for unidentified user. We start tracking events for users before they are logged in (and therefore prior to calling
identify
). We call
identify
once the user logs in, passing our own user ID and track more events. Should we expect the
identify
call to allow merging the events for the anomymous ID and our internal user ID once the users logs in and we call
identify
?
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hi Guillaume, this is how the userId and anonymousId work. - Random user comes to your app/website. He is provided an anonymousId. The user's activity is tracked based on this anonymousId - The user performs a signup/login. Your team makes an identify call with the userId. - Every subsequent event contains both the userId and the anonymousId. - RudderStack does not merge these events however most analytics destinations such as Amplitude, GA4 automatically merge these events and show them as one user. - If you are using a warehouse destination, you would have a write the query in such a way to fetch all the activity of the user (including his anonymous activity)
l
Thanks for the detailed answer @shy-kite-21035!