Installing the Widget
How to embed the Suppabot chat widget on WordPress, Shopify, Webflow, Wix, Squarespace, Next.js, and more.
Installing the Widget
The Suppabot chat widget is a single script tag. Once added to your site, it renders the chat launcher automatically — no other configuration required.
Finding your embed code
Go to Dashboard → your website → Appearance and click Copy Embed Code. Your snippet looks like this:
<script src="https://suppabot.com/widget.js?key=YOUR_WIDGET_KEY" defer></script>
Replace YOUR_WIDGET_KEY with the key shown in your dashboard. Each website has a unique key.
Platform instructions
WordPress
Option 1: Suppabot WordPress Plugin (recommended)
- Log in to your WordPress admin.
- Go to Plugins → Add New.
- Search for Suppabot.
- Click Install Now, then Activate.
- Go to Settings → Suppabot and paste your widget key.
- Save. The widget appears on all pages automatically.
Option 2: Manual (theme footer)
- Go to Appearance → Theme File Editor.
- Open
footer.php(or your child theme's footer). - Paste the script tag immediately before
</body>. - Click Update File.
Shopify
- Log in to your Shopify admin.
- Go to Online Store → Themes.
- Click Actions → Edit Code next to your active theme.
- Open
Layout → theme.liquid. - Find the closing
</body>tag. - Paste the script tag immediately before it.
- Click Save.
The widget will appear on all storefront pages including product and cart pages.
Webflow
- Open your project in Webflow Designer.
- Go to Project Settings → Custom Code.
- Scroll to the Footer Code section.
- Paste the script tag.
- Click Save Changes.
- Publish your site.
Wix
- Open your site in Wix Editor.
- Go to Settings → Custom Code (in the left sidebar).
- Click + Add Custom Code.
- Paste the script tag.
- Set Place Code In to Body — end.
- Set Add Code To to All Pages.
- Click Apply.
- Publish your site.
Squarespace
- Log in to your Squarespace admin.
- Go to Settings → Advanced → Code Injection.
- Scroll to the Footer field.
- Paste the script tag.
- Click Save.
The widget will appear across all pages of your site.
Next.js (App Router)
Use the Next.js Script component with strategy="afterInteractive" to load the widget after page hydration:
// src/app/layout.tsx
import Script from "next/script";
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
{children}
<Script
src="https://suppabot.com/widget.js?key=YOUR_WIDGET_KEY"
strategy="afterInteractive"
/>
</body>
</html>
);
}
Adding it to the root layout.tsx ensures the widget loads on every page.
React (Vite or Create React App)
Inject the script on mount in your root component:
// src/main.tsx or App.tsx
import { useEffect } from "react";
function App() {
useEffect(() => {
const script = document.createElement("script");
script.src = "https://suppabot.com/widget.js?key=YOUR_WIDGET_KEY";
script.defer = true;
document.body.appendChild(script);
}, []);
return <>{/* your app */}</>;
}
Google Tag Manager
- In your GTM workspace, go to Tags → New.
- Click Tag Configuration → Custom HTML.
- Paste the script tag:
<script src="https://suppabot.com/widget.js?key=YOUR_WIDGET_KEY" defer></script> - Under Triggering, select All Pages.
- Name the tag (e.g. "Suppabot Widget") and click Save.
- Click Submit to publish.
Raw HTML
For any site where you can edit raw HTML directly, paste the script tag immediately before the closing </body> tag on every page:
<script src="https://suppabot.com/widget.js?key=YOUR_WIDGET_KEY" defer></script>
</body>
</html>
Verifying installation
After embedding, visit your website and look for the chat launcher button in the bottom corner of the screen. Click it — if a chat window opens, installation is successful.
If the widget does not appear, check:
- The script tag is present in the rendered HTML (use browser DevTools → Elements, search for
suppabot). - Your widget key is correct (compare against Dashboard → Appearance → Embed Code).
- Your site's Content Security Policy allows
https://suppabot.com. See the Widget Integration developer guide for CSP configuration.
