SatisMeter’s survey for web supports the following javascript events:

  • display  - survey was displayed
  • dismiss  - survey was dismissed without leaving feedback
  • submit  - survey was completed

These events can be used on the client-side for use-cases like opening a chat window upon leaving certain feedback.

Example

satismeter({
  writeKey: "XXXXXXXXXX",
  userId: "1234",
  traits: {
    createdAt: "2016-08-05T09:46:37.244Z",
...
  },
  events: {
    display: function() {
      console.log('survey displayed');
    },    
    submit: function(response) {
      console.log('survey submitted');
    },
    dismiss: function() {
      console.log('survey dismissed');
    }
  }
});
Did this answer your question?