Widget Installation
How to add the TrolleyChat widget to your website.
Shopify
No code required — TrolleyChat installs as a Shopify app embed.
- In your Shopify admin, go to Online Store → Themes
- Click Customize on your active theme
- Go to App Embeds (in the left sidebar)
- Toggle TrolleyChat on
- Make sure your Inbox ID and Widget ID are filled in (you can find these in the Settings section of the TrolleyChat app)
- Click Save
That's it — the widget will appear on your store automatically.
WordPress
- Go to Appearance → Theme Editor
- Open
header.php - Paste the widget code just before
</head> - Click Update File
The widget code snippet:
<script
src="https://app.trolleychat.ai/widget.js"
data-inbox-id="YOUR_INBOX_ID"
async
></script>
You can find your Inbox ID in the Settings section of the TrolleyChat app.
Other Platforms
For any other website, paste the widget code into the <head> section of your site's HTML. If you're not sure where that is, check your platform's documentation for "adding custom scripts" or "header code."
<script
src="https://app.trolleychat.ai/widget.js"
data-inbox-id="YOUR_INBOX_ID"
async
></script>
Verify It's Working
After adding the widget:
- Visit your website
- Look for the chat bubble in the bottom-right corner
- Click it and send a test message
- Check your TrolleyChat dashboard — the message should appear there
Troubleshooting
Widget doesn't appear
- Make sure your Inbox ID and Widget ID are correct (check Settings in the TrolleyChat app)
- For Shopify, make sure the app embed is toggled on
- Check that live chat is enabled for your inbox
Widget loads slowly
- Check that your site isn't blocking third-party scripts
- Try disabling any ad blockers temporarily