Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Chat widget not loading: how to find and fix it

OPS-202Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Most chat tools (Intercom, Tawk.to, Drift, LiveChat, HubSpot chat and similar) work by loading a third-party script from the vendor's servers. That script draws the chat bubble on your page. If the request fails, is blocked or throws an error, the bubble never shows. Your page still looks normal, so nobody tells you.

Why it costs you leads or sales

Chat is often the quickest route from a question to a lead or sale. Visitors with a pre-purchase question on a pricing, product or checkout page have no obvious alternative, so many leave. Because no error appears on the page, the problem can run for weeks. Your chat inbox just looks quiet.

Where the chat journey breaks
  1. Visitor landsPage loads normally
  2. Widget scriptRequest blocked or errors
  3. Chat bubbleNever appears
  4. ConversationNever starts
  5. Lead or saleQuestion unanswered

The page loads fine, but the widget script fails, so the chat steps never happen.

Chats started per weekExample numbers
Chats started per week (example)Week 1: 40 chats; Week 2: 38 chats; Week 3 (script fails): 2 chats; Week 4: 1 chats01531403821Week 1Week 2Week 3 (script fails)Week 4chats

Example: a site that normally gets about 40 chats a week drops to near zero in the week the script starts failing.

How to check if your site has it

Check the widget in your browser
  1. Open the page in a clean window

    Use a private window with extensions off, so ad blockers do not hide the problem. Test the exact pages where chat should appear, on desktop and mobile.

  2. Open DevTools

    Press F12 (or Cmd+Option+I on Mac) and open the Console tab. Look for red errors that mention the chat vendor, 'Refused to load the script' (CSP) or 'ERR_BLOCKED_BY_CLIENT'.

  3. Check the Network tab

    Reload and filter by JS. Find the vendor's script (for example a widget or loader file). A red row, a 4xx/5xx status or 'blocked' means the script failed.

  4. Compare with consent choices

    Reload after accepting all cookies, then after rejecting. If the bubble only appears after accepting, consent settings are holding it back.

  5. Check the vendor's status and account

    Look at the vendor's status page, your plan or billing state, and the list of allowed domains in the widget settings.

What each symptom usually means
What you seeLikely cause
Console: 'Refused to load the script'Your CSP does not allow the vendor's domain
Network: ERR_BLOCKED_BY_CLIENTAd blocker or privacy extension (only some visitors)
Network: 404 on the scriptWrong or outdated embed code or widget ID
Script loads but no bubbleDomain not allowed, widget disabled, or a JavaScript error before it starts
Bubble appears only after accepting cookiesConsent tool or tag manager trigger is gating the script
Appears on some pages onlyEmbed missing from a template, or a tag manager trigger excludes those pages

How to fix it

Fix the usual causes
  1. Re-copy the embed code

    Copy a fresh snippet from the chat vendor's dashboard and replace the old one. Make sure the widget or app ID matches your current account.

  2. Allow the vendor in your CSP

    If the Console shows a CSP error, add the vendor's domains to script-src, connect-src, frame-src and img-src as the vendor's documentation lists.

  3. Fix consent gating

    If chat is set to load only after consent, make sure the consent category is correct and the script fires once the visitor accepts. Do not remove consent requirements just to make the widget load.

  4. Add your domain in the vendor settings

    Many tools only show the widget on approved domains. Add your live domain, including www and any staging or subdomain you use.

  5. Check the account

    Confirm the plan is active, the widget is switched on and any visibility rules (pages, countries, hours) are correct.

  6. Resolve script conflicts

    If an earlier JavaScript error stops later scripts, fix it. Also check that a caching or minify plugin is not breaking or delaying the widget file.

Where to look on your platform
  1. Check how the widget is added

    It may come from the vendor's plugin, a header/footer scripts plugin or your theme. Make sure it is added only once and is active.

  2. Exclude the script from optimisation

    In your caching or optimisation plugin, exclude the vendor's script from minify, combine and delay-JavaScript settings, then clear the cache.

Example CSP directive (replace with your vendor's real domains)text
Content-Security-Policy: script-src 'self' https://widget.example-chat.com; connect-src 'self' https://api.example-chat.com wss://api.example-chat.com; frame-src https://widget.example-chat.com

How to confirm it's fixed

Confirm the fix
  • The chat bubble appears on a private window on desktop and mobile
  • No red errors from the vendor in the Console
  • The widget script shows status 200 in the Network tab
  • The bubble appears after consent is given, as intended
  • A test message arrives in your chat inbox or app
  • The widget shows on every page where it should, not only the homepage

How to prevent it happening again

Prevention habits
  • Re-test chat after theme, plugin, consent or CSP changes
  • Keep the chat vendor's domains in a documented CSP allow list
  • Keep the account, plan and allowed domains up to date
  • Always offer a non-chat contact option
  • Review tag manager changes before publishing
  • Monitor the chat widget on a schedule instead of relying on a quiet inbox

How FunnelGuard handles this

FunnelGuard detects this today. Its robot visitor loads your pages on a schedule and runs a chat widget check, which flags when the widget script failed. It also runs a broken resources check that reports third-party files that fail to load. A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.

The check can tell you the script failed. It cannot fix the cause or know every reason a particular visitor's blocker hides the widget. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.

Questions people ask

Why is my chat widget not showing on my website?

The widget script usually failed to load or was blocked. Common causes are a wrong embed code, a CSP rule, a consent setting, an ad blocker, a domain not allowed in the vendor settings or an inactive account. Check the Console and Network tabs in DevTools to see which one it is.

How do I check if my chat widget script is loading?

Open the page in a private window, press F12 and reload with the Network tab open. Filter by JS and find the vendor's script. A status of 200 means it loaded; red, blocked or 4xx/5xx means it failed.

Can a Content Security Policy block my live chat?

Yes. If your CSP does not list the vendor's domains under script-src, connect-src and frame-src, the browser refuses to load them. The Console shows 'Refused to load the script' with the blocked address.

Why does my chat widget only appear after I accept cookies?

Your consent tool or tag manager is probably set to load chat only after a consent category is accepted. That can be intended. Check the category is right and that the script fires after acceptance.

Do ad blockers hide chat widgets?

Yes, some ad and privacy blockers block known chat or tracking domains, so the widget fails for those visitors only. Test in a clean window and provide another contact option such as a form or email.

Why does my chat widget work on desktop but not mobile?

Check the vendor's mobile visibility settings, page rules and any theme or tag manager conditions that exclude mobile. The widget may also be hidden behind other elements, so test on a real phone.

How can I be alerted when my chat widget stops loading?

Use synthetic monitoring that loads your pages regularly and checks the widget script. FunnelGuard does this and sends one alert with a screenshot and likely cause after re-checking from a second region.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: chat_widget (script failed) + no_broken_resources third_party.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.