Chatilo
USDPrices shown in US dollars Sign in Start free trial

Add the widget to your website

Try the chat widget on a sample page, then paste one line of code into your site and limit which websites may show it.

Last updated

On this page
  1. Before you start
  2. Try it on a sample page
  3. Add the code to your site
  4. Limit which websites may show the widget
  5. After you change a setting
  6. How it behaves for visitors
  7. Common problems
  8. How fast it loads

The widget appears on your website when you paste one line of code into your pages. You can try it on a sample page first.

Before you start

  • Create the widget. See Create a chat widget.
  • You need to be able to edit your website's HTML, or use a "custom code" or "footer scripts" setting in your website builder.

Try it on a sample page

  1. In the sidebar, under Grow, click Chat widget and open your widget.
  2. In the Add it to your website card, click Try it on a sample page.

    A sample shop page opens in a new tab with your widget in the corner.

  3. Open the chat and send a message.
  4. Click Open the inbox at the top of the sample page to see the message arrive.

Messages you send from the sample page are real conversations in your inbox.

Add the code to your site

  1. In the Add it to your website card, click Copy.
  2. Paste the code just before the closing </body> tag on every page where the chat should appear.

    In a website builder, paste it into the setting for code added to the footer of every page.

  3. Save or publish your site.
  4. Open your website. The chat button appears in the corner you chose.

The code is a single line that looks like this:

<script src="https://your-platform-address/widget.js" data-chatilo="your-widget-key" async></script>

Always copy the code from your own widget page. It contains your platform's address and your widget's own key.

Limit which websites may show the widget

By default any website with your code can show the widget. To restrict it:

  1. In the Look and wording card, find Websites allowed to show this widget (optional).
  2. Type one domain per line, for example example.com.

    Leave out https:// and anything after the domain. Subdomains are included, so example.com also covers shop.example.com and www.example.com.

  3. Click Save widget.

Leave the field empty to allow any site.

After you change a setting

Changes to the widget show on your website within a minute of saving. You do not need to copy the code again.

How it behaves for visitors

  • The widget remembers a visitor in their browser. When they return, they see their earlier messages.
  • A number on the chat button shows replies they have not read yet.
  • A visitor can send up to 30 messages a minute, each up to 2,000 characters.

Common problems

The widget does not appear on my site

Check these in order:

  • The code is on the page. View the page's source and search for widget.js.
  • Show the widget on my website is ticked on the widget's page.
  • If you filled in Websites allowed to show this widget, your site's domain is on the list and spelled correctly. On a site that is not listed, the widget does not appear at all.
  • Your subscription is active. The widget is hidden when a workspace's plan has expired or the workspace is suspended.
  • Your site does not block outside scripts. If it uses a content security policy, ask your web developer to allow your Chatilo platform's address.

The widget shows on the sample page but not on my site

The code is missing from your site, or your domain is not on the allowed list.

Visitors see "You’re sending messages too quickly. Wait a moment."

The visitor sent more than 30 messages in a minute. They can continue after a short wait.

My change has not appeared

Wait a minute, then reload your site.

How fast it loads

The widget is built not to slow your website.

  • The code loads in the background, after your page.
  • It waits until your page has finished its own work before it starts.
  • A returning visitor sees the button at once, from the settings kept in their browser. Changes you make show on their next page.
  • It asks for nothing while the page is in a background tab.

Keep the async word in the code you pasted.

Cookies on this site

We use the cookies needed to run the site and keep you signed in. With your OK we also remember choices you make here, such as the currency for prices. We don’t use advertising or tracking cookies. Cookie policy