---
schema_version: "1"
id: 9730d261f40f483aaf07e54efab6adae18363bbd0ba48b28ed049d2758959d57
title: Accessing Metrics for Your Visualforce Pages
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/tools/pages-tools-metrics.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-tools-metrics.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c28ec869a46fc1369c315840c4dd8f40128f78c448c18629a0067c17b0bcd088
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# Accessing Metrics for Your Visualforce Pages

To query metrics on the Visualforce pages in your org, use the `VisualforceAccessMetrics` object in the Salesforce SOAP API.

To query information from the `VisualforceAccessMetrics` object, use the Query Editor in the Developer Console. If you use Visual Studio Code, you can also make queries with the SOQL Builder, which is part of the Salesforce Extension Pack.

The following is a sample SOQL call:

```soql
SELECT ApexPageId, DailyPageViewCount, Id, ProfileId, MetricsDate, LogDate FROM VisualforceAccessMetrics
```

|Parameter|Description|
|---------|-----------|
|`LogDate`|This parameter provides the date that the page access was logged. This parameter is available for release 216 and later.|
|`ProfileId`|The ID of the profile associated with the user who accessed the page. This parameter is available for release 216 and later.|
|`ApexPageId`|The ID of the tracked Visualforce page|
|`DailyPageView`|Each `VisualforceAccessMetrics` object tracks the daily page view count in the `DailyPageViewCount` field.|
|`MetricsDate`|The date the metrics were collected is specified in `MetricsDate`.|

**note:** Page views are tallied the day after the page is viewed, and each `VisualforceAccessMetrics` object is removed after 90 days.

Using `VisualforceAccessMetrics`, you can track the number of views each Visualforce page in your org receives in a 24-hour time period. To find out how many views a page got over the course of multiple days, you can query multiple `VisualforceAccessMetrics` objects for the same `ApexPageId`.

**See Also**  


-   [*Object Reference for the Salesforce Platform*: VisualforceAccessMetrics](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_visualforceaccessmetrics.htm)

