terminalInstallation

Check out the steps to install the BetterBugs Web SDK widget for your web apps.

circle-info

PREREQUISITES

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

  1. API key from the BetterBugs project.

  2. JavaScript application basic setup

  3. BetterBugs Web SDK installation (using CDN script OR npm/yarn OR JavaScript frameworks).

How to generate an API key for integrating the BetterBugs Web SDK Widget

chevron-rightWhat do you need the API key for?hashtag

The API key authenticates the SDK with your web app. Note that the API key is specific to a BetterBugs project.

So, When a user sends a bug report using the SDK widget, the API/secret key would make sure the report goes to the right project (the one you set up in BetterBugs).

circle-exclamation

Here’s how to generate an API key for your BetterBugs project:

1

Open Workspace Settings

Log in to BetterBugs and click on Workspace name at the top left side. Now, click the gear icon to open "Workspace Settings".

2

Open the Web SDK tab

Next, click the “Web SDK” tab under "Workspace Settings".

3

Generate API key and Select a Project

Click "Generate Key" and select a BetterBugs Project to generate the API key for.

4

Continue and Confirm Action

Hit "Continue" and confirm the action.

circle-exclamation

Okay! You’re all set with your secret key.

Methods to install the SDK widget in your web apps

After getting your API key, you can install the SDK in your JavaScript apps using:

Installing the Web SDK widget for different JavaScript frameworks

You can also install the SDK widget for different JavaScript apps, libraries, and frameworks. We’ve included examples for the following setups:

Last updated