public static void trackFromSparksEvent(@NonNull SparksEvent sparksEvent) { if (!isEventIgnored(sparksEvent.getName()) && sMixpanelAPI != null && sGson != null) { try { JSONObject jSONObject = new JSONObject(sGson.toJson(sparksEvent.getParams())); jSONObject.remove("appVersion"); jSONObject.remove("ts"); jSONObject.remove("deviceId"); sMixpanelAPI.m4786a(sparksEvent.getName(), jSONObject); } catch (JSONException e) { C3095y.m9479c(e.toString()); } } }
public static void setMixpanelForUser(@Nullable User user) { if (user != null) { sMixpanelAPI.m4785a(user.getId()); } }
public static void flushMixpanel() { sMixpanelAPI.m4784a(); }
public static void start() { sMixpanelAPI = C2042h.m4769a(ManagerApp.m7917h(), TOKEN); }