Skip to main content

🏁 Track pages

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) {
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.