Class ApplicationInsightsViewTracking
- Namespace
- Splat
- Assembly
- Splat.ApplicationInsights.dll
Provides view tracking functionality that records page view navigation events using Application Insights telemetry.
public sealed class ApplicationInsightsViewTracking : IViewTracking
- Inheritance
-
ApplicationInsightsViewTracking
- Implements
- Extension Methods
Remarks
This class is typically used to integrate view navigation tracking into applications that utilize Application Insights for telemetry. It implements the IViewTracking interface to standardize view tracking across different telemetry providers.
Constructors
ApplicationInsightsViewTracking(TelemetryClient)
Provides view tracking functionality that records page view navigation events using Application Insights telemetry.
public ApplicationInsightsViewTracking(TelemetryClient telemetryClient)
Parameters
telemetryClientTelemetryClientThe Application Insights telemetry client used to send page view tracking data. Cannot be null.
Remarks
This class is typically used to integrate view navigation tracking into applications that utilize Application Insights for telemetry. It implements the IViewTracking interface to standardize view tracking across different telemetry providers.
Methods
OnViewNavigation(PageViewTelemetry)
Track a View Navigation with Extended Data.
public void OnViewNavigation(PageViewTelemetry telemetry)
Parameters
telemetryPageViewTelemetryTelemetry data.
OnViewNavigation(string)
Track a view navigation using just a name.
public void OnViewNavigation(string name)
Parameters
namestringName of the view.