Screens

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.
CopiedAppticsAnalytics.Tracker.OnNewFrameLaunch(rootFrame);

There are two ways of tracking views, i.e. Frame tracking and View tracking.

Frame tracking

  • By default, we track the frame you create on OnLaunched function.
  • If you create a new frame in any other place, call the below function, with the created new frame as param so that apptics can track all page navigation inside that frame.
CopiedFrame newFrame = new Frame();            
AppticsAnalytics.AppticsTracker.OnNewFrameLaunch(newFrame);

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.
Copiedvar screenObject = AppticsAnalytics.AppticsTracker.ViewGotFocus("ViewName");
  • 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.

CopiedAppticsAnalytics.AppticsTracker.ViewLostFocus(screenObject);