Adding JS / Live Chat Widget
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:
- You should have a Google Tag Manager account which you can create for free at https://tagmanager.google.com/
- In Upmind you must add your Google Tag Manager account under
Settings
>Analytics & Tracking
.
- 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.
![Screenshot 2022-05-10 at 14.36.39.png This is an example of the code](https://files.readme.io/8f802a4-Screenshot_2024-07-03_at_10.18.23.png)
This is an example of the code if you using Chatwoot platform
- Next, click Preview to ensure it publishes.
![Screenshot 2022-05-10 at 14.36.39.png](https://files.readme.io/6c9b6f8-Screenshot_2024-07-03_at_10.10.20.png)
- Finally, in the new tab that opens, enter your website URL and try to connect it.
![Screenshot 2022-05-10 at 14.36.39.png](https://files.readme.io/0b01224-Screenshot_2024-07-03_at_10.25.17.png)
- This is how the Live Chat looks like in your client area
![](https://files.readme.io/725a70f-client.ismaaffiya.com_login.png)
Updated about 2 months ago