For the complete documentation index, see llms.txt. This page is also available as Markdown.

Start widget with CDN Script

Quick installation guide to start the BetterBugs Web SDK widget with a CDN script.

lightbulb

PREREQUISITES

Here’s what you need to set up the SDK widget:

  • Basic web app setup (HTML/CSS + JavaScript)

  • API key from the BetterBugs project to manage submitted bug reports.

How to install the BetterBugs Web SDK widget using a CDN Script

Here are the steps for it:

How to Install the BetterBugs Web SDK Widget using a CDN Script | Video Demo
1

Generate API key

Log in to your BetterBugs.io dashboard and generate an API key from Workspace Settings. You’ll need it to initialize the SDK in the following steps.

Steps for generating API key

2

Add CDN script to the HTML head tag in your app

Open your application’s HTML index file. In the head tag, add the following CDN script:

3

Initialize the SDK (with default UI)

In your JavaScript script file, add the following code snippet to initialize the SDK widget. Make sure to add your project API key in the function:

4

Customize the SDK widget UI (Optional)

You can customize the SDK with your brand colors and design from the initialization function:

5

Test the setup

Now, try running the application on your local server. The Web SDK widget should be available at the bottom right side of your app screen (with the default styles).

Example Code in the Video Demo (Along with Customization)

Here’s the complete code to start the Web SDK widget in just one HTML file:

Last updated