> ## 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.

# Track pages

The JS SDK tracks pages based on URL changes 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

```javascript theme={null}
Gleap.trackEvent("pageView", {
  page: "Example page",
});
```

You will be able to use the tracked pages as triggers in outbound messages as well as breadcrumbs for debugging.
