ES6
FullStory.onReady().then(function (result) {
const replayStartUrl = result.replayStartUrl
const replayNowUrl = result.replayNowUrl
const sessionId = result.sessionId
})
async/await
const { replayStartUrl, replayNowUrl, sessionId } = await FullStory.onReady()
onReady
listener method gets called once Fullstory has been fully initialized and has started session capture.
Example Invocation
ES6
FullStory.onReady().then(function (result) {
const replayStartUrl = result.replayStartUrl
const replayNowUrl = result.replayNowUrl
const sessionId = result.sessionId
})
async/await
const { replayStartUrl, replayNowUrl, sessionId } = await FullStory.onReady()