Documentation

Tawk.to

UserView integrates with Tawk.to, allowing you to transition from a chat to viewing a customer's screen in seconds.

Integrate Tawk.to with UserView

To integrate UserView with Tawk.to, follow these steps:

  1. Paste the UserView code on the same pages as the Tawk.to code.
  2. Add the following function to those pages:
    Tawk_API.onLoad = function() {
        Upscope('getWatchLink', function(link) {
            Tawk_API.setAttributes({
                'Screenshare': link
            }, function(error) {});
        });
    };
    

You can find the UserView code within your UserView account settings under Installation instructions.

Your unique Tawk.to code snippet can be found when you first sign up or log into Tawk.to and navigate to Settings at the bottom left of their interface.

The Tawk.to snippet and the additional function will combine to look like this:

<!--Start of Tawk.to Script-->

<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function() {
    var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
    s1.async=true;
    s1.src='https://embed.tawk.to/YourTawktoUniqueCode/default';
    s1.charset='UTF-8';
    s1.setAttribute('crossorigin','*');
    s0.parentNode.insertBefore(s1,s0);
})();

Tawk_API.onLoad = function() {
    Upscope('getWatchLink', function(link) {
        Tawk_API.setAttributes({
            'Screenshare': link
        }, function(error) {});
    });
};
</script>

Test Your First Screen Sharing Session

Once you've added the Tawk.to snippet, the extra function, and the UserView snippet on your site, you're ready to test it out.

  • Create your first test chat.
  • Tawk.to will notify you of the incoming chat.
  • Open Tawk.to and click on the individual incoming customer chat; you'll see a Screenshare link appear in the panel on the right-hand side.
  • This is your one-click interactive screen sharing link that takes you directly to the customer's browser.
