Hi team, I am trying to understand if the NodeJs w...
# support
e
Hi team, I am trying to understand if the NodeJs writeKey can be used with the Javascript SDK?
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.
Yes they technically can but it is best not to, since this may create data inconsistency in your downstream data.
e
So how can the session be managed across the SDKs? For example I have a subdomain - that use RS-JS SDK and the main domain sends the events just from the back-end (Node JS). When someone lands the landing page (in subdomain), will that have a direct mapping when they signup or move to internal pages (after identify and merge), will that sync up with the visitor and user without any issues?
m
Hi akbansa, by default RudderStack stores the cookie in the top-level domain so it is accessible by all Sub-domains. See these docs
e
Got it. I think since we don't use the RS (front-end) in the main domain, so we need to leverage the anonymous ID generated by RS (instead of our own)
h
Yes, once the SDK is loaded in the front end (main domain), you can retrieve the anonymous ID and send it to your back-end.
e
cool. thanks