Lead Widgets
Tools โ Lead Widgets creates a floating or embedded widget on your website that visitors can click to submit their contact details โ captured directly as a lead in LeadHub.
The widget is different from a form embed: it appears as a floating button (chat bubble, "Contact Us" button) that opens a form in a slide-in panel, without requiring a dedicated form page.
Creating a Lead Widgetโ
- Go to Tools โ Lead Widgets.
- Click New Widget.
- Configure the widget:
Basic Settingsโ
| Field | Description |
|---|---|
| Name | Internal label |
| Form | Which LeadHub form to display when the widget is opened |
| Button Label | Text on the floating button (e.g. "Get a Quote", "Contact Us") |
| Button Position | Bottom-left or Bottom-right of the page |
| Primary Color | Button and widget accent color |
| Welcome Message | Optional headline shown at the top of the open widget panel |
Behaviorโ
| Field | Description |
|---|---|
| Auto-open Delay | Seconds before the widget auto-opens (0 = manual only) |
| Show on Mobile | Toggle to show/hide on mobile devices |
| Domains | Domains where this widget is allowed to load |
- Click Save โ a JavaScript embed code is generated.
Installing the Widgetโ
Copy the embed code and paste it before </body> on your website:
<script>
window.LeadHubWidget = { token: 'YOUR_WIDGET_TOKEN' };
</script>
<script async src="https://yourdomain.com/widget.js"></script>
The floating button appears on all pages where the script is loaded.
How It Works for Visitorsโ
- Visitor sees the floating button on the page.
- They click it โ a slide-in panel opens with your form.
- They fill in the form and submit.
- LeadHub creates a new lead instantly.
- Any automations with the Form Submitted trigger fire.
- The visitor sees a thank-you message.
Multiple Widgetsโ
You can create different widgets for different pages or campaigns:
- A "Book Demo" widget on your pricing page
- A "Get Support" widget on your help page
- A "Download Guide" widget on a blog post
Each widget can point to a different LeadHub form, use different colors, and have different button labels.
Relatedโ
- Form Builder โ create the form the widget uses
- Forms Overview โ iframe and inline embed options