项目作者: bubenshchykov

项目描述 :
track last N user actions at any point of time
高级语言: JavaScript
项目地址: git://github.com/bubenshchykov/dunno.git
创建时间: 2015-07-31T16:00:16Z
项目社区:https://github.com/bubenshchykov/dunno

开源协议:

下载


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

  1. npm install dunno
  2. var dunno = require('dunno');

Start tracking asap

  1. dunno.start(); // opts {limit: 10, urlcheck: 100}
  2. window.onerror = function() {
  3. console.log(dunno.tell());
  4. };

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

  1. error: Uncaught ReferenceError: invoiceState is not defined
  2. url: /sets/55b941e794a73c03008db78c ~
  3. click: <a cl="set-tab hidden"></a> ~
  4. click: <a cl="set-tab ">Coco</a> ~
  5. url: /games ~
  6. click: <div id="set-header">Create</a> ~
  7. url: /sets/55b941e794a73c03008db78c/55bbd7c2461ab603007d1648a ~
  8. error: Uncaught TypeError: saveInvoice is not a function
  9. away ~
  10. url: /all?cachereset=100023402

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

Example

Dunno