The userId will be obtained from a defined cookie. If it is not present, the analytics client will send a request to the Identity Service with the user identity context and obtain and store the userId as a result.
Whenever the user identity context changes, a request with the userId and the new context will be sent to theIdentity Service.
Identity Service gateway and API: TBD
Identity Context: TBD