Screen Tracking

The mParticle SDKs allow you to track user navigation through your app. Developers can leverage this feature for engagement and funnel optimization, or generically to associate a dictionary or map of attributes to a given screen.

Screen views are a type of event useful for tracking navigation. Some integrations require that you send navigation events as Screen Views. Reference the documentation for your integrations to confirm if you need to send Screen Views.

Many Output services are only interested in the Screen Name, but if you wish, you can include a set of attributes with a Screen View event.

Map<String, String> screenInfo = new HashMap<String, String>();
screenInfo.put("modal", "false");
screenInfo.put("color", "green");

MParticle.getInstance().logScreen("Awesome Screen", screenInfo);
HashMap<String, String>().apply {
    put("modal", "false")
    put("color", "green")
}.also {
    MParticle.getInstance().logScreen("Awesome Screen", it)

Automatic Screen Tracking

Add the following bool resource to your application’s res/values/mparticle.xml resource file:

<bool name="mp_enableAutoTracking">true</bool>

With automatic screen tracking enabled, the Android SDK will track Activity views.

Enable Android automatic screen tracking by adding a boolean resource mp_enableAutoTracking to the XML configuration file.