Skip to main content
Version: v1

Get Session Details

Generate a link to the replay of the current session

Create a link to either the beginning of the session replay or to a specific moment in time in the replay.

Parameters
    now boolean optional

    Default value: false

    If false (or if the now parameter is not provided), the URL returned by the method links to the beginning of the session replay. If true, the returned URL links to the moment in the replay when the method is invoked.

Special Consideration

FS.getCurrentSessionURL(now?) is defined once Fullstory has been fully bootstrapped, which occurs after a rec/page request is made to our servers to get information about your organization. You can find details about the Fullstory client-side bootstrapping process on our knowledge base.

Use the _fs_ready callback to invoke FS.getCurrentSessionURL(now?) after the bootstrapping process is complete:

window['_fs_ready'] = function() {
// This URL will take you to the current time within the session replay
var sessionUrlAtTime = FS.getCurrentSessionURL(true);
};
FS.getCurrentSessionURL(now?)

Example Invocation

window['_fs_ready'] = function() {
var sessionUrlFromBeginning = FS.getCurrentSessionURL();
};
window['_fs_ready'] = function() {
var sessionUrlAtTime = FS.getCurrentSessionURL(true);
};