Install guide

How to add live chat to a website in six steps

Updated December 2026

A chat bubble takes one script tag, three style choices and a routing rule. This walks the job end to end: what to settle before you touch code, where the snippet goes, how WordPress, Shopify, Wix and Squarespace each handle it, and the habits that quietly stop anybody from using it once it is live.

Before you start
Charla live chat and customer support dashboard

What a live chat widget actually is

A live chat widget is a small script your vendor hosts. It draws a button in the corner of every page, opens a panel when somebody taps it, and carries what they type to an inbox your team reads, usually with the page, device and rough location attached. Everything downstream — greeting, colours, hours, who answers, what happens at 2am — is settings rather than code, which is why a live chat widget for website owners who never write code is an afternoon’s work.

Before you paste any code

Name the questions it will answer. Delivery dates, sizing, stock, a quote. That list decides whether you need a bot, a form or simply a fast inbox, and it decides what the greeting says.

Pick an owner and honest hours. One person is accountable for the queue, and the published hours are ones somebody can staff. A bubble that opens onto nobody is worse than none.

Decide which other inboxes join it. If customers write on WhatsApp, Messenger or Instagram, pulling those into one thread list beats a second browser tab. On a store, order context inside the panel beats a prettier button — see our ecommerce live chat walkthrough.

Set the privacy housekeeping. A chat script sets cookies and often a local identifier, so add it to your cookie notice and your data list. Ask only what you will use, and keep card or health details out of transcripts. Then write the two messages: the greeting, and what people see when nobody is free.

Agree what a good month looks like. Most product questions settled before checkout, nothing sitting unread overnight, one answer reused by the assistant next time. Without that sentence written down, the widget gets judged by how busy it feels.

How to add live chat to your website in 6 steps

Steps 1 to 3 happen in the vendor’s dashboard, step 4 is the only moment you touch your site, and steps 5 and 6 separate a chat bubble people use from one they learn to ignore.

Step 1: choose a tool and take the free signup

Start where billing and free-tier limits are printed plainly, then install two candidates and compare them with real traffic. Our roundup of seven small-team tools covers what each $0 tier keeps out; side-by-side comparisons cover the rest. Sign up with a work address: the queue outlives whoever created it. Confirm three numbers first — seats, monthly conversation volume, and whether automation is included or sold separately.

Step 2: style the widget before it goes anywhere

Set the appearance first: brand colour, bubble icon and corner, panel label, the name and photo of whoever answers. A widget that clashes with your header reads as an advert and gets dismissed before it opens.

Then set what happens on opening. A prechat form asking a name, an email and one free-text line turns an offline visitor into a ticket with context; four fields turn them back. Add the greeting you drafted, and switch on translated replies if your market needs them.

Step 3: copy the one-line script snippet

Every vendor hides it somewhere similar: a settings page called Install, Code, Widget or Channels, sometimes behind a first-project wizard. It is one script tag pointing at their hosted file and carrying a token that identifies your account.

Copy it exactly. Do not shorten the URL, swap protocols or edit the token, and never paste two copies into one page: double installs give visitors two bubbles and duplicate your message counts.

Step 4: paste it above the closing body tag

Position is the whole trick. Put the tag near the very end of your HTML, just before </body>, so the page paints first and the chat loads afterwards. On a templated site, add it once to the shared footer or layout partial and every page inherits it.

Illustrative only — not a working snippet. Your own tag comes from your vendor’s install screen and carries a different attribute and token.

<!-- illustrative example: replace with the snippet from your own dashboard -->
<script
  src="https://cdn.chatvendor.example/widget.js"
  data-site-id="PASTE-YOUR-SITE-ID-HERE"
  defer
></script>

Some vendors load a custom element instead of a plain script, or ask for the head. Where their instructions disagree with this page, follow the vendor, then delete any older chat tag from the template.

Step 5: set routing, opening hours and the handover

Add everyone who will answer and give each a scope: one person on product pages, another on the account area, one on the second brand. Round-robin suits teams where anybody can answer anything; page or skills rules suit teams where they cannot.

Now the clock. Set working hours to the window somebody can staff, then decide the other half of the day: an offline form filing a ticket, an assistant answering from your help articles, or a visible reply-time promise. Finally the escape hatch — map a phrase such as "human" to a person, and make sure whoever is on duty gets an alert when the bot cannot help.

Step 6: test in a private window and on a phone

Open your site logged out in a private window and check four things: the button appears, the panel opens, a message reaches your inbox, and the email alert says which page it came from. Then send one from an actual handset, because that is where most of your traffic sits.

