Hi team, wrt to JS SDK In the identify call - when...
# support
m
Hi team, wrt to JS SDK In the identify call - when my developer is setting this call, should the dev explicitly give the userID or is it automatically set by rudderStack ? expected case: dev just passes the email name etc and the user id is automatically set (is this possible?)
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but 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.
h
if you have an anonymous id it will just use that if you dont pass a user_id
m
@hundreds-lifeguard-65770 do you mean that anonymous id (which was being used before login) becomes the userID?
h
no, it wont have a user_id unless you specify it
m
As Redsquare mentioned, you should provide a user_id. When a new user comes to your website he is given an anonymous Id. Once the user logs in / signs up you should make an identify call and send the user_id (Ideally user DB user_id or any other unique identifier like email). Any subsequent request will send this user_id as part of the request.
m
it makes sense, thank you very much