Skip to content

Instantly share code, notes, and snippets.

@joelklabo
Created January 9, 2012 22:43
Show Gist options
  • Save joelklabo/1585392 to your computer and use it in GitHub Desktop.
Save joelklabo/1585392 to your computer and use it in GitHub Desktop.
// Logging 'load' event
this._yammerClient.reportEvent({
success: function(data){ console.log('successfully logged "load"') },
error: function(data){ console.log('failed to log', data) },
data: {
events: yam.json.stringify([{ name: 'desktop_session', properties:
{ type: 'load',
version: this._settings._config.siteVersion.current
}
}])
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment