Skip to content

Installing Ybug on your site ​

Ybug's code is asynchronous and is designed not to slow down your site.

When you create a project in Ybug, you'll be sent an email with a code snippet to add to your website. Alternatively, you can copy the code snippet from your dashboard. Paste it into your website just above the closing </body> tag.

Your code should look something like this:

html
<!-- Ybug code start (https://ybug.io) -->
<script type="text/javascript">
(function() {
    window.ybug_settings = {"id":"XXXXXXXXX"};
    var ybug = document.createElement('script'); ybug.type = 'text/javascript'; ybug.async = true;
    ybug.src = 'https://widget.ybug.io/button/'+window.ybug_settings.id+'.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ybug, s);
})();
</script>
<!-- Ybug code end -->

Replace XXXXXXXXX with your project ID.

JavaScript frameworks

If you're using a JavaScript framework, install one of our official npm packages: ybug-vue, ybug-react, or ybug-angular.

Platform-specific guides

Looking for instructions for the most common web platforms? See the dedicated guides for WordPress, WooCommerce, Shopify, Wix, Google Tag Manager, Webflow and Bubble.

Next steps ​

Once the snippet is in place, you'll probably want to tailor Ybug to your site and team. Here's where to go next.

Customize the widget ​

Developer guide ​

Browser extensions ​

If you need pixel-perfect screenshots, or want to collect feedback and bug reports from testers and team members, our browser extensions are perfect for the job.