---
schema_version: "1"
id: 7657a0d999b64732c0c613a33a3cf3fac954f506b9e721db6389ac0a697edbcb
title: Lightning Exit by Page Metrics
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/api-rest/guides/resources/resources-lightning-exitbypagemetrics.md
canonical_url: https://developer.salesforce.com/docs/platform/api-rest/guide/resources-lightning-exitbypagemetrics.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 718c49d25e38d30fd4468127fcc2f4f38492f78e99bfcb946b76600dd0f18cdf
products:
  - REST API Developer Guide
  - Platform Developer Content
---

# Lightning Exit by Page Metrics

Returns frequency metrics about the standard pages within which users switched from Lightning Experience to Salesforce Classic. This resource is available in REST API version 44.0 and later.

Use this object with the following APIs:

-   Platform
-   Metadata API
-   Tooling API

## Syntax

**URI:** `/services/data/vXX.X/sobjects/LightningExitByPageMetrics`

**Formats:** JSON, XML

**HTTP methods:** GET

**Request parameters**

|Parameter|Description|
|---------|-----------|
|`MetricsDate`|The date the data was recorded.|
|`PageName`|Current Page from which User Switched from Lightning to Aloha|
|`RecordCount`|The number of records per user and page.|
|`UserId`|The user ID.|

## Example

```nolang
SELECT PageName PageName, SUM(RecordCount) Total FROM LightningExitByPageMetrics WHERE MetricsDate = Last_N_DAYS:7 GROUP BY PageName ORDER BY SUM(RecordCount) Desc Limit 10
```

