SessionRecording - Optin/Optout button - TeamViewer Support
<main>
<article class="userContent">
<p>This usecase describes an example implementation of optin/optout button for Session Recordings.</p><h2 data-id="1.-configuration">1. Configuration</h2><p>In the plugin configuration of the backend, activate the LiveView plugin. We used the following configuration in our example.</p><div class="embedExternal embedImage display-large float-none">
<div class="embedExternal-content">
<a class="embedImage-link" href="https://us.v-cdn.net/6032394/uploads/8WOQQ5OLP6OD/image.png" rel="nofollow noreferrer noopener ugc" target="_blank">
<img class="embedImage-img" src="https://us.v-cdn.net/6032394/uploads/8WOQQ5OLP6OD/image.png" alt="image.png" height="141" width="707" loading="lazy" data-display-size="large" data-float="none"></img></a>
</div>
</div>
<h2 data-id="2.-script-implementation">2. Script Implementation</h2><p>The JavaScript has to be integrated in each webpage where we want to cobrowse.</p><p><a href="https://docs.chatvisor.com/docs/setup20_implementation-javascript" rel="nofollow noreferrer ugc">Learn how to implement the LiveView on your page.</a></p><h2 data-id="3.-sample-code-optinoptout-button">3. Sample code - Optin/Optout button</h2><pre class="code codeBlock" spellcheck="false" tabindex="0"><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>
</pre><p><br></p>
</article>
</main>