Add GetFoxChat to your Joomla site
Create a user.js file in the Cassiopeia template's js folder (System, Site Templates, Cassiopeia Details and Files) containing a few lines that add the GetFoxChat script tag to every page; Cassiopeia loads user.js on every page automatically. The line loads the GetFoxChat chat bubble on every page, and the operator behind it answers your visitors from your own public pages.
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 Joomla, this is what goes in media/templates/site/cassiopeia/js/user.js:
(function () {
function add() {
var s = document.createElement('script');
s.src = 'https://getfoxchat.com/widget.js';
s.setAttribute('data-site-id', 'YOUR_SITE_ID');
document.body.appendChild(s);
}
if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', add); } else { add(); }
})();
Add GetFoxChat to Joomla, 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.
- In the Joomla Administrator, go to System, then Site Templates, then Cassiopeia Details and Files, which opens the Template: Customise (Cassiopeia) form. source
- In the media files group, select the js folder, then the New button. source
- In the New File dialog, keep the js folder selected, enter user as the File Name, choose .js as the File Type, and select Create. If user.js already exists, open it instead. source
- Paste the GetFoxChat loader lines (shown on this page) into user.js, with your own site ID in place of the placeholder. source
- Click Save, then reload your site and check that the chat bubble shows. source
- Back in GetFoxChat, press Check my site. The chat switches on once GetFoxChat finds the snippet on your live pages.
Joomla's own guide: Joomla guide: Cassiopeia template customisation. Checked 2026-09-30; if Joomla renames a menu, its guide has the current wording.
Joomla gotchas
- user.js holds JavaScript, not HTML, so the plain script tag will not work there; use the short loader that creates the tag. source
- Do not edit the template's own files such as index.php; the Joomla guide says you may add user.css and user.js but should not change the template files. source
- These steps are for Cassiopeia. A third-party template may not load user.js, so check with its maker or use a child template. source
Removing it later
Go back to System, Site Templates, Cassiopeia Details and Files, open js, user.js, delete the GetFoxChat loader lines (or the whole file if you added nothing else), and save.
Applies to Joomla 4 and 5 with the built-in Cassiopeia template; source checked on the 5.4-dev branch. The guide's click-by-click steps describe creating user.css; the same New File flow in the js folder creates user.js. That Cassiopeia loads user.js on every page is confirmed from Joomla's own source on GitHub (joomla.asset.json declares template.user as user.js, index.php calls useScript for it). This file holds JavaScript, not HTML, so it gets a short loader that adds the same script tag with your site ID once the page has loaded.
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.