Add JavaScript for your website
To make the chat feature available to your customers, you must add a JavaScript to the relevant pages on your website. If you have set up multiple chat channels, each chat channel has a specific JavaScript that must be added to the relevant page(s).
Now that you have configured the chat widget, this step will show you how to add it to your website. Watch this video to learn how to add the chat widget to your website (video length - 2:04):
Steps
-
Go to Settings and maintenance.
- Select Chat in the Navigator.
- Select a chat channel in the list and click View. The JavaScript for the selected chat channel is displayed.
- Select and copy the script.
- Log in to the editor page of your website.
- Go to the section where you can edit or add HTML code.
- Paste the JavaScript for your chat widget into the code of your web page.
- Save, upgrade or publish the changes (this depends on what system you use).
- Open or refresh your web page.
The chat widget is now available and live. Visitors to your website may start chatting with you.
Note
When you enable the chat feature, your organization must be ready to handle all incoming chat conversations.
The DEFER parameter ensures that this script does not block page loading. The script will run after the page finish loading.