Embedding a Web Chat in Your Website
Once you’re happy with the configuration of your web chat, the next step is to add a small piece of code to each page of your website on which the chat should be visible.
To add the embed code to your website, follow these steps:
- From the Web Chat configuration home page, click VIEW for the web chat that you wish to add to your website. The Web Chat page is shown.
- In the Web Chat details section, copy the contents of the Embed code for Web Chat box.
-
For each page of your website on which you want the web chat to be visible, paste the embed code inside the
<head>
element, for example:Copy<!DOCTYPE html>
<html>
<head>
<title>Web Page Title</title>
<!--Inisoft WebChat Code -->
<script type="text/javascript" src="xxx"></script>
<script type="text/javascript" src="yyy"></script>
<script type="text/javascript" src="zzz"></script>
<!--End of Inisoft WebChat Code -->
</head>
<body>Note: The embed code is unique for each web chat that you create. In the example above, xxx, yyy, and zzz represent unique URLs for a web chat.