API Reference
Log In

To track custom events in your app, use the following API:

public class MOCA {
  /**
   * Tracks an event represented by an action verb 
   *
   * @param verb Action verb. (E.g. Buy, View, Search, etc.).
   *
   * @return <code>true</code> in case of success, <code>false</code> in case of error.
   */
   public static boolean track (final String verb);

   /**
    * Track event helper methods. 
    */
    public static boolean track (final String verb, long value);
    public static boolean track (final String verb, final String item);
    public static boolean track (final String verb, final String item, final long value);
    public static boolean track (final String verb, final String category, final String item);
    public static boolean track (final String verb, final String category, final String item, final long value);
    public static boolean track (final String verb, final Map<String, Object> attrs);
}