How to add live chat on any website platform

Put a real-time conversation route on every page of your site. The code is the same everywhere; where you paste it is not. This covers 35 platforms, 19 of which gate custom code behind a paid plan.

Why this matters

Live chat converts because it removes the gap between a question and an answer — but only while someone is staffing it. An unstaffed live chat widget is worse than no widget: it promises immediacy and delivers a form. Decide your staffed hours before you install anything, and make the widget say something honest outside them.

What you paste

<script src="https://example.com/chat.js" data-site="your_public_key" defer></script>

Nearly every live chat product ships a single script tag like this. The `defer` attribute matters: it stops the widget blocking your page from rendering.

Where it goes, by platform

The code is identical everywhere. The screen you paste it into is not, and neither is whether your plan allows it — 19 of 35 platforms require a paid plan for custom code.

PlatformWhere it goesPlan needed
ShopifyOnline Store → Themes → Edit code → layout/theme.liquidAll plans can edit theme code. Checkout pages are restricted to Shopify Plus.
WooCommerceThe parent theme's footer.php, or a code-snippets pluginNo plan gate — WooCommerce is self-hosted, so you control the code.
BigCommerceStorefront → Script ManagerScript Manager is available on all plans.
Adobe CommerceContent → Design → Configuration → HTML Head / FooterAvailable on Adobe Commerce and Magento Open Source alike.
PrestaShopThe theme's templates/_partials/footer.tplSelf-hosted, so no plan gate.
EcwidThe host page, not Ecwid itselfCustom code on Instant Site requires a paid plan.
Squarespace CommerceSettings → Developer Tools → Code Injection → FooterCode Injection requires a Business plan or higher.
OpenCartcatalog/view/theme/<theme>/template/common/footer.twigSelf-hosted, so no plan gate.
Shift4ShopSettings → Design → Themes & Styles → Edit TemplateTemplate editing is available on all paid plans.
WordPressThe active theme's footer.php, or a code-snippets pluginSelf-hosted WordPress has no gate. WordPress.com requires a Business plan for custom code.
WebflowProject settings → Custom code → Footer codeCustom code requires a paid Site plan; it is not available on the free staging domain alone.
SquarespaceSettings → Developer Tools → Code Injection → FooterCode Injection requires a Business plan or higher. Personal plans cannot add custom code.
WixSettings → Custom Code → Add Custom CodeCustom code requires a paid Premium plan and a connected domain.
FramerSite settings → General → Custom Code → End of <body>Custom code requires a paid site plan.
GhostSettings → Code injection → Site FooterAvailable on Ghost(Pro) and self-hosted alike.
WeeblySettings → SEO → Footer CodeCustom code requires a paid plan.
DudaSettings → Head HTML / Body End HTMLAvailable on all paid Duda plans.
CarrdAn Embed element set to Code, placed at the end of the pageEmbed elements require Carrd Pro.
BubbleSettings → SEO / metatags → Script in the bodyCustom code requires a paid Bubble plan.
SoftrSettings → Custom code → BodyCustom code requires a paid plan.
Next.jsapp/layout.tsx, using next/scriptNone — you control the code.
Reactpublic/index.html, before the closing </body> tagNone.
Vueindex.html, before the closing </body> tagNone.
Nuxtnuxt.config.ts, under app.head.scriptNone.
Astrosrc/layouts/Layout.astro, before </body>None.
SvelteKitsrc/app.html, before %sveltekit.body% closesNone.
Gatsbygatsby-ssr.js, via onRenderBodyNone.
Hugolayouts/partials/footer.htmlNone.
Jekyll_layouts/default.html or _includes/footer.htmlNone.
plain HTMLEvery page's closing </body> tagNone.
HubSpot CMSSettings → Website → Pages → Site footer HTMLAvailable on CMS Hub Starter and above.
DrupalThe theme's html.html.twig, or the Asset Injector moduleSelf-hosted, so no plan gate.
JoomlaThe template's index.phpSelf-hosted, so no plan gate.
Notion sitesA hosting layer such as Super or Potion, not Notion itselfDepends on the hosting layer; most require a paid plan for custom code.
Shopify Hydrogenapp/root.tsx, inside the document bodyNone beyond your Shopify plan.

How to check it worked

  • Load the site in a private window and confirm the launcher appears without you being logged in.

  • Open the browser console and check for blocked-resource errors, which usually mean a Content Security Policy needs updating.

  • Send a test message and confirm it arrives wherever your team actually watches.

What goes wrong

  • Installing it without deciding who answers. The most common outcome is a widget nobody watches.

  • Leaving the default welcome message, which is almost always generic enough to reduce trust.

  • Running two chat widgets at once — they fight for the same screen corner and both look broken.

Questions

Live chat or an AI representative?
They solve different halves. AI absorbs the repetitive questions your site already answers; live chat handles judgement calls and anything account-specific. Most sites want both, with a visible route from one to the other.
Does chat slow the page down?
It can, if the script loads synchronously. A deferred script that lazy-loads its interface only when opened has almost no effect on page load.

Related

term

What is a website chatbot?

The term covers two very different things. Older chatbots follow scripts and break the moment a visitor phrases something unexpectedly. Modern ones retrieve from a business's own content and generate an answer, which handles arbitrary phrasing.

term

What is AI customer service?

AI customer service means answering customer questions with a language model rather than a person. The useful implementations are grounded in a specific business's own content; the poor ones let a general model improvise, which produces confident answers that are wrong.

platform

How to add an AI chatbot to Shopify

You add an AI chatbot to Shopify by pasting a script tag into your theme's theme.liquid file, just before the closing body tag. It takes about two minutes, needs no app install, and survives theme updates as long as you don't switch themes entirely.

platform

How to add an AI chatbot to WordPress

The safest way to add an AI chatbot to WordPress is a code-snippets plugin or your theme's built-in footer-scripts field — not editing footer.php, which a theme update will overwrite. All three methods take under five minutes.

platform

How to add an AI chatbot to Webflow

In Webflow you add an AI chatbot under Site Settings → Custom Code → Footer Code, then publish. The step people miss is publishing — custom code does not appear on the live site until you do, and it never appears in the Designer preview.

platform

How to add an AI chatbot to Squarespace

Squarespace has a Code Injection panel built for exactly this. Paste your snippet into the Footer field under Settings → Advanced → Code Injection and it appears site-wide. You need a Business plan or higher — Personal plans cannot run custom code.

While you are in that field.

RubyRep installs through the same screen, in the same visit. Enter your site and we will read it and hand you the line to paste.

https://

Takes about a minute. No credit card.

All how-to guides