dunno

track last N user actions at any point of time

Usage no npm install needed!

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

README

Build Status

Got weird user complaint but can't reproduce?

Dunno?

Dunno?

  • dunno what user did, where he clicked, on which pages?
  • dunno where he was 5 sec ago? maybe JS errors 10 sec ago?
  • dunno the root cause?

Do know!

Dunno gives you steps to reproduce. Add dunno.js to the page, or require for browserify

npm install dunno
var dunno = require('dunno');

Start tracking asap

dunno.start(); // opts {limit: 10, urlcheck: 100}

window.onerror = function() {
  console.log(dunno.tell());
};

User jumps between pages, does weird stuff, gets an error. Dunno tells you why.

error: Uncaught ReferenceError: invoiceState is not defined
url: /sets/55b941e794a73c03008db78c ~
click: <a cl="set-tab hidden"></a> ~
click: <a cl="set-tab ">Coco</a> ~
url: /games ~
click: <div id="set-header">Create</a> ~
url: /sets/55b941e794a73c03008db78c/55bbd7c2461ab603007d1648a ~
error: Uncaught TypeError: saveInvoice is not a function
away ~
url: /all?cachereset=100023402

Just post dunno.tell() to LogEntries or whatever you use. Now you know!

Example

Dunno