Skip to content

Install the widget

Add the Leadux embed code to your website with WordPress, Google Tag Manager, Wix, Webflow, Shopify or plain HTML, and check that it works.

The Leadux widget is one line of code. Once it is on your website, the chat button appears on every page that loads it, and visitors can start chatting right away. You don’t need to change your website in any other way.

Copy your embed code

  1. Open Websites → your website → Settings.
  2. In the Embed Code card, click Copy.

The code looks like this, with your website’s own address in it:

<script src="https://leadux.com/widget/v1/w/your-website-id.js" async></script>

The code contains no secret: it identifies your website, and Leadux sends the rest. Because it loads with async, it doesn’t slow down your page. Add it once per page, ideally on every page, so the assistant is there wherever a visitor lands.

Tip: Want to see the widget on your website before you install it? Use Preview on your website. See Test before going live.

Add it to your website

Paste the code just before the closing </body> tag, or anywhere in the <head>. Both work. These are the usual ways to do that.

WordPress

Use a plugin that adds code to the header or footer of every page, such as WPCode or a similar “header and footer scripts” plugin. Paste the embed code into the footer section and save. Many themes also have a field for custom scripts in their settings.

Avoid editing your theme’s files directly: a theme update can remove the code.

Google Tag Manager

  1. In your container, create a new tag of the type Custom HTML.
  2. Paste the embed code.
  3. Set the trigger to All Pages.
  4. Save, then Submit and publish the container.

If you also want to track leads in Google Ads or GA4 through Tag Manager, see Google Tag Manager.

Wix

In your site’s dashboard, open Settings → Custom Code and add new custom code. Paste the embed code, apply it to all pages, place it in the body at the end, and save. Custom code needs a Wix plan with a connected domain.

Webflow

Open Site settings → Custom code, paste the embed code into Footer code, save, and publish your site.

Shopify

In your admin, open Online Store → Themes, then Edit code on your live theme. Open theme.liquid, paste the embed code just above </body>, and save.

Other websites and custom HTML

Paste the embed code just before </body> in your site’s template or layout file, so it appears on every page. If your developer manages the website, send them the code.

Remove other chat widgets

If your website already has another chat or chatbot, remove it or switch it off on the pages where Leadux runs. Two chat buttons in the same corner confuse visitors, and they may write to the one nobody reads.

Check that it works

  1. Open your website in a new tab and reload the page. The chat button should appear.
  2. Send a test message and wait for the answer.

If the button doesn’t appear:

  • Clear your caching plugin or CDN cache. Caching and optimisation plugins can serve an old version of your pages. If the button still doesn’t appear, exclude the Leadux script from features that combine or delay JavaScript.
  • Check that the widget is switched on. Under Settings → Widget Behavior, Widget active must be ticked, and you must click Save Changes.
  • Check for a Content Security Policy. If your website restricts which scripts may load, allow the address in your embed code for scripts and connections.

If the button appears but your first message only gets “Chat is currently unavailable.” (or its translation), the page’s domain is probably not in your Allowed Domains. See Add your website.

Note: After you save changes in Leadux, such as new colours or texts, they can take up to 5 minutes to appear on your website.

Last updated . Questions? Write to support@leadux.com.