The usual failures show up there. The bubble hides behind a cookie banner or a mobile menu. It sits under the on-screen keyboard on Android. A content blocker strips the script. A cached page serves old HTML with no tag in it. And on a narrow screen the panel covers the add-to-cart button, which is a position setting, not a bug.

Write down what you find. Three lines in a shared note: what broke, what fixed it, who to ping next time. An install nobody documented becomes a fresh investigation the day you add a second storefront, or the day a theme update quietly removes the tag.

Adding live chat on the platforms small businesses use

The script route works everywhere; the app route is usually nicer. Whichever you pick, the same live chat widget for website pages, storefronts and hosted builders still needs those six steps done.

Plain HTML, and sites built with a framework

Static HTML: paste the tag before the closing body tag of each file, or better, into the one footer include they share. A framework has an equivalent — a root layout or document component — and it goes there once.

Two traps. Put the tag in a page component rather than the layout and every route change adds a fresh copy, which can restart the chat mid-conversation. Load it through a tag manager and the bubble arrives after the visitor has looked for it.

WordPress, two ways

Install the vendor’s plugin from the repository and the widget is added on activation, settings under a new wp-admin menu item, updates arriving with your other plugins. Or paste the snippet through a code-snippets plugin, or your child theme’s footer template, if you would rather not add another plugin.

Do not paste it into a page body: it then loads on that entry alone. On staging, remember most vendors tie the token to a domain list, so add the staging hostname before you test.

Shopify, app-first

Install from the Shopify app store and the storefront picks the widget up automatically — also the route that survives theme updates. The alternative is Edit code on the theme, then the layout file, again just above the closing body tag. Note exactly what you added, because the next theme release overwrites that file.

Product pages and collections carry the bubble without extra work. Do not plan on it inside checkout: hosted checkout accepts far less custom code, and the offline flow from step 5 needs to cope.

Wix and Squarespace, without a developer

Wix installs chat from its App Market: search, Add to Site, publish. Wix’s own Smart Chat sits there alongside third-party options, and none of them needs a code editor.

Squarespace takes the snippet through Code Injection, where the Footer field writes before the closing body tag site-wide. Two catches from their documentation: that panel needs a Core, Plus or Advanced plan or an eligible legacy one, and Squarespace support will not debug code you pasted. Bigger carts, Adobe Commerce and Magento among them, usually take a packaged extension instead — see our Adobe Commerce integration.

5 mistakes that kill live chat adoption

Greeting every visitor on every page. A popup on the homepage, again on pricing, again ten seconds later, trains people to close it unread. Greet where a question is likely and let the rest of the site carry a quiet button.

No owner, no published hours. When three people can answer, usually nobody does. Name who is on duty and state the hours; a promise beats a bubble nobody staffs.

Designing for the laptop only. Open the panel on a small screen. If send sits under the keyboard or close is a pixel, visitors give up and the queue looks quiet for the wrong reason.

No fallback when everybody is busy. Offline has to capture the question and create something trackable, or the visitor leaves with it unanswered.

Measuring nothing for a month. Record three numbers for thirty days: conversations started, first-reply time, and how many went unanswered. Without that evidence the tool gets switched off in week two on vibes.

Live chat install: quick answers

How do I add a live chat widget to my website for free?

Take a free tier, copy the widget script from its install screen and paste that above the closing body tag of every page. On a hosted builder, add the vendor app instead and skip code entirely. Free tiers vary far more than paid ones, so check seats, monthly conversation volume and whether the vendor logo stays on your widget before assuming $0 is enough.

Where do I put the live chat code?

Near the end of the body, immediately before the closing body tag, so the page paints first and the chat arrives afterwards. On a templated site, add it once to the shared footer or layout partial. If a vendor asks for the head instead, follow their instruction, and keep only one copy of the script.

Does a chat widget slow my site down?

It adds one script, plus a few assets when somebody opens the panel. Loading after the page renders, which the closing body tag position does anyway, and fetching asynchronously keeps the effect on first paint small. Run a page-speed report once with the widget live.

Can one account cover WordPress and Shopify together?

Only if the tool supports several sites under one login and its plan allows the properties you need. Some vendors count each storefront as a separate project and bill accordingly, so check that rule before installing.

What should the first chat message say?

Offer something specific in under a dozen words, tied to the page in front of them: a delivery estimate on a product, a sizing note on a category, a question about scope on your pricing page. Then leave it alone. A greeting that repeats everywhere teaches visitors to dismiss the bubble.

Install one, then decide with real traffic

Charla gives you a widget, an assistant, a helpdesk and a help center on the Free Forever plan, with no card. Copy the tag from your dashboard, follow the six steps above and run it for thirty days. Prices and limits are on the pricing page.

Start free See what each plan costs