code: function registerAction(resource) {
      return client.sendCommand({
          id: Lime.Guid(),
          method: Lime.CommandMethod.SET,
          type: 'application/vnd.iris.eventTrack+json',
          uri: '/event-track',
          resource: resource
      })
          .catch(e => console.log(e));
  }
docs: analytics helper functions