|
2 | 2 | title: Azure Application Insights Data Model - PageView Telemetry
|
3 | 3 | description: Application Insights data model for page view telemetry
|
4 | 4 | ms.topic: conceptual
|
5 |
| -ms.date: 03/24/2022 |
| 5 | +ms.date: 09/07/2022 |
6 | 6 | ms.reviewer: mmcc
|
7 | 7 | ---
|
8 | 8 |
|
9 | 9 | # PageView telemetry: Application Insights data model
|
10 | 10 |
|
11 |
| -PageView telemetry (in [Application Insights](./app-insights-overview.md)) is logged when an application user opens a new page of a monitored application. The `Page` in this context is a logical unit that is defined by the developer to be an application tab or a screen and is not necessarily correlated to a browser webpage load or refresh action. This distinction can be further understood in the context of single-page applications (SPA) where the switch between pages is not tied to browser page actions. [`pageViews.duration`](/azure/azure-monitor/reference/tables/pageviews) is the time it takes for the application to present the page to the user. |
| 11 | +PageView telemetry (in [Application Insights](./app-insights-overview.md)) is logged when an application user opens a new page of a monitored application. The `Page` in this context is a logical unit that is defined by the developer to be an application tab or a screen and isn't necessarily correlated to a browser webpage load or refresh action. This distinction can be further understood in the context of single-page applications (SPA) where the switch between pages isn't tied to browser page actions. [`pageViews.duration`](/azure/azure-monitor/reference/tables/pageviews) is the time it takes for the application to present the page to the user. |
12 | 12 |
|
13 | 13 | > [!NOTE]
|
14 |
| -> By default, Application Insights SDKs log single PageView events on each browser webpage load action, with [`pageViews.duration`](/azure/azure-monitor/reference/tables/pageviews) populated by [browser timing](#measuring-browsertiming-in-application-insights). Developers can extend additional tracking of PageView events by using the [trackPageView API call](./api-custom-events-metrics.md#page-views). |
| 14 | +> * By default, Application Insights SDKs log single PageView events on each browser webpage load action, with [`pageViews.duration`](/azure/azure-monitor/reference/tables/pageviews) populated by [browser timing](#measuring-browsertiming-in-application-insights). Developers can extend additional tracking of PageView events by using the [trackPageView API call](./api-custom-events-metrics.md#page-views). |
| 15 | +> * The default logs retention is 30 days and needs to be adjusted if you want to view page view statistics over a longer period of time. |
15 | 16 |
|
16 | 17 | ## Measuring browserTiming in Application Insights
|
17 | 18 |
|
18 | 19 | Modern browsers expose measurements for page load actions with the [Performance API](https://developer.mozilla.org/en-US/docs/Web/API/Performance_API). Application Insights simplifies these measurements by consolidating related timings into [standard browser metrics](../essentials/metrics-supported.md#microsoftinsightscomponents) as defined by these processing time definitions:
|
19 | 20 |
|
20 |
| -1. Client <--> DNS : Client reaches out to DNS to resolve website hostname, DNS responds with IP address. |
21 |
| -1. Client <--> Web Server : Client creates TCP then TLS handshakes with web server. |
22 |
| -1. Client <--> Web Server : Client sends request payload, waits for server to execute request, and receives first response packet. |
23 |
| -1. Client <-- Web Server : Client receives the rest of the response payload bytes from the web server. |
24 |
| -1. Client : Client now has full response payload and has to render contents into browser and load the DOM. |
| 21 | +1. Client <--> DNS: Client reaches out to DNS to resolve website hostname, DNS responds with IP address. |
| 22 | +1. Client <--> Web Server: Client creates TCP then TLS handshakes with web server. |
| 23 | +1. Client <--> Web Server: Client sends request payload, waits for server to execute request, and receives first response packet. |
| 24 | +1. Client <--Web Server: Client receives the rest of the response payload bytes from the web server. |
| 25 | +1. Client: Client now has full response payload and has to render contents into browser and load the DOM. |
25 | 26 |
|
26 | 27 | * `browserTimings/networkDuration` = #1 + #2
|
27 | 28 | * `browserTimings/sendDuration` = #3
|
|
0 commit comments