Install the Click2Reply chat widget
The widget is one script tag. It loads after your page has rendered, so it never slows the page down, and it shows the chat button in the corner of every page that carries it.
Copy your code from Settings > Website widget in the agent app: it already holds your license
number. It looks like this, with 12345678 standing in for yours:
<!-- Click2Reply chat widget --><script>window.__c2r = {"license":12345678};;(function(w,d,n){if(w[n])return;var q=[],f=function(m){return function(){q.push([m,[].slice.call(arguments)])}};w[n]={_q:q,on:f("on"),once:f("once"),off:f("off"),call:f("call"),get:function(){throw new Error("[Click2Reply] get() is available after the widget loads")},init:function(){var s=d.createElement("script");s.async=!0;s.src="https://w.click2reply.com/w.js";d.head.appendChild(s)}};!(w.__c2r&&w.__c2r.async_init)&&w[n].init()})(window,document,"Click2Reply");</script><noscript><a href="https://w.click2reply.com/page?license=12345678" rel="nofollow">Chat with our support team</a></noscript>The <noscript> link opens your hosted chat page for a visitor whose browser runs no JavaScript.
Pick your platform
Section titled “Pick your platform”After you install
Section titled “After you install”- The chat button appears on the next page load. If it does not, check that the code is on the
page (view source and search for
__c2r). If Settings > Trusted domains lists any domain, the widget loads only on those domains and their subdomains, so add yours there. - To open the chat from your own button, pass a signed-in customer’s name, or react to the chat, use the widget JavaScript API.
- To route chats from one page to a specific team, add
grouptowindow.__c2r, as the widget API describes.