To get the Upscope user ID from Javascript you can call the following function:
Upscope('getUserId', console.info);
The second argument of the function is a callback which will be called once the user id is known.
What is the Upscope user id?
The Upscope user ID uniquely identifies a browser within Upscope. To see that browser's history and initiate a screen sharing session you will need to visit https://upscope.io/w/USER_ID
while being authenticated.