The trackViews method is used to track the current view of the application. The developer should invoke this method in the onCreate method.
Method
public void trackViews(String friendlyName, @Nullable View childView, @Nullable View parentView, Context context, **boolean** addGeo)
Parameters
friendlyName - The client defined view name.
childView - The view object of the child view. It is an optional parameter.
parentView - The view object of the parent view. It is an optional parameter.
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().trackViews("Settings View", settingsFragmentView, MainActivityView, this, addGeo);