Embed on website
Add the Grivo chat widget to your website. Platform-specific guides for React, WordPress, Shopify, Webflow, and more.
Last updated: April 2026
Get your embed code
- Go to Chatbots in your Grivo dashboard
- Click on your chatbot
- Go to the Install tab
- Copy the script tag
The script tag looks like this:
<script
src="https://widget.grivo.io/chat.js"
data-chatbot-id="YOUR_CHATBOT_ID"
async
></script>HTML / static sites
Paste the script tag before the closing </body> tag in your HTML file:
<!DOCTYPE html>
<html>
<head>...</head>
<body>
<!-- Your page content -->
<!-- Grivo Chat Widget -->
<script
src="https://widget.grivo.io/chat.js"
data-chatbot-id="YOUR_CHATBOT_ID"
async
></script>
</body>
</html>React / Next.js
For Next.js (Pages Router), add the script in _document.tsx:
import Script from "next/script";
// In your _document.tsx or layout:
<Script
src="https://widget.grivo.io/chat.js"
data-chatbot-id="YOUR_CHATBOT_ID"
strategy="afterInteractive"
/>For React (Vite, CRA), add a <script> tag in your index.html.
WordPress
- Go to Appearance → Theme File Editor
- Open
footer.php(or your theme's footer template) - Paste the script tag just before
</body> - Click Update File
Alternative: Use a plugin like "Insert Headers and Footers" to add the script without editing theme files.
Shopify
- Go to Online Store → Themes
- Click Actions → Edit Code
- Open
theme.liquid - Paste the script tag before
</body> - Click Save
Webflow
- Go to Project Settings
- Click the Custom Code tab
- Paste the script in the Footer Code section
- Click Save Changes and publish your site
Wix
- Go to Settings → Custom Code
- Click + Add Custom Code
- Paste the script tag
- Set placement to Body - end
- Apply to All pages
- Click Apply
Verify installation
After adding the script:
- Visit your website in a new browser tab
- You should see the Grivo chat widget in the bottom-right corner
- Click it and ask a test question
- Check your Grivo dashboard - the conversation should appear in your inbox
⚠️ Not seeing the widget? Clear your browser cache, check that the script tag was added correctly, and ensure your chatbot is published (not in draft mode).
Next: Customize your widget to match your brand.