Session URL Retrieval
Retrieve and utilize the current session URL dynamically with Zipy's getCurrentSessionUrl function.
The getCurrentSessionURL function lets you capture a shareable link to the current Zipy session. By default, it returns the standard session URL. You can also include a timestamp, which links directly to the exact moment in the session when the function was called.
Note: If you don’t pass any option, withCurrentTimestamp defaults to false (regular session URL).
Using NPM
// Regular session URL
const url = zipy.getCurrentSessionURL();
console.log('Session URL:', url);
// Session URL with timestamp
const urlWithTime = zipy.getCurrentSessionURL({ withCurrentTimestamp: true });
console.log('Session URL with timestamp:', urlWithTime);Using Script Tag
<script>
// Regular session URL
const url = window.zipy.getCurrentSessionURL();
console.log('Session URL:', url);
// Session URL with timestamp
const urlWithTime = window.zipy.getCurrentSessionURL({ withCurrentTimestamp: true });
console.log('Session URL with timestamp:', urlWithTime);
</script>✨ Tip: Use the timestamp option when you want to share the exact activity point in a session with your team.
Last updated