Quick Installation
Embed the TWT Chat widget on every page of your website.
Step 1: Get the installation code
Sign in to the TWT Chat agent console, then go to Settings > Installation > Website Code and copy the installation snippet.
An example is shown below:
<!-- Start of TWT Chat code -->
<script>
window.TWTChatWidget = window.TWTChatWidget || {
_q: [],
on: function () {
this._q.push(["on", Array.prototype.slice.call(arguments)]);
},
};
window.__twt__config = {
appid: "Use your project's APPID",
icon: "1",
};
(function (n, t) {
var e = {
init: function () {
var n = t.createElement("script");
n.async = !0;
n.type = "text/javascript";
n.src = "https://visitor.chattwt.com/install/core.js?version=v1.2";
t.head.appendChild(n);
},
};
e.init();
})(window, document);
</script>
<!-- End of TWT Chat code -->
Step 2: Paste it into your web page
Paste the copied website code before the closing </body> tag on every page where you want the widget to appear.
Step 3: Verify
Refresh the page. You should see the chat launcher in the lower-right corner. Click it to start a conversation.
Need an account?
Create a free TWT Chat account to get your website code and finish the setup.