Docs
Browse documentation
DocsLast updated: December 29, 2025
Custom HTML
Install the widget on any static or templated HTML site.
What you will learn
- Where to place the script on static sites
- How to ensure it loads on every page
- How to handle single page applications
Add the script to your base template
For static sites, place the snippet in the shared footer or layout template so it appears on every page.
Code samplehtml
<script async data-api="https://YOUR-APP-URL" src="https://YOUR-APP-URL/api/widget"></script>Single page apps
If you have a React, Vue, or other SPA, insert the snippet in the base HTML file (for example index.html) to ensure it loads once.
Expected outcome
- The widget loads consistently across the entire site.
- Visitors can open the chat without errors.
Common issues
- Snippet added to only one page template.
- Site build process overwrites manual changes.
Related articles
Still stuck?
Contact our team and we will help you troubleshoot or plan the next step.
Contact supportWas this helpful?