> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upmind.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding JS / Live Chat Widget

> Helps you manage all the queries on your hands and makes things easier.

You may want to add custom JavaScript widgets or other elements to your client area. Google Tag Manager makes it easy to manage the JavaScript code displayed to your users and set conditions for when that code is loaded or triggered. Here's how you do it:

1. You should have a **Google Tag Manager** account, which you can create for free at [https://tagmanager.google.com/](https://tagmanager.google.com/)
2. In Upmind, you must add your **Google Tag Manager** account under **Settings** > **Analytics & Tracking**.

![Settings > Analytics & Tracking](https://mintcdn.com/upmind/ZsIo0APxdVb_gFS-/images/fb/2d9eb7e8b06b07b3.png?fit=max\&auto=format\&n=ZsIo0APxdVb_gFS-\&q=85\&s=2dd7b64ceb635492213e3748c3d2bab3)

![Settings > Analytics & Tracking](https://mintcdn.com/upmind/ZsIo0APxdVb_gFS-/images/fb/2d9eb7e8b06b07b3.png?fit=max\&auto=format\&n=ZsIo0APxdVb_gFS-\&q=85\&s=2dd7b64ceb635492213e3748c3d2bab3)

![Settings > Analytics & Tracking](https://mintcdn.com/upmind/ZsIo0APxdVb_gFS-/images/fb/2d9eb7e8b06b07b3.png?fit=max\&auto=format\&n=ZsIo0APxdVb_gFS-\&q=85\&s=2dd7b64ceb635492213e3748c3d2bab3)

Settings > Analytics & Tracking

3. Then go into **Tag Manager**. Add a new tag for every page view. Under **Tag Configuration**, select **Custom HTML** and add your custom JavaScript. Set the triggering to **All Pages**.

![Add new tag](https://mintcdn.com/upmind/JUoAg6onJmXk_-rR/images/fb/e119598ed6768730.png?fit=max\&auto=format\&n=JUoAg6onJmXk_-rR\&q=85\&s=387217d5444d905d83b866705c1d7758)

![Add new tag](https://mintcdn.com/upmind/JUoAg6onJmXk_-rR/images/fb/e119598ed6768730.png?fit=max\&auto=format\&n=JUoAg6onJmXk_-rR\&q=85\&s=387217d5444d905d83b866705c1d7758)

![Add new tag](https://mintcdn.com/upmind/JUoAg6onJmXk_-rR/images/fb/e119598ed6768730.png?fit=max\&auto=format\&n=JUoAg6onJmXk_-rR\&q=85\&s=387217d5444d905d83b866705c1d7758)

Add new tag

![This is an example of the code](https://mintcdn.com/upmind/c5sDUwEs8YpzGbjA/images/fb/95399a7233511a58.png?fit=max\&auto=format\&n=c5sDUwEs8YpzGbjA\&q=85\&s=1fea0b61f067ac20f2eb28d7dba9eb9c)

![This is an example of the code](https://mintcdn.com/upmind/c5sDUwEs8YpzGbjA/images/fb/95399a7233511a58.png?fit=max\&auto=format\&n=c5sDUwEs8YpzGbjA\&q=85\&s=1fea0b61f067ac20f2eb28d7dba9eb9c)

![This is an example of the code](https://mintcdn.com/upmind/c5sDUwEs8YpzGbjA/images/fb/95399a7233511a58.png?fit=max\&auto=format\&n=c5sDUwEs8YpzGbjA\&q=85\&s=1fea0b61f067ac20f2eb28d7dba9eb9c)

This is an example of the code if you are using Chatwoot platform

4. Next, click **Preview** to ensure it publishes.

![Preview](https://mintcdn.com/upmind/92wYnpdR_k6AjH3x/images/fb/5864d87c9a9059dd.png?fit=max\&auto=format\&n=92wYnpdR_k6AjH3x\&q=85\&s=3bc7d79eede47974fa9abf0a175ea741)

![Preview](https://mintcdn.com/upmind/92wYnpdR_k6AjH3x/images/fb/5864d87c9a9059dd.png?fit=max\&auto=format\&n=92wYnpdR_k6AjH3x\&q=85\&s=3bc7d79eede47974fa9abf0a175ea741)

![Preview](https://mintcdn.com/upmind/92wYnpdR_k6AjH3x/images/fb/5864d87c9a9059dd.png?fit=max\&auto=format\&n=92wYnpdR_k6AjH3x\&q=85\&s=3bc7d79eede47974fa9abf0a175ea741)

Preview

5. Finally, in the new tab that opens, enter your website URL and try to connect it.

![Connect](https://mintcdn.com/upmind/6knUVC8F1nK4E5CY/images/fb/c826c40256463520.png?fit=max\&auto=format\&n=6knUVC8F1nK4E5CY\&q=85\&s=aa30e7fbcb160d32997bc4e039ddd44b)

![Connect](https://mintcdn.com/upmind/6knUVC8F1nK4E5CY/images/fb/c826c40256463520.png?fit=max\&auto=format\&n=6knUVC8F1nK4E5CY\&q=85\&s=aa30e7fbcb160d32997bc4e039ddd44b)

![Connect](https://mintcdn.com/upmind/6knUVC8F1nK4E5CY/images/fb/c826c40256463520.png?fit=max\&auto=format\&n=6knUVC8F1nK4E5CY\&q=85\&s=aa30e7fbcb160d32997bc4e039ddd44b)

Connect

6. This is how the **Live Chat** looks in your client area.

![Live chat](https://mintcdn.com/upmind/Dgjmf3QWYVBR40cE/images/fb/59a7bd169b4c5db7.png?fit=max\&auto=format\&n=Dgjmf3QWYVBR40cE\&q=85\&s=fca511ea2854549e34963c86e30a73bd)

![Live chat](https://mintcdn.com/upmind/Dgjmf3QWYVBR40cE/images/fb/59a7bd169b4c5db7.png?fit=max\&auto=format\&n=Dgjmf3QWYVBR40cE\&q=85\&s=fca511ea2854549e34963c86e30a73bd)

![Live chat](https://mintcdn.com/upmind/Dgjmf3QWYVBR40cE/images/fb/59a7bd169b4c5db7.png?fit=max\&auto=format\&n=Dgjmf3QWYVBR40cE\&q=85\&s=fca511ea2854549e34963c86e30a73bd)

Live chat


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.