Install guide: Vue (Vite)

Add GetFoxChat to your Vue (Vite) site

As of November 3, 2026, to add GetFoxChat to Vue (Vite), in index.html at the root of the Vue project, just before </body> (Vue (Vite)'s own guide, September 30, 2026). The video on this page shows GetFoxChat installed, tested and running in 4 minutes (watch it).

Before you start: Access to the project's code and a rebuild and redeploy.

Watch it first

GetFoxChat being installed, tested and run on a real site▶ Watch how
Install, test and run GetFoxChat in 4 minutes

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 Vue (Vite), this is what goes in index.html:

<script src="https://getfoxchat.com/widget.js" data-site-id="YOUR_SITE_ID" defer></script>

How do you add GetFoxChat to Vue (Vite), 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. Projects made with create-vue use Vite, so the page template is index.html in the project root. source
  3. Open index.html in the project root (not in the public folder). source
  4. Paste the GetFoxChat line just before </body> and replace YOUR_SITE_ID with your site ID. source
  5. Run npm run build and deploy the new dist folder. source
  6. Back in GetFoxChat, press Check my site. The chat switches on once GetFoxChat finds the snippet on your live pages.

Vue (Vite)'s own guide: Vite docs: index.html and Project Root. Checked 2026-09-30; if Vue (Vite) renames a menu, its guide has the current wording.

Vue (Vite) gotchas

How do you remove it later?

Delete the GetFoxChat script line from index.html, rebuild, and redeploy.

Covers Vue 3 single-page apps scaffolded with create-vue (Vite). Nuxt sites have their own guide.

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.