All other events except the standard events such as “switch”, “SeekBar” and etc can be tracked using the “trackCustom” method.

Method

public void trackCustom(String eventName, JsonObject payload, Context context, **boolean** addGeo)

Parameters

eventName	      - The custom event name
payload	        - The json object which contains the tracking information about the custom event.
context	        - The activity context.
addGeo	        - Flag used to decide whether to append the geo parameter(latitude and longitude) in the Payloads or Not.

Example

Tracker.singleton().trackCustom("seekBarProgress", object, MainActivity.this, addGeo);