Script Chat Live Troubleshooting: Why Your Chat Script Isn’t Showing and How to Fix It in 10 Minutes
Script chat live problems are usually simple: you pasted the code, refreshed the page, and the chat bubble didn’t appear. In almost every case the cause is one of ten things, from a code block that turned your script into visible text to a cookie banner or speed plugin quietly holding it back. This guide explains what each part of the install script does, walks through the ten causes in the order worth checking, and gives you a checker that reads your page source and points at the problem.
⚡ In short
- The chat script is one line. If the bubble doesn’t show, the line is missing, broken, blocked or delayed.
- Check in this order: is it on the page, is it intact, is it blocked by consent or security settings, is a speed plugin delaying it, and do your chat settings hide it.
- Paste your page source into the checker below to find most problems in seconds.
- Always test in a private window, after clearing your site and plugin caches.

Line by line
What each part of the script does
The LiveChatBot install code is a single script tag. Knowing what each piece does makes troubleshooting much faster.
src=”https://livechatbot.in/widget.js”
The address of the chat widget. The browser downloads it from livechatbot.in. If this address is blocked by a security policy, an ad blocker or a firewall, nothing appears.
data-key=”…”
Your website’s unique key, which tells the widget which website, settings and inbox it belongs to. If the key is missing or wrong, the widget can’t load your chat. Each website in your account has its own key, so a code copied from your second website will show the second website’s chat.
async
Lets the page carry on loading while the widget downloads. Without it, the chat still works, but your page waits for it.
data-mode=”inline”, data-target, data-height (optional)
Show the chat inside a section of your page instead of as a floating bubble. The target element, such as a div with id “chat-box”, must exist on the page, or there’s nowhere to draw the chat.
Two more facts help with troubleshooting. The widget draws itself inside its own sealed area of the page (a Shadow DOM), so your theme’s CSS can’t break its layout. And if the script appears twice, only the first copy runs: a duplicate won’t show two chats, but a duplicate with a different key can show the wrong website’s chat.
Free tool
Check your page source for script problems
Paste the source of the page where the chat should appear, or load the broken example to see what the checker finds.
Open your website, press Ctrl+U (Cmd+Option+U on a Mac) to view the source, select all, copy and paste it here. On a phone, ask whoever manages the site. Nothing leaves your browser.
The ten causes
Check them in this order
The first five are found in your page code; the last five are settings and caches.
1
Not on the page
The code was added to one page, a draft, or a theme that isn't active. View the source of the live page and search for widget.js.
2
Pasted as text
A paragraph or text block turned the code into visible text. Use a Custom HTML block or your theme's header and footer setting.
3
Broken while copying
Curly quotes, a missing > or a cut-off key. Copy the code again straight from your dashboard.
4
Blocked by consent
Cookie tools can change the tag to type="text/plain" until a visitor accepts a category. Test after accepting, then decide the right category.
5
Blocked by security policy
A Content Security Policy that doesn't allow livechatbot.in stops the script. The browser console shows a CSP error.
6
Delayed by a speed plugin
"Delay JavaScript" features load scripts only after the visitor scrolls or clicks. Exclude widget.js.
7
Old cached page
Your site, plugin or CDN is still serving the page from before you added the code. Purge all caches.
8
Hidden by your chat settings
"Where it shows" can hide the chat on some pages, devices or countries. Check those settings for the page you're testing.
9
Inline target missing
With data-mode="inline", the element named in data-target (for example #chat-box) must exist on that page, or the chat has nowhere to appear.
10
You blocked yourself
If you once blocked your own IP while testing, the chat won't show for you. Check your blocked list.
Platform tips
Where the script should go on popular platforms
Most script chat live problems start with where the code was pasted. The right place depends on your platform.
WordPress
Use the LiveChatBot WordPress plugin, or paste the code into your theme's footer setting or a header-and-footer plugin. Avoid pasting into a paragraph block on one page: it will only appear on that page, and the editor may turn it into text. See the WordPress live chat plugin page.
Shopify
Paste the code into your theme's theme.liquid file just before the closing body tag, or use a custom code section if your theme offers one. There's no LiveChatBot Shopify app; pasting the code is the method. See Shopify live chat.
Wix and Squarespace
Use the site-wide custom code setting and choose "body end" or "footer" as the position. Code added inside a page element only works on that page and may be sandboxed. See Wix live chat and Squarespace live chat.
Plain HTML sites
Paste the code before the closing body tag on every page, or in a shared footer include if your site uses one.
React, Vue and single-page apps
Load the script once in your main HTML file, not inside a component that re-renders. Because the page doesn't reload between screens, call LiveChatBot.pageView() after each route change so visitor tracking shows the right page. LiveChatBot also has React and Vue plugins; ask our team about the developer details.
Security policy
Allowing the chat in a Content Security Policy
A Content Security Policy (CSP) tells browsers which outside addresses your site may load from. It's a good security feature, but a strict policy that doesn't list livechatbot.in will block the chat silently. Visitors see nothing; only the browser console shows the error, which makes it one of the hardest script chat live problems to spot.
How to tell if CSP is the cause
Open your site, press F12 to open developer tools, and look at the Console tab. A message mentioning "Content Security Policy" and livechatbot.in confirms it.
What to allow
Add https://livechatbot.in to script-src, so the widget file can load, and to connect-src, so it can send and receive messages. If the console still shows a blocked connection to another address used for real-time messages, add that address to connect-src as well.
Where the policy lives
CSP can be set in a meta tag in your page, which the checker above can read, or in your server or CDN settings as a response header, which the checker can't see. If the checker finds no policy but the console shows a CSP error, ask your developer or host where the header is set.
Change one setting at a time and re-test. Loosening a policy more than needed weakens your site's protection, so add only the addresses the chat actually uses.
Speed plugins and caches
When the chat appears late or only after a click
Speed plugins and caching services are the most common reason a script chat live setup "works sometimes". The script is on the page, but something changes when or whether it runs.
Delayed JavaScript
Features called "delay JavaScript execution", "load JS on user interaction" or similar hold back scripts until the visitor scrolls, taps or moves the mouse. The chat bubble then appears late, or never on a visitor who doesn't interact. Add widget.js to the plugin's exclusion list.
Combining and minifying
Some plugins merge scripts into one file. External scripts like the chat widget usually shouldn't be combined; exclude livechatbot.in from combining.
Page caches and CDNs
After adding the code, purge the plugin cache, any server cache your host provides, and any CDN cache. Otherwise visitors keep receiving the old page without the script.
Test properly
Test in a private window, so your own browser cache and logged-in state don't hide the result. Check on a phone with mobile data too; some caches serve a separate mobile version.
Final check
A ten-minute test after any fix
Tick each step. Your ticks stay in this browser tab only.
Still stuck
What to send when you ask for help
If the checker and the ten causes don't solve it, gather four things before contacting your developer, host or our team. They usually turn a long back-and-forth into a single reply.
- The exact page address where the chat should appear.
- A screenshot of the browser console (F12, Console tab) on that page.
- The name of your platform and any speed, security or cookie plugins.
- Whether the chat works in a private window, on a phone, or not at all.
With these, most script chat live problems can be pinned down quickly. And once it's working, the next step is making the chat useful: see how to set up live chat on your website for the first-day setup, and how to customise your chat widget to match your brand.
LiveChatBot's free plan covers two websites with 100 visitors per website each month, with the inbox, Android app, visitor tracking and Flows included. Get your install code on livechatbot.in.
Frequently asked questions
Where do I paste a live chat script?
Site-wide, just before the closing body tag, using your platform's footer or custom code setting, or the LiveChatBot WordPress plugin. Avoid pasting it into a single page's text block.
Why does my chat code show as text on the page?
It was pasted into a paragraph or text block, which displays code instead of running it. Use a Custom HTML block or the site-wide code setting.
Can two copies of the script cause problems?
Only the first copy runs. Two copies with the same key are harmless; two with different keys can show the wrong website's chat.
What is the fastest way to fix a script chat live problem?
Paste your page source into the checker on this page, fix what it flags, purge every cache, and test in a private window. Most problems are solved in under ten minutes.
Does a cookie banner block the chat?
It can, if the tool holds back the script until visitors accept a category. Test after accepting and choose the category carefully.
Why does the chat appear only after I scroll?
A speed plugin is delaying JavaScript. Exclude widget.js from the delay feature and clear the cache.
Keep reading
Related guides
Rule Based Chatbot Example You Can Play With: A Bike Service Centre's Bot, Every Rule and Message Included
Rule Based Chatbot Rules That Don't Misfire: Keywords, Order, Negatives and a Free Rule Tester
Robot Chatbot Confusion: Physical Robots, Software Bots and RPA Explained for Business Owners
Get your chat showing on every page
Paste one line, check it with the tool above, and start talking to visitors today. Start free on livechatbot.in.