This usecase describes an example implementation of optin/optout button for Session Recordings.
1. Configuration
In the plugin configuration of the backend, activate the LiveView plugin. We used the following configuration in our example.
2. Script Implementation
The JavaScript has to be integrated in each webpage where we want to cobrowse.
Learn how to implement the LiveView on your page.
3. Sample code - Optin/Optout button
<script src="https://cdn.chatvisor.com/cdn/js/XXXXXX.js" type="text/javascript" async></script>
<button type="button" id="CV_START" onclick="CV.cobrowse.optin()" >Optin</button>
<button type="button" id="CV_STOP" onclick="CV.cobrowse.optout()" >Optout</button>