Join our upcoming webinar on June 5, 2025 (Thursday). Register now!

Skip to main content

Screens in Windows apps

Screens are the content that your users view in your app. Measuring screen views helps you to understand which content is most viewed by your users.

We have disabled automatic screen tracking to avoid all screens getting tracked. 

  • Use the below function to enable automatic screen tracking.

For UWP apps

CopiedAppticsAnalytics.Tracker.OnNewFrameLaunch(rootFrame);

For WinUI apps

CopiedWinUIAppticsAnalytics.Tracker.OnNewFrameLaunch(frameMain);

View tracking

  • You can track certain views like custom control, pop-up, etc. using View tracking.
  • Multiple views can be tracked using this, and a maximum of 20 views can be tracked at a time.
  • On view Opened or Loaded event call the below function.

For UWP apps

Copiedvar screenObject = AppticsAnalytics.AppticsTracker.ViewGotFocus("ViewName");

For WinUI apps

Copiedvar screenObject = AppticsWindowsBase.Analytics.AnalyticsHelper.ViewGotFocus(string viewName, bool setAsCurrentScreen);
  • On view Unloading or Closing event, call the below function and pass screenObject received from the above function.

Note: If you forget to call  "ViewLostFocus", we won't track that view.

For UWP apps

CopiedAppticsAnalytics.AppticsTracker.ViewLostFocus(screenObject);

For WinUI apps

CopiedAppticsWindowsBase.Analytics.AnalyticsHelper.ViewLostFocus(screenObject);

On this page