Use Google Tag Manager if your site already loads a GTM web container. You need access to edit the container and publish changes.
Option A — Install manually
- Open the bot in your production UpChat account.
- Go to Management → Bot Details → Embed code → Manual GTM.
- Select Copy. Use the code from your own bot.
- Open the correct web container in Google Tag Manager.
- Choose Tags → New → Tag Configuration → Custom HTML.
- Paste the complete copied snippet into the HTML field.
- Give the tag a recognizable name, such as UpChat Widget.
- Configure a site-wide trigger. The UpChat panel says All Pages. Because the snippet appends an element to
document.body, verify that it runs after the page body exists. If it fires too early, use a DOM Ready trigger on all intended pages. - Save the tag.
- Select Preview, connect to your website, and verify that the tag fires and the widget responds.
- Select Submit → Publish and Create Version, review the changes, name the version, and select Publish.
Google documents Custom HTML tags, page-view and DOM Ready triggers, and verification and publishing.
Option B — Review the guided connection
The Google Tag Manager tab in Bot Details → Embed code offers Go to GTM Integration. You can also open Management → Integrations and the Google Tag Manager details.
The connection starts with Connect with Google. Use the Google account that manages the intended container, and review permissions carefully. This integration creates a Custom HTML tag in your container that loads the UpChat widget on all pages. Confirm the selected site and container before any deployment.
Verify on the live site
Open the website after publishing, test the bot, and check a second page. A successful GTM preview alone does not publish the tag. The widget only appears on the domain saved as Website URL on Bot Details. Remove duplicate installations if the same widget is already inserted directly by your theme or another tool.