Tracking screen visits - optimove-tech/Optimove-SDK-Android GitHub Wiki

To track which screens the user has visited in your app, call one of the overloads of reportScreenVisit methods of the Optimove singleton:

  • reportScreenVisit(@NonNull String screenName)
  • reportScreenVisit(@NonNull String screenName, @Nullable String screenCategory)
  • screenName: which represent the current scene
  • screenCategory: which adds the scene category it belongs to.

Simple code snippet example

public class MainActivity extends AppCompatActivity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    Optimove.getInstance().reportScreenVisit("Account creation", "Accounts");
  }
}