Show Menu

Track app states

States are the different screens or views in your application. Each time a new state is displayed in your application, you should send a
call. For example, when a user navigates from the home page to the video details screen, send a
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
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
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.