Widget

Integrate the widget

6min

The ThroughLine widget is a web page embedded in an iframe, enabling you to provide helpline support directly within your safety center or website, without having to build your own user experience.

Use of the widget requires an agreement with ThroughLine.

Don't yet have an agreement to use the widget? Get in touch.

Embedding the widget is straightforward. Simply select your preferred parameters, copy the code snippet (HTML/JS), and embed the snippet into the HTML of a web page. If your team requires analytics, we will work with you to ensure these can be captured via your preferred measurement solution.

This guide covers each of these steps in detail.

1. Agree to widget design

We will work with you to ensure the widget is styled according to your needs. We will provide you with a production widget 48 hours after sign-off.

2. Open your unique embed page

We will provide you with a unique embed page link where you can generate the code snippet for the widget.

A demo embed page with code snippet is available for testing here.

The demo code snippet is strictly for internal testing and not production use.

3. Select your preferred parameters

On the embed page, select your fallback country and default topic or topics.

ThroughLine widge embed page parameters
Embed page parameters


4. Copy code snippet

Click the "Copy to Clipboard" button to copy the code snippet.

5. Embed code snippet in website HTML

Paste the code snippet into your page’s HTML or into a code block of your CMS where you want the widget to appear.

Paste code snippet directly into page HTML
Paste code snippet directly into page HTML

Paste embed code into code block of CMS
Paste embed code into code block of CMS


7. Publish page and start supporting your users ✨

When you publish the page, the widget will appear on load. You can now share this page with your users.