---
title: "How to Hide the Chat Widget on the Website"
description: "Control when and to whom your chat window appears to keep your customer support focused and targeted."
url: https://help.user.com/en/articles/199-how-to-hide-the-chat-widget-on-the-website
collection: "Chat Widget & Conversations"
updated: 2026-10-09
language: en
alternates: [fr, pl, de, it, es]
---

# How to Hide the Chat Widget on the Website

Control when and to whom your chat window appears to keep your customer support focused and targeted.

The chat widget serves as a direct communication channel where your team can reach anonymous visitors and recognized contacts using manual or automated messages. You can use it to run automated chatbot conversations, offer live customer support, connect your knowledge base, or share helpful articles directly within the window. Managing when this widget is visible ensures your team can handle conversations effectively without getting overwhelmed.

## Hide the Chat Widget Completely for All Contacts

Use this method if you want to remove the chat window from your website entirely.

1.  Go to "Workspace settings" → "Conversations" → "Chat widget" and find the "Widget Visibility" section.
    
2.  Select "Hidden" from the visibility dropdown options.
    
3.  Click "Save" to apply the update. The chat window will immediately disappear from your website.
    

![](https://staticfiles.gleap.io/ghelparticle/JWcaWSrQZvMSMBlXOr1QIgi9LnBiRUMqBuaAIWSRhXpJTr3vA76kGUCsI8UeAxr1Pq3YV1U57ao.png)

## Hide the Chat Widget for Specific Audience Segments

Apply this option to limit the chat window so it only appears for certain groups of people, such as recognized contacts or anonymous visitors.

> **Info:** Your main widget visibility status must be set to something other than "hidden" for these conditional rules to work.

1.  Go to "Workspace settings" → "Conversations" → "Chat widget" → "Chat Module" and look for the audience targeting options.
    
2.  Choose whether you want to leave the widget visible only for recognized contacts or anonymous visitors (or both).
    
3.  Click "Save" to apply the update. The chat window will immediately react on the changes.
    

![](https://staticfiles.gleap.io/ghelparticle/acCEn1KM8TvW72KAx3QsvSKYbaGEFQJohap8JydbmSU0UK0iSKHBryHB2HY3zWMhXiBJX6CkomB.png)

## Conditionally Visible Widget

Decide who exactly should have the access to the widget on your website. The rules can be applied on the basis of contacts’ actions and characteristics.

1.  Go to "Workspace settings" → "Conversations" → "Chat widget" → "Widget Visibility".
    
2.  Select "Conditional Visibility" option.
    
3.  Click "Save" to deploy your conditional targeting rules.
    
4.  Define your segments in “Contacts” section. Set up specific rules to choose which segments of your contacts can see and access the chat widget. Only the ones who have the attribute “widget\_visibility” with “widget\_is\_visible” value will be able to reach the chat widget. You can create a segment or build an automation to update this attribute.
    

![](https://staticfiles.gleap.io/ghelparticle/2y5kdmCw7LJps5HXiIo54sHCb0E7xzNTMLwjZpzxMgsS762454MlpmgaOALcPidlN1USwTHs56D.png)

## Hide the Chat Widget Outside of Business Hours

Use this method to automatically hide the chat window when your team is off the clock so anonymous contacts and recognized contacts don't expect immediate replies at night or during weekends.

1.  Go to "Workspace settings" → "Conversations" → "Chat Widget" and locate the "Team Member Availability" section.
    
2.  From the dropdown menu, select when the widget should work. Choose the "During Business Hours" option.
    
3.  Set the exact time frame for your chat support team's working hours. Below the schedule, choose to hide the chat widget outside of these hours instead of displaying an autoresponder message.
    
4.  Click "Save" to lock in your availability rules.
    

![](https://staticfiles.gleap.io/ghelparticle/uGnnVg0A4rEbbxsPz4RSnZlp6J7pBs7LD7xjxB4a1K9106HWuEYeeB1ETnQGr60RXplegkwZTWZ.png)

## Hide the Chat Widget Using JavaScript

If you want to control the chat window automatically based on custom actions or logic on your website, your development team can change its status directly within your website's code.

1.  Add the _widget\_hidden_ method to your website's tracking code script where you want to trigger the state change.
    

```javascript
window.civchat = {
    apiKey: "YOUR_WORKSPACE_KEY",
    state: "hidden"
};
```

This setting overrides the default state configured under “Chat Widget Settings” in the Positive User workspace. Use it when you need programmatic control over the widget's visibility or behavior on specific pages.

## Use Cases

-   **Support Management**: Turn off the chat window automatically at night or during weekends so your team doesn't build false expectations of immediate live help when no one is available to answer.
    
-   **Targeted Marketing**: Display the chat widget only to specific contact segments, such as high-value leads or VIP clients, to provide white-glove service while keeping it hidden from general website traffic.
    

## Related Articles

-   [How to Show a Chat Widget on the Website](https://help.user.com/en/articles/173-how-to-add-a-tracking-script-to-your-website.md)
    
-   [Chat Widget Settings](https://help.user.com/en/articles/200-chat-widget-settings.md)