\n"}]},{"type":"section","id":"test-your-first-screen-sharing-session","title":"Test Your First Screen Sharing Session","level":2,"link":"https://cobrowsingapi.com/docs/integrations/tawkto#test-your-first-screen-sharing-session","children":[{"type":"paragraph","id":"p-0","content":"Once you've added the Tawk.to snippet, the extra function, and the UserView snippet on your site, you're ready to test it out."},{"type":"list","id":"list-1","children":[{"type":"list-item","id":"create-your-first-test-chat","title":"","content":"Create your first test chat.","link":"https://cobrowsingapi.com/docs/integrations/tawkto#test-your-first-screen-sharing-session::li::create-your-first-test-chat","meta":{"raw":"Create your first test chat."}},{"type":"list-item","id":"tawkto-will-notify-you-of-the","title":"","content":"Tawk.to will notify you of the incoming chat.","link":"https://cobrowsingapi.com/docs/integrations/tawkto#test-your-first-screen-sharing-session::li::tawkto-will-notify-you-of-the-incoming-chat","meta":{"raw":"Tawk.to will notify you of the incoming chat."}},{"type":"list-item","id":"open-tawkto-and-click-on-the","title":"","content":"Open Tawk.to and click on the individual incoming customer chat; you'll see a `Screenshare` link appear in the panel on the right-hand side.","link":"https://cobrowsingapi.com/docs/integrations/tawkto#test-your-first-screen-sharing-session::li::open-tawkto-and-click-on-the-individual-incoming","meta":{"raw":"Open Tawk.to and click on the individual incoming customer chat; you'll see a `Screenshare` link appear in the panel on the right-hand side."}},{"type":"list-item","id":"this-is-your-one-click-interac","title":"","content":"This is your one-click interactive screen sharing link that takes you directly to the customer's browser.","link":"https://cobrowsingapi.com/docs/integrations/tawkto#test-your-first-screen-sharing-session::li::this-is-your-one-click-interactive-screen-sharing","meta":{"raw":"This is your one-click interactive screen sharing link that takes you directly to the customer's browser."}}],"meta":{"ordered":false}}]}]},"https://cms-cdn.userview.com/www/data/docs-index-mkzu47n2-bf54438a.json":[{"slug":"getting-started/implementation-overview","title":"Implementation Overview","order":1,"categoryOrder":0,"segmentOrders":[0,1]},{"slug":"getting-started/invite-team","title":"Invite Your Team","order":2,"categoryOrder":0,"segmentOrders":[0,2]},{"slug":"getting-started/co-browsing-faq","title":"Co-Browsing FAQ","order":3,"categoryOrder":0,"segmentOrders":[0,3]},{"slug":"getting-started","title":"Getting Started","order":999,"categoryOrder":0,"segmentOrders":[0,999]},{"slug":"sdk/web/installation","title":"Installation","order":1,"categoryOrder":1,"segmentOrders":[1,1,1]},{"slug":"sdk/web/configuration-options","title":"Configuration Options","order":2,"categoryOrder":1,"segmentOrders":[1,1,2]},{"slug":"sdk/web/sdk-functions","title":"SDK Functions","order":3,"categoryOrder":1,"segmentOrders":[1,1,3]},{"slug":"sdk/web/listening-for-events","title":"Listening for Events","order":4,"categoryOrder":1,"segmentOrders":[1,1,4]},{"slug":"sdk/web/translations","title":"Multi-Language Support","order":5,"categoryOrder":1,"segmentOrders":[1,1,5]},{"slug":"sdk/web","title":"Web SDK","order":999,"categoryOrder":1,"segmentOrders":[1,1,999]},{"slug":"sdk/ios/installation","title":"Installation","order":1,"categoryOrder":1,"segmentOrders":[1,2,1]},{"slug":"sdk/ios/configuration-options","title":"Configuration Options","order":2,"categoryOrder":1,"segmentOrders":[1,2,2]},{"slug":"sdk/ios/sdk-functions","title":"SDK Functions","order":3,"categoryOrder":1,"segmentOrders":[1,2,3]},{"slug":"sdk/ios/listening-for-events","title":"Listening for Events","order":4,"categoryOrder":1,"segmentOrders":[1,2,4]},{"slug":"sdk/ios","title":"iOS SDK","order":999,"categoryOrder":1,"segmentOrders":[1,2,999]},{"slug":"sdk/android/installation","title":"Installation","order":1,"categoryOrder":1,"segmentOrders":[1,3,1]},{"slug":"sdk/android/configuration-options","title":"Configuration Options","order":2,"categoryOrder":1,"segmentOrders":[1,3,2]},{"slug":"sdk/android/sdk-functions","title":"SDK Functions","order":3,"categoryOrder":1,"segmentOrders":[1,3,3]},{"slug":"sdk/android/listening-for-events","title":"Listening for Events","order":4,"categoryOrder":1,"segmentOrders":[1,3,4]},{"slug":"sdk/android","title":"Android SDK","order":999,"categoryOrder":1,"segmentOrders":[1,3,999]},{"slug":"sdk/element-masking","title":"Element Masking","order":999,"categoryOrder":1,"segmentOrders":[1,999]},{"slug":"sdk/identifying-the-visitor","title":"Identifying the Visitor","order":999,"categoryOrder":1,"segmentOrders":[1,999]},{"slug":"sdk","title":"SDK Documentation","order":999,"categoryOrder":1,"segmentOrders":[1,999]},{"slug":"sdk/the-lookup-code","title":"The Lookup Code","order":999,"categoryOrder":1,"segmentOrders":[1,999]},{"slug":"setup/connect-saml","title":"How to Connect Your SAML Provider","order":999,"categoryOrder":2,"segmentOrders":[2,999]},{"slug":"setup/crm-embed","title":"Embedding UserView Agent view on Another Page Using an Iframe","order":999,"categoryOrder":2,"segmentOrders":[2,999]},{"slug":"setup","title":"Setup","order":999,"categoryOrder":2,"segmentOrders":[2,999]},{"slug":"setup/integrate-live-chat","title":"Integrate your Live Chat Platform","order":999,"categoryOrder":2,"segmentOrders":[2,999]},{"slug":"setup/on-premise","title":"On-premise","order":999,"categoryOrder":2,"segmentOrders":[2,999]},{"slug":"using-userview/initiate-session/userview-app","title":"UserView App","order":1,"categoryOrder":3,"segmentOrders":[3,1,1]},{"slug":"using-userview/initiate-session/lookup-code","title":"Lookup Code","order":2,"categoryOrder":3,"segmentOrders":[3,1,2]},{"slug":"using-userview/initiate-session/agent-request-button","title":"Request Agent Button","order":3,"categoryOrder":3,"segmentOrders":[3,1,3]},{"slug":"using-userview/initiate-session","title":"Initiating a Session","order":999,"categoryOrder":3,"segmentOrders":[3,1,999]},{"slug":"using-userview/initiate-session/troubleshooting","title":"Troubleshooting","order":999,"categoryOrder":3,"segmentOrders":[3,1,999]},{"slug":"using-userview/userview-session-basics","title":"UserView Session Basics","order":1,"categoryOrder":3,"segmentOrders":[3,1]},{"slug":"using-userview/audio-calls","title":"Browser-to-Browser Audio Calls","order":999,"categoryOrder":3,"segmentOrders":[3,999]},{"slug":"using-userview","title":"Using UserView","order":999,"categoryOrder":3,"segmentOrders":[3,999]},{"slug":"using-userview/multi-agent-session","title":"Multi-Agent Session","order":999,"categoryOrder":3,"segmentOrders":[3,999]},{"slug":"using-userview/picture-in-picture","title":"Picture-in-Picture","order":999,"categoryOrder":3,"segmentOrders":[3,999]},{"slug":"using-userview/session-recording","title":"Session Recording","order":999,"categoryOrder":3,"segmentOrders":[3,999]},{"slug":"integrations/intercom/setup","title":"Setup","order":1,"categoryOrder":999,"segmentOrders":[999,999,1]},{"slug":"integrations/intercom/adding-userview-to-your-intercom","title":"Adding UserView to your Intercom Sidebar","order":2,"categoryOrder":999,"segmentOrders":[999,999,2]},{"slug":"integrations/intercom/user-guide","title":"User Guide","order":3,"categoryOrder":999,"segmentOrders":[999,999,3]},{"slug":"integrations/intercom/troubleshooting","title":"Troubleshooting","order":4,"categoryOrder":999,"segmentOrders":[999,999,4]},{"slug":"customization/custom-request-button","title":"Build Your Own Request Button","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"customization","title":"Customization","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"integrations/chatra","title":"Chatra","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"integrations/drift","title":"Drift","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"integrations/freshchat","title":"Freshchat","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"integrations/front","title":"Front","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"integrations/helpscout","title":"HelpScout","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"integrations","title":"Integrations","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"integrations/intercom","title":"Intercom","order":999,"categoryOrder":999,"segmentOrders":[999,999,999]},{"slug":"integrations/jivochat","title":"JivoChat","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"integrations/livechat","title":"LiveChat","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"integrations/olark","title":"Olark","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"integrations/reamaze","title":"Re:amaze","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"integrations/salesforce","title":"Salesforce","order":999,"categoryOrder":999,"segmentOrders":[999,999,999],"render":false},{"slug":"integrations/salesforce/salesforce-chat","title":"Salesforce Chat","order":999,"categoryOrder":999,"segmentOrders":[999,999,999]},{"slug":"integrations/salesforce/salesforce-crm","title":"Salesforce CRM","order":999,"categoryOrder":999,"segmentOrders":[999,999,999]},{"slug":"integrations/tawkto","title":"Tawk.to","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"integrations/tidio","title":"Tidio","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"integrations/trengo","title":"Trengo","order":999,"categoryOrder":999,"segmentOrders":[999,999]},{"slug":"integrations/zendesk","title":"Zendesk","order":999,"categoryOrder":999,"segmentOrders":[999,999]}]};