QuackChat on Ghost
Add the QuackChat widget to your Ghost blog or publication using code injection.
Quick Start (TL;DR)
- Go to Settings > Code injection
- Paste the widget code in Site Footer
- Save
Prerequisites
- Ghost admin access
- Bot ID from your QuackChat dashboard
Step-by-Step Installation
Option A: Code Injection (Recommended)
- Log into your Ghost admin panel
- Click the gear icon (Settings) in the left sidebar
- Scroll down and click Code injection
- In the Site Footer section, paste:
html
<script
src="https://www.quackchat.app/widget/quackchat-widget.js"
data-bot-id="YOUR_BOT_ID"
></script>
- Click Save
The widget will appear on all pages of your Ghost site.
Option B: Theme Integration (Advanced)
For theme developers who want deeper integration:
- Navigate to your theme files
- Open
default.hbs(main layout) - Add the widget code before
</body> - Upload the modified theme
Note: Theme changes may be overwritten on theme updates.
Platform-Specific Customization
Match Ghost Theme
html
<script
src="https://www.quackchat.app/widget/quackchat-widget.js"
data-bot-id="YOUR_BOT_ID"
data-primary-color="#15171A"
data-theme="minimal"
></script>
Dark Theme for Ghost's Dark Mode
If your Ghost theme supports dark mode:
html
<script
src="https://www.quackchat.app/widget/quackchat-widget.js"
data-bot-id="YOUR_BOT_ID"
data-theme="dark"
></script>
Verification
Quick test:
- Visit your Ghost site
- Look for the chat bubble in the bottom-right corner
- Test sending a message
Troubleshooting
Widget doesn't appear after saving
Cause: Browser cache or Ghost cache.
Solution:
- Clear your browser cache
- Try incognito mode
- Wait a minute for Ghost's cache to clear
Widget conflicts with Ghost newsletter popup
Cause: Both elements may overlap.
Solution: Use data-position="bottom-left" in the widget code.
Known Limitations
- Code injection is site-wide (can't exclude specific pages via UI)
- For per-page control, modify theme files