Platform Guides
Step-by-step deployment guides for popular website platforms.
Platform-Specific Deployment Guides
WordPress
- Go to Appearance → Theme Editor
- Open
footer.php - Paste the embed script before
</body> - Click Update File
- Clear your cache
Shopify
- Go to Online Store → Themes → Edit Code
- Open
theme.liquid - Paste the embed script before
</body> - Save and publish
Wix
- Go to Settings → Custom Code
- Click Add Custom Code
- Paste the embed script
- Set placement to Body - end
- Apply to All pages
- Publish your site
Squarespace
- Go to Settings → Advanced → Code Injection
- Paste the embed script in the Footer section
- Click Save
Next.js / React
Add the script to your root layout or a client component:
// app/layout.tsx
import Script from 'next/script'
export default function RootLayout({ children }) {
return (
<html>
<body>
{children}
<Script
src="https://embed.chatnexus.io/scripts/embed.js"
data-chatbot-id="YOUR_CHATBOT_ID"
strategy="lazyOnload"
/>
</body>
</html>
)
}
Static HTML
Add directly to your HTML file:
<!DOCTYPE html>
<html>
<body>
<!-- Your page content -->
<script
src="https://embed.chatnexus.io/scripts/embed.js"
data-chatbot-id="YOUR_CHATBOT_ID">
</script>
</body>
</html>
Troubleshooting:
If the widget doesn't appear, check your browser console for errors. Common issues: Content Security Policy blocking the script, or an incorrect chatbot ID.