Support Integration

How to include Zipy Session Replay links in the support tickets my customers create?

You can now capture and include a Zipy session URL in any ticket raised by your end users from inside your application where Zipy is integrated. It is as simple as calling a Javascript function getCurrentSessionURL. This function can be called from any page of the application where Zipy is active and will return the ongoing Zipy session URL of that user. On the form submission, when your users create tickets from inside your application, the same Zipy link can be sent to your support desk/chat client. This will enable your support team to access the Zipy sessions of the users, in the corresponding issues reported by them.

Synchronous Method

const sessionUrl = window.zipy.getCurrentSessionURL();
/* You can send this URL in an email/chat that is sent on form submission. */

Example Usage:

const handleLogin = (data) => {
    let sessionURL = window.zipy.getCurrentSessionURL();
    console.log("sessionURL", sessionURL);
    setLoading(true);    
};

Asynchronous Method

For scenarios where you need to fetch the session URL asynchronously, such as when performing other operations before accessing the session URL, you can use the asynchronous version of the function, getCurrentSessionURLAsync.

window.zipy.getCurrentSessionURLAsync().then((sessionUrl) => {
    console.log("Session URL: ", sessionUrl);
    // Use this URL in form submission or send it to your support desk.
});

Example Usage:

const handleLogin = (data) => {
    window.zipy.getCurrentSessionURLAsync().then((sessionURL) => {
        console.log("sessionURL", sessionURL);
        setLoading(true);    
        // Now, send this session URL along with login details or include it in the support ticket
    });
};

Last updated