Support Station Help Center

Support Widget

Installing the Widget

Add the Support Station widget to your website or application with a simple code snippet. This guide covers installation for various platforms.

Getting the Embed Code

  1. Go to Integrations > Widget
  2. Configure your widget settings
  3. Click Copy Code to copy the embed snippet

The code looks something like this:

<script>
  (function(w,d,s,o,f,js,fjs){
    w['SupportStation']=o;w[o]=w[o]||function(){
    (w[o].q=w[o].q||[]).push(arguments)};
    js=d.createElement(s);fjs=d.getElementsByTagName(s)[0];
    js.id=o;js.src=f;js.async=1;fjs.parentNode.insertBefore(js,fjs);
  })(window,document,'script','ss','https://assets.supportstation.io/widget.js');
  ss('init', 'YOUR_WIDGET_ID');
</script>

Basic Installation

HTML Website

Add the script just before the closing </body> tag:

<!DOCTYPE html>
<html>
<head>
  <title>Your Website</title>
</head>
<body>
  <!-- Your website content -->

  <!-- Support Station Widget -->
  <script>
    (function(w,d,s,o,f,js,fjs){
      w['SupportStation']=o;w[o]=w[o]||function(){
      (w[o].q=w[o].q||[]).push(arguments)};
      js=d.createElement(s);fjs=d.getElementsByTagName(s)[0];
      js.id=o;js.src=f;js.async=1;fjs.parentNode.insertBefore(js,fjs);
    })(window,document,'script','ss','https://assets.supportstation.io/widget.js');
    ss('init', 'YOUR_WIDGET_ID');
  </script>
</body>
</html>

Framework-Specific Installation

React

Create a component or add to your app layout:

// components/SupportWidget.jsx
import { useEffect } from 'react';

export function SupportWidget() {
  useEffect(() => {
    // Load widget script
    const script = document.createElement('script');
    script.src = 'https://assets.supportstation.io/widget.js';
    script.async = true;
    document.body.appendChild(script);

    script.onload = () => {
      window.ss('init', 'YOUR_WIDGET_ID');
    };

    return () => {
      // Cleanup if needed
      document.body.removeChild(script);
    };
  }, []);

  return null;
}

Add to your app:

// App.jsx
import { SupportWidget } from './components/SupportWidget';

function App() {
  return (
    <>
      {/* Your app content */}
      <SupportWidget />
    </>
  );
}

Next.js

Add to your layout or use a Script component:

// app/layout.jsx
import Script from 'next/script';

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        {children}
        <Script id="support-station-widget" strategy="afterInteractive">
          {`
            (function(w,d,s,o,f,js,fjs){
              w['SupportStation']=o;w[o]=w[o]||function(){
              (w[o].q=w[o].q||[]).push(arguments)};
              js=d.createElement(s);fjs=d.getElementsByTagName(s)[0];
              js.id=o;js.src=f;js.async=1;fjs.parentNode.insertBefore(js,fjs);
            })(window,document,'script','ss','https://assets.supportstation.io/widget.js');
            ss('init', 'YOUR_WIDGET_ID');
          `}
        </Script>
      </body>
    </html>
  );
}

Vue

Add to your main App.vue or create a component:

<!-- App.vue -->
<script setup>
import { onMounted } from 'vue';

onMounted(() => {
  const script = document.createElement('script');
  script.src = 'https://assets.supportstation.io/widget.js';
  script.async = true;
  document.body.appendChild(script);

  script.onload = () => {
    window.ss('init', 'YOUR_WIDGET_ID');
  };
});
</script>

WordPress

Add via theme or plugin:

Option 1: Theme Functions

Add to your theme's functions.php:

function add_support_station_widget() {
    ?>
    <script>
      (function(w,d,s,o,f,js,fjs){
        w['SupportStation']=o;w[o]=w[o]||function(){
        (w[o].q=w[o].q||[]).push(arguments)};
        js=d.createElement(s);fjs=d.getElementsByTagName(s)[0];
        js.id=o;js.src=f;js.async=1;fjs.parentNode.insertBefore(js,fjs);
      })(window,document,'script','ss','https://assets.supportstation.io/widget.js');
      ss('init', 'YOUR_WIDGET_ID');
    </script>
    <?php
}
add_action('wp_footer', 'add_support_station_widget');

Option 2: Plugin

Use a "custom code" plugin to add the script to your footer.

Webflow

  1. Go to Project Settings > Custom Code
  2. Paste the widget code in the Footer Code section
  3. Publish your site

Squarespace

  1. Go to Settings > Advanced > Code Injection
  2. Paste the widget code in the Footer section
  3. Save changes

Shopify

  1. Go to Online Store > Themes
  2. Click Actions > Edit Code
  3. Find theme.liquid
  4. Paste the code before </body>
  5. Save

Verifying Installation

After installing:

  1. Visit your website
  2. Look for the widget button (usually bottom-right)
  3. Click to open and test
  4. Submit a test message or ask the AI a question

Troubleshooting

Widget Not Appearing

Check the console:

  1. Open browser developer tools (F12)
  2. Look for errors in the Console tab
  3. Common issues:
    • Script blocked by ad blocker
    • Invalid widget ID
    • JavaScript error preventing load

Verify installation:

  1. View page source
  2. Search for "supportstation"
  3. Confirm script is present

Widget Appears But Doesn't Work

Check network requests:

  1. Open developer tools > Network tab
  2. Look for failed requests to supportstation.io
  3. Check for CORS or firewall issues

Verify widget ID:

  1. Compare your widget ID with the one in Support Station settings
  2. Ensure no typos or extra characters

Widget Loads Slowly

The widget loads asynchronously and shouldn't block your page. If it seems slow:

  • Check your overall page load time
  • Widget depends on network connection
  • AI responses require server communication

Advanced Installation Options

Passing User Data

Pre-fill user information if you know who's logged in by adding query parameters to your page URL:

https://yoursite.com?email=customer@example.com&name=John+Doe

The widget will automatically detect and use this information when a customer opens it.

Customizing Z-Index

By default, the widget uses the maximum z-index (2147483647). If this conflicts with other elements on your page, set a custom value:

window.SupportStation = {
  orgSlug: 'your-org-slug',
  zIndex: 9999
};

You can also change it at runtime:

SupportStationWidget.setZIndex(9999);

Identity Verification (HMAC)

For secure user identification, you can enable identity verification which requires an HMAC signature. This prevents customers from impersonating other users and marks tickets with a verification status.

Key points:

  • The signature must be included in your widget configuration at ticket submission time
  • Without a valid signature, tickets will be marked as "Unverified"
  • Enable this feature in Integrations > Widget > Identity Verification

For full implementation details including code examples, see the Embed API documentation.

By Bryce·Published 7/15/2026·Updated 7/15/2026

Was this article helpful?

More from Support Widget

View all articles in this category

Installing the Widget - Support Station Help Center