Skip to main content
🤖AI Assistant

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

Updated 18 Jan 2026 · 4 min read

📋 Prerequisites

Before installing the widget, make sure you:

  1. ✅ Have access to your site’s HTML code
  2. ✅ Have the AI Assistant enabled in your panel
  3. ✅ 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

  1. Visit your website
  2. Look for the chat button in the bottom corner
  3. Click it and send a test message

📦 Installation by Platform

WordPress

Option A: Custom code plugin

  1. Install the “Insert Headers and Footers” plugin
  2. Go to Settings → Insert Headers and Footers
  3. In the Scripts in Footer section, paste:
    <script src="https://yourcompany.sistrack.com/ai-assistant/widget.js" async></script>
    
  4. Save your changes

Option B: Edit the theme directly

  1. Go to Appearance → Theme Editor
  2. Select footer.php
  3. Add the code before </body>
  4. Save

⚠️ Note: If you use a child theme, edit the child theme’s footer.php.

Shopify

  1. Go to Online Store → Themes
  2. Click Actions → Edit code
  3. Find theme.liquid
  4. Locate the </body> tag
  5. Add the code right before it
  6. Save

WooCommerce

Same as WordPress (see above).

Wix

  1. Go to Settings → Advanced → Custom Code
  2. Click + Add Custom Code
  3. Paste the code
  4. Under “Place Code in”, select Body - end
  5. Under “Add Code to Pages”, select All pages
  6. Save

Squarespace

  1. Go to Settings → Advanced → Code Injection
  2. In the Footer section, paste the code
  3. 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

StepDone?
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:

  1. Open your site
  2. Press F12 or Ctrl+Shift+I
  3. Go to the Console tab
  4. 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:

CauseSolution
Code in the wrong placeCheck it’s before </body>
Wrong domainCheck the script’s URL
Assistant disabledEnable it in the panel
Ad blockerTemporarily disable it to test
JavaScript errorCheck the browser console

Widget appears but doesn’t work

Possible causes:

CauseSolution
No API connectionCheck your internet connection
Limit reachedCheck monthly usage
Configuration errorContact support

Widget looks off

Possible causes:

CauseSolution
Conflicting CSSUse the inspector to identify it
Wrong positionChange it in the configuration
Responsive issuesTest at different screen sizes

📱 Compatibility

Supported Browsers

BrowserMinimum Version
Chrome80+
Firefox75+
Safari13+
Edge80+
Opera67+

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:

  1. Review this full guide
  2. Check the technical documentation
  3. 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.