deskmetrics

DeskMetrics JS SDK for the web, Chrome Extensions and Electron.

Usage no npm install needed!

<script type="module">
  import deskmetrics from 'https://cdn.skypack.dev/deskmetrics';
</script>

README

DeskMetrics

DeskMetrics JS SDK for the web, Chrome Extensions and Electron.

Installation

Using npm:

npm install deskmetrics

Usage

Start the SDK. Your app ID can be found online in the DeskMetrics dashboard.

let deskmetrics = require('deskmetrics')
deskmetrics.start({ 'appId': '<-- YOUR APP ID -->' });

We're ready to send an event:

deskmetrics.send('hello_world', { message: '... from nodejs'})