Add GetFoxChat to your Hugo site
As of November 15, 2026, to add GetFoxChat to Hugo, in the base template layouts/baseof.html, just before </body>, either directly or through a small partial (Hugo's own guide, September 30, 2026). The video on this page shows GetFoxChat installed, tested and running in 4 minutes (watch it).
Watch it first
▶ Watch how
The line to add
Yours has your own site ID in place of YOUR_SITE_ID.
<script src="https://getfoxchat.com/widget.js" data-site-id="YOUR_SITE_ID" defer></script>
On Hugo, this is what goes in layouts/_partials/getfoxchat.html:
<script src="https://getfoxchat.com/widget.js" data-site-id="YOUR_SITE_ID" defer></script>
How do you add GetFoxChat to Hugo, step by step?
- In GetFoxChat, open the install step for your site and copy your snippet. It already has your site ID in it. No account yet? Create one free.
- Create a partial file, layouts/_partials/getfoxchat.html, containing only the GetFoxChat line with your site ID. source
- Open layouts/baseof.html, the base template that holds the html, head and body elements for your pages. source
- Just before </body>, add {{ partial "getfoxchat.html" . }}. source
- If baseof.html only exists inside your theme, copy it into your project's layouts folder first and edit the copy. source
- Run the hugo build and deploy the public folder. source
- Back in GetFoxChat, press Check my site. The chat switches on once GetFoxChat finds the snippet on your live pages.
Hugo's own guide: Hugo docs: Template types (base and partial). Checked 2026-09-30; if Hugo renames a menu, its guide has the current wording.
Hugo gotchas
- Hugo looks in your project before the theme, so a copy in your own layouts folder wins over the theme file and survives theme updates. source
- Hugo does not clear the public folder before a build; old files stay unless you clean it. source
- The live site only changes after you run a new build and deploy it. source
How do you remove it later?
Remove the partial call from baseof.html and delete layouts/_partials/getfoxchat.html, then rebuild and redeploy.
Folder names follow the current Hugo docs (layouts/baseof.html, layouts/_partials). If your theme keeps its base template in a different folder, edit the baseof.html your theme actually uses.
Watch it take a visitor there
Find out what your visitors can't find
Type your website's address. GetFoxChat reads up to ten of your public pages and shows the GetFoxChat AI Operator answering three questions from them, with the page each answer came from. No account, nothing to install.
Like it? Press Put this on your site in the preview: you get a free account with the site already set up. Plans and what each includes: pricing.