JavaScript SDK

The Bugbattle SDK for JavScript is the easiest way to integrate Bugbattle into your apps! Achieve better app quality & ratings with comprehensive in-app bug reporting. BugBattle offers affordable In-App Bug Reporting for Apps, WebApps & Websites.

For the SDK to work, you need an API Token. Start your 14-day free trial at app.bugbattle.io to get your API token.

πŸ— Installation

Add the following code snippet to your website's / webapp's <head>-tag.

<script src="https://widget.bugbattle.io/widget/YOUR-SDK-TOKEN-HERE"></script>

Congrats, you are now all set πŸŽ‰ Report your first bug by using the feedback button.

πŸ‘·β€β™‚οΈ Advanced Installation

Bugbattle loads asynchronously, which means you need to wait until it is ready. We offer a callback (window.onBugBattleLoaded), which get's called once the Bugbattle SDK has been loaded successfully.

<script>
// Wait for Bugbattle to be loaded.
window.onBugBattleLoaded = function (BugBattle) {
// Attach custom data specific to your application
BugBattle.attachCustomData({
type: "office_dog",
name: "Freija"
});
// Set your customer's email, so the customer won't get asked.
BugBattle.setCustomerEmail("[email protected]");
};
</script>
<script src="https://widget.bugbattle.io/widget/YOUR-SDK-TOKEN-HERE"></script>

🀝 Need help?

We are here to help! [email protected]​