For Rudder's web sdk, we would like to understand ...
# support
m
For Rudder's web sdk, we would like to understand the following: 1. Our login happens through khatabook.com (which has rudder web sdk integrated) and post login we redirect to desktop.khatabook.com (which is a different app which also has rudder web sdk integrated). Further when logout happens on desktop.khatabook.com, we redirect back to khatabook.com. a. In the above setup, on login, will the anonymous id that gets set on khatabook.com get used post login on desktop.khatabook.com? b. On logout from desktop.khatabook.com, will the anonymous id automatically get reset on desktop.khatabook.com? c. Basis point b above, if anonymous id does not get reset on desktop.khatabook.com, if a different user logs in on the same system through khatabook.com, what will be the behaviour of anonymous id in this case? 2. In what scenarios would the rudder sdk: a. set the anonymous id? b. reset the anonymous id? 3. We noticed that rudder id is missing from events sent from the client. a. How and when does rudder id get assigned to an event? b. Would the relationship between rudder id to user id be many to one? c. Would the relationship between rudder id to anonymous id be many to one? d. Event though rudder id is missing when the event is sent from the client but would rudder id be present in all events when we view them on the rudder dashboard?
h
You are far better using a custom domain for hosting and serving this across your sub domains including the toplevel
if you do the above your questions go away
@gentle-petabyte-80785 ^^ can you add this information into the docs please - it is a very common question+answer
🙌 1
m
Thanks a lo 😄
👍 1
g
Thanks for bringing it to notice @hundreds-lifeguard-65770. Will update docs
👍 2
h
along the lines of Why do I need to a Custom Domain and suffer extra configuration/overhead
b
Thought this link might be helpful to explain anonymous id query on subdomain: https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-javascript-sdk/data-storage-cookies/
h
yeah set it to the naked domain