Installing the Widget on Your Website
Before installing the widget, make sure you: Have access to your site's HTML code, Have the AI Assistant enabled in your panel
📋 Prerequisites
Before installing the widget, make sure you:
- ✅ Have access to your site’s HTML code
- ✅ Have the AI Assistant enabled in your panel
- ✅ Know your Sistrack domain (e.g.,
yourcompany.sistrack.com)
🚀 Quick Install
Step 1: Get the Code
The install code is:
<script src="https://YOURDOMAIN.sistrack.com/ai-assistant/widget.js" async></script>
Replace YOURDOMAIN with your Sistrack subdomain.
Step 2: Add It to Your Site
Copy the code and paste it right before the </body> tag on your website.
<!DOCTYPE html>
<html>
<head>
<title>My Site</title>
</head>
<body>
<!-- Your content here -->
<!-- AI Assistant widget (add here) -->
<script src="https://yourcompany.sistrack.com/ai-assistant/widget.js" async></script>
</body>
</html>
Step 3: Verify
- Visit your website
- Look for the chat button in the bottom corner
- Click it and send a test message
📦 Installation by Platform
WordPress
Option A: Custom code plugin
- Install the “Insert Headers and Footers” plugin
- Go to Settings → Insert Headers and Footers
- In the Scripts in Footer section, paste:
<script src="https://yourcompany.sistrack.com/ai-assistant/widget.js" async></script> - Save your changes
Option B: Edit the theme directly
- Go to Appearance → Theme Editor
- Select
footer.php - Add the code before
</body> - Save
⚠️ Note: If you use a child theme, edit the child theme’s
footer.php.
Shopify
- Go to Online Store → Themes
- Click Actions → Edit code
- Find
theme.liquid - Locate the
</body>tag - Add the code right before it
- Save
WooCommerce
Same as WordPress (see above).
Wix
- Go to Settings → Advanced → Custom Code
- Click + Add Custom Code
- Paste the code
- Under “Place Code in”, select Body - end
- Under “Add Code to Pages”, select All pages
- Save
Squarespace
- Go to Settings → Advanced → Code Injection
- In the Footer section, paste the code
- Save
Static HTML
Add it directly to each page before </body>:
<script src="https://yourcompany.sistrack.com/ai-assistant/widget.js" async></script>
⚙️ Advanced Options
Loading on Specific Pages
If you only want the widget on certain pages:
<script>
// Only load on product or contact pages
if (window.location.pathname.includes('/products') ||
window.location.pathname.includes('/contact')) {
var script = document.createElement('script');
script.src = 'https://yourcompany.sistrack.com/ai-assistant/widget.js';
script.async = true;
document.body.appendChild(script);
}
</script>
Delaying the Load
To improve performance, load it after the site is ready:
<script>
window.addEventListener('load', function() {
setTimeout(function() {
var script = document.createElement('script');
script.src = 'https://yourcompany.sistrack.com/ai-assistant/widget.js';
script.async = true;
document.body.appendChild(script);
}, 2000); // Wait 2 seconds after loading
});
</script>
🔍 Verifying the Installation
Checklist
| Step | Done? |
|---|---|
| Code added to site | ☐ |
| Widget visible in the corner | ☐ |
| Clicking opens the chat | ☐ |
| I can send a message | ☐ |
| I get a reply from the assistant | ☐ |
Verification Tools
Browser Console:
- Open your site
- Press
F12orCtrl+Shift+I - Go to the Console tab
- Look for “AI Assistant” messages
If you see errors, check:
- The domain in the script is correct
- No blockers are active
- The assistant is enabled
🚨 Troubleshooting
The widget doesn’t appear
Possible causes:
| Cause | Solution |
|---|---|
| Code in the wrong place | Check it’s before </body> |
| Wrong domain | Check the script’s URL |
| Assistant disabled | Enable it in the panel |
| Ad blocker | Temporarily disable it to test |
| JavaScript error | Check the browser console |
Widget appears but doesn’t work
Possible causes:
| Cause | Solution |
|---|---|
| No API connection | Check your internet connection |
| Limit reached | Check monthly usage |
| Configuration error | Contact support |
Widget looks off
Possible causes:
| Cause | Solution |
|---|---|
| Conflicting CSS | Use the inspector to identify it |
| Wrong position | Change it in the configuration |
| Responsive issues | Test at different screen sizes |
📱 Compatibility
Supported Browsers
| Browser | Minimum Version |
|---|---|
| Chrome | 80+ |
| Firefox | 75+ |
| Safari | 13+ |
| Edge | 80+ |
| Opera | 67+ |
Devices
- ✅ Desktop (Windows, Mac, Linux)
- ✅ Tablet (iOS, Android)
- ✅ Mobile (iOS, Android)
🔒 Security
- ✅ The widget only communicates with your Sistrack domain
- ✅ All communication is over HTTPS
- ✅ No sensitive data is stored in the browser
- ✅ Complies with GDPR and privacy regulations
📞 Support
If you have trouble with the installation:
- Review this full guide
- Check the technical documentation
- Contact support with:
- Your site’s URL
- A screenshot of the error
- Browser and version used
Still have questions?
Our support team replies within 24h by email or WhatsApp.