PageViewTelemetry PageViewTelemetry PageViewTelemetry Class


Telemetry type used to track page views.

public sealed class PageViewTelemetry : Microsoft.ApplicationInsights.Channel.ITelemetry, Microsoft.ApplicationInsights.DataContracts.ISupportMetrics, Microsoft.ApplicationInsights.DataContracts.ISupportProperties, Microsoft.ApplicationInsights.DataContracts.ISupportSampling
type PageViewTelemetry = class
    interface ITelemetry
    interface ISupportProperties
    interface ISupportSampling
    interface ISupportMetrics
Public NotInheritable Class PageViewTelemetry
Implements ISupportMetrics, ISupportProperties, ISupportSampling, ITelemetry


You can send information about pages viewed by your application to Application Insights by passing an instance of the PageViewTelemetry class to the TrackPageView(PageViewTelemetry) method. Learn more


PageViewTelemetry() PageViewTelemetry() PageViewTelemetry()

Initializes a new instance of the PageViewTelemetry class.

PageViewTelemetry(String) PageViewTelemetry(String) PageViewTelemetry(String)

Initializes a new instance of the PageViewTelemetry class with the specified pageName.


Context Context Context

Gets the context associated with the current telemetry item.

Duration Duration Duration

Gets or sets the page view duration.

Extension Extension Extension

Gets or sets gets the extension used to extend this telemetry instance using new strong typed object.

Id Id Id

Gets or sets page view ID.

Metrics Metrics Metrics

Gets a dictionary of custom defined metrics. Learn more

Name Name Name

Gets or sets the name of the page.

Properties Properties Properties

Gets a dictionary of application-defined property names and values providing additional information about this page view. Learn more

Sequence Sequence Sequence

Gets or sets the value that defines absolute order of the telemetry item.

Timestamp Timestamp Timestamp

Gets or sets date and time when event was recorded.

Url Url Url

Gets or sets the page view Uri.


DeepClone() DeepClone() DeepClone()

Deeply clones a PageViewTelemetry object.

SerializeData(ISerializationWriter) SerializeData(ISerializationWriter) SerializeData(ISerializationWriter)

Explicit Interface Implementations

ITelemetry.Sanitize() ITelemetry.Sanitize() ITelemetry.Sanitize()

Sanitizes the properties based on constraints.

ISupportSampling.SamplingPercentage ISupportSampling.SamplingPercentage ISupportSampling.SamplingPercentage

Gets or sets data sampling percentage (between 0 and 100). Should be 100/n where n is an integer. Learn more

Applies to