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.
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 with a JavaScript framework, check the following documentation:
- Angular: Bugfender SDK for Angular
- React: Bugfender SDK for React
- Vue: Bugfender SDK for Vue
- Svelte: Bugfender SDK for Svelte
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.