Website widget and embed
Script, token, Google Tag Manager, and enabling the widget.
The Embed Widget settings page generates everything you need to put Chatloop on your website: a widget token, embed snippet, and optional Google Tag Manager instructions.
Embed code placement
Add the script near the end of the page or in your global layout so it loads on every route where you want chat—for example before the closing </body> tag. Single-page apps should include it in the root layout component.
Widget token
The token ties traffic to the correct agent. Regenerate the token if it leaks (public repo, support ticket, or shared screenshot). After regeneration, update every place the old token appears.
Enable or disable
You can disable the widget without removing the script—useful during maintenance or incidents. Visitors will not see the launcher while it is off.
Google Tag Manager
If you deploy through GTM, use the copy-ready snippet provided on the embed page and publish your container after testing in preview mode.
Onboarding checklist
After first creating an agent, the product may show a short checklist: copy embed code, add training resources, and open Chat to test. Follow those steps to confirm end-to-end behavior.
Security
Treat the token like an API key. Restrict repository access and rotate on any suspicion of exposure.