Skip to content

Instantly share code, notes, and snippets.

@jinqian
Created August 9, 2013 13:38
Show Gist options
  • Select an option

  • Save jinqian/6193642 to your computer and use it in GitHub Desktop.

Select an option

Save jinqian/6193642 to your computer and use it in GitHub Desktop.
// MIXPANEL send a open scanner event
JSONObject properties = new JSONObject();
try {
properties.put("merchant", c.getMerchant());
properties.put("catalog name", c.getName());
properties.put("hour of the day", hourOfTheDay());
} catch (JSONException e) {
e.printStackTrace();
}
mMixpanel.track("open a scanner", properties);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment