function addEvent ({ id, duration }) {
  root.Countly.q.push(['add_event', {
    key: id,
    count: 1,
    dur: duration
  }])
}
Add an event to countly.

@param {Object} param0
@param {string} param0.id
@param {number} param0.duration