Add GetFoxChat to your Nuxt site
As of November 3, 2026, to add GetFoxChat to Nuxt, in nuxt.config.ts under app.head.script, which Nuxt adds to every page (Nuxt'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 Nuxt, this is what goes in nuxt.config.ts:
export default defineNuxtConfig({
app: {
head: {
script: [
{
src: 'https://getfoxchat.com/widget.js',
'data-site-id': 'YOUR_SITE_ID',
defer: true,
tagPosition: 'bodyClose',
},
],
},
},
})
How do you add GetFoxChat to Nuxt, 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.
- Open nuxt.config.ts in the project root. source
- Inside defineNuxtConfig, add an app.head.script entry with src set to https://getfoxchat.com/widget.js. source
- Add 'data-site-id': 'YOUR_SITE_ID' and defer: true to the same entry, and replace YOUR_SITE_ID with your site ID. source
- Optionally add tagPosition: 'bodyClose' so the tag goes at the end of the body instead of the head. source
- Rebuild and redeploy the site.
- Back in GetFoxChat, press Check my site. The chat switches on once GetFoxChat finds the snippet on your live pages.
Nuxt's own guide: Nuxt docs: SEO and Meta. Checked 2026-09-30; if Nuxt renames a menu, its guide has the current wording.
Nuxt gotchas
- app.head in nuxt.config is static; it cannot take reactive data. That is fine here because the site ID never changes. source
- If you already have an app.head block, add the script entry to it instead of creating a second one. source
- Nuxt also accepts the same script entry through useHead in app.vue if you prefer to keep it out of the config file. source
How do you remove it later?
Delete the script entry from app.head in nuxt.config.ts, then rebuild and redeploy.
Checked against the Nuxt 4.x docs; the app.head config key is the same in Nuxt 3.
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.
Your AI Operator starts as Foxy. Rename it and give it your own avatar in Settings. Plans and what each includes: pricing.