Install guide: Hugo

Add GetFoxChat to your Hugo site

In the base template layouts/baseof.html, just before </body>, either directly or through a small partial. The line loads the GetFoxChat chat bubble on every page, and the operator behind it answers your visitors from your own public pages.

Before you start: Access to the site's source files and a rebuild and redeploy.

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>

Add GetFoxChat to Hugo, step by step

  1. 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.
  2. Create a partial file, layouts/_partials/getfoxchat.html, containing only the GetFoxChat line with your site ID. source
  3. Open layouts/baseof.html, the base template that holds the html, head and body elements for your pages. source
  4. Just before </body>, add {{ partial "getfoxchat.html" . }}. source
  5. If baseof.html only exists inside your theme, copy it into your project's layouts folder first and edit the copy. source
  6. Run the hugo build and deploy the public folder. source
  7. 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

Removing 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.

Find out what your visitors can't find

See the 5 questions your visitors are likely to ask that your pages don't clearly answer. Free, no account needed.

The chat starts as Foxy. Rename it and change the avatar anytime. Plans and what each includes: pricing.