How to install Helpcenter widget?

Markdown

View as Markdown

Add the Helpcenter widget to your website so customers can get answers, read your articles and message your team without leaving your site.

Open the install settings

In your Helpcenter dashboard, click the gear icon at the bottom left to open Settings, then click Install under Widget.

Settings menu with Install under Widget highlighted

Add the code to your website

  1. Under 1. Install Widget on Your Website, click Copy.

  2. Paste the code right before the closing </head> tag on every page where you want the widget to appear. It looks like this, with your own help center's name in data-domain:

    <script id="hc-widget" src="https://chat.help.center/launcher.js" data-domain="yourcompany" async></script>
  3. Publish your website, then click Check Embed Status to confirm the widget is installed.

Widget install step 1 with the Copy and Check Embed Status buttons highlighted

Optional: show who your customers are

The same page has three more steps for websites where customers sign in. Each one has code to copy:

  • 2. Display User Information: pass the customer's name and email, so your team sees who they're talking to.

  • 3. Enable Conversation History: also pass a unique user ID, so customers see their past conversations on any device.

  • 4. Enable JWT Authentication: sign the user's details on your server, so no one can pretend to be another customer. Recommended if your conversations include sensitive information.

Add the code for these steps after the widget code from step 1.

Next steps

To change the widget's colours, tabs and welcome message, see How to design the Helpcenter widget.

Was this article helpful?

Still need help?

Contact us