Skip to content

Instantly share code, notes, and snippets.

@marr
Created July 29, 2016 20:02
Show Gist options
  • Select an option

  • Save marr/51f75e57bf5facacf382e1da2a9eaaf1 to your computer and use it in GitHub Desktop.

Select an option

Save marr/51f75e57bf5facacf382e1da2a9eaaf1 to your computer and use it in GitHub Desktop.
async trackEvent({ category, action, label, value }) {
await this.db('events').insert({
category,
action,
label,
value
});
return this.db.destroy();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment