---
title: "Android SDK: Track pages"
description: "Track the pages your customers visit with the Gleap Android SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/484-android-sdk-track-pages
collection: "Android"
updated: 2026-11-01
language: en
---

# Android SDK: Track pages

Track the pages your customers visit with the Gleap Android SDK. Follow the integration code examples.

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

```java
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.

## Related

- [Android SDK setup](https://docs.gleap.ai/en/articles/466-android-sdk-setup.md)
- [Android SDK: User identity](https://docs.gleap.ai/en/articles/467-android-sdk-user-identity.md)
- [Android SDK: Callbacks](https://docs.gleap.ai/en/articles/468-android-sdk-callbacks.md)
- [Android SDK: Frontend tools](https://docs.gleap.ai/en/articles/469-android-sdk-frontend-tools.md)
- [Android SDK: Forms](https://docs.gleap.ai/en/articles/470-android-sdk-forms.md)
