Track app states

Last update: 2022-11-11
  • Created for:
  • User

States are the different screens or views in your application. Each time a new state is displayed in your application, you should send a trackState call. For example, when a user navigates from the home page to the video details screen, send a trackState call. States are typically viewed by using a pathing report, so you can see how users navigate your app and which states are most commonly viewed.

trackState calls

You typically call trackState each time the app loads a new screen.


ADBMobile().trackState("State Name", {})

Chromecast"State Name",{});

The state name is reported in the “View State” variable in Adobe Mobile services, and a view is recorded for each trackState call. In other Analytics interfaces, “View State” is reported as “Page Name”; “State Views” is reported as “Page Views”.

Send context data

In addition to “State Name”, you can send additional context data with each track state call.


dictionary = { }
dictionary["myapp.login.LoginStatus"] = "logged in"
ADBMobile().trackState("Home Screen", dictionary)


var dictionary = { };
dictionary["myapp.login.LoginStatus"] = "logged in";"Home Screen", dictionary);

Context data values must be mapped to custom variables in Adobe Mobile services.

On this page