/BugfenderSDK-JS-Sample

Bugfender Web SDK vanilla JS sample project

Primary LanguageJavaScript

Bugfender

Bugfender is a game-changing platform that logs every detail your users experience and feeds the data straight to an easy-to-use web console. Bugfender SDK is multi-platform and available for mobile and web apps, so you can use the same tool for all your apps.

Bugfender SDK JS Sample

This repository contains a sample application written in HTML and vanilla JavaScript and using Bugfender SDK to collect user logs.

If you plan to use Bugfender SDK on an Angular app, visit https://github.com/bugfender/BugfenderSDK-Angular-Sample

SDK Installation

Here are the main points to getting Bugfender working on your apps:

  • Get an app key at bugfender.com
  • Import Bugfender SDK JavaScript file.
<script defer src="https://js.bugfender.com/bugfender.js"></script>
  • Initialize on your script
// Later on your JavaScript code
// Initialize. `appKey` is the only required option.
Bugfender.init({
    appKey: '<YOUR_APP_KEY_HERE>',
    // apiURL: 'https://api.bugfender.com',
    // baseURL: 'https://dashboard.bugfender.com',
    // overrideConsoleMethods: true,
    // printToConsole: true,
    // registerErrorHandler: true,
    // logBrowserEvents: true,
    // logUIEvents: true,
    // version: '',
    // build: '',
});

// Bugfender now can be used
Bugfender.log('Hello world!');

Remember to change <YOUR_APP_KEY_HERE> with the app key of your app and also your version & build numbers.

Using Bugfender

After you have initialized the SDK, you can start using it:

Bugfender.log('This is a log');

More information

Docs

For more information on all methods available, please go to the Bugfender JS SDK reference documentation.

SDK status

The SDK is suitable for production. Please feel free to open an issue or contact us at bugfender.com .