Skip to main content

Add your webchat widget to your website or a page

Add the webchat widget code to your website or to a page, then check the widget status to see whether visitors can see it.

Written by Gareth Burroughes

The webchat widget code is a script that shows the webchat widget on your website or on a page. Add the code to your website or to a page you've built in Surveys, pages, and forms, then check the widget status to see whether people who visit can see the widget.


Before you start

  • To get the webchat widget code and check the widget status, you must be the account owner or a chat admin. Learn more in Give users access to chat.

  • Customise the widget and select Save and generate code before you copy its code. Learn how in Customise your webchat widget.


Add the widget to your website

If you use the Dotdigital Tag on your website, you can add the widget by setting Enable Chat to Yes in the Tag's settings instead. Learn how in Add the Dotdigital Tag to your website.

  1. Select the Account menu icon and go to Settings > Chat > Widget.

  2. Select View code.

  3. For Auth Callback, select Yes or No:

    • Yes connects the widget to your website's own login system. Contacts created through chat get the same user ID as their account on your website.

    • No if you're not sure.

  4. In the side panel, select Copy to clipboard.

  5. Paste the code into the head section of each page of your website where you want the widget to appear. You can also add the code with a tag manager, such as Google Tag Manager.

The widget appears at the bottom right of those pages.


Add the widget to a page

  1. Select the Account menu icon and go to Settings > Chat > Widget.

  2. Select View code, then select Copy to clipboard.

  3. Add the code to your page as tracking code: select Other, paste the code, and for Tracking code position, select In the <head>. Learn how in Add tracking code to your survey, page, or form.

  4. Publish the page, or republish it if it's already published. Learn how in Publish, unpublish, or republish your survey, page, or form.


Check the widget status

  1. Select the Account menu icon and go to Settings > Chat > Widget.

  2. Under Widget status, check the status in the table below.

Widget statuses

Status

What it means

Widget is visible

The widget shows on your website.

Widget is hidden: All teams are set to hide

Every chat team has Show team in chat widget turned off.

Widget is hidden: All teams are out of hours, offline or hidden

Every chat team is out of hours or has no agents online, and is set to hide the widget at these times.

To show a team in the widget, see Manage chat teams and agents. To change when the widget shows, see Set online hours and automated messages for webchat.

Did this answer your question?