Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.gleap.io/llms.txt

Use this file to discover all available pages before exploring further.

The Android SDK tracks pages based on the activity name by default. If you want to customize the tracked pages you can do so by using the trackEvent() method below to track custom pages.

Track a page

JSONObject data = new JSONObject();
try {
    data.put("page", "Example page");
} catch (JSONException e) {
    e.printStackTrace();
}
Gleap.getInstance().trackEvent("pageView", data);
You will be able to use the tracked pages as triggers in outbound messages as well as breadcrumbs for debugging.