Install the widget on your website
Add one script tag, or use the WordPress plugin, React, Next.js or a tag manager.
The widget is one small script. It loads in the background and does not slow the page down.
Where to find your code
Open the project, then Settings, Widget & Install. Your code looks like this:
<script
async
src="https://visualbug.healthsdriven.com/sdk/visualbug.js"
data-project-key="YOUR_PROJECT_KEY">
</script>
Paste it just before the closing </head> or </body> tag on every page where you want the button.
Platforms
- WordPress: use the WordPress plugin, no code needed.
- Shopify: Online Store, Themes, Edit code,
theme.liquid, paste before</body>. - Webflow, Squarespace, Wix: add it as custom code in the site's header or footer settings.
- Google Tag Manager: a Custom HTML tag that fires on all pages.
- React / Vue / single page apps: add the tag to
index.html. The widget follows page changes on its own. - Next.js: use
<Script src="..." strategy="afterInteractive" data-project-key="..." />.
Check that it works
On Widget & Install, press Test installation. VisualBug opens your homepage and tells you whether the code is there and whether the site is verified.
Content Security Policy
If your site sends a Content-Security-Policy header, allow your VisualBug address in script-src, connect-src and img-src.
The button does not show
- The website must be listed under Domains and verified. See Verify your website.
- Clear any page cache (WordPress cache plugins, Cloudflare) after adding the code.
- Check the browser console for messages starting with
VisualBug.