User Flow
1. Overview
'User Flow' allows the Application Developer to gauge the movement of its users through the activities defined in the application. By analyzing the user flow Sankey diagram, the App developer can predict how many users moved from one activity to another and how many people dropped from which activity.
Suppose for a Contesting Application the user flow is expected to be as below:
User can even know the number of inflow and outflow of the users with respect to one node. For example, in below image 'Home' node tells the flow from root, SplashScreen and LoginScreen where All in left represent inflow to HomeScreen and All on right represent outflow from HomeScreen.
2. Integration
Normal User Flow: Unity does not support the default Android User Flow lifecycle as it is based on Single Activity. Therefore, User Flow can only be implemented as Custom User Flow in Unity
Custom User Flow: For each screen created in Unity the Screen adding function should be called and when user exits from that screen then screen should be removed from the stack.
AdGyde will be able to create an accurate user Flow and help to improve application only when the Custom User Flow is implemented in proper manner
To add a screen in User Flow, execute the setCurrentScreen function
To remove a screen from User Flow, execute the removeCurrentScreen function
Below is the sample code for the Custom Flow which can create the User Flow of the application
Suppose for a Contesting Application the user flow is expected to be as below:
- Splash Screen
- Home
- Contest List Screen
- Winner Gallery
User can even know the number of inflow and outflow of the users with respect to one node. For example, in below image 'Home' node tells the flow from root, SplashScreen and LoginScreen where All in left represent inflow to HomeScreen and All on right represent outflow from HomeScreen.
2. Integration
Normal User Flow: Unity does not support the default Android User Flow lifecycle as it is based on Single Activity. Therefore, User Flow can only be implemented as Custom User Flow in Unity
Custom User Flow: For each screen created in Unity the Screen adding function should be called and when user exits from that screen then screen should be removed from the stack.
AdGyde will be able to create an accurate user Flow and help to improve application only when the Custom User Flow is implemented in proper manner
To add a screen in User Flow, execute the setCurrentScreen function
AdgydeManager.SharedInstance.setCurrentScreen(String ScreenName);
To remove a screen from User Flow, execute the removeCurrentScreen function
AdgydeManager.SharedInstance.removeCurrentScreen(String ScreenName);
Below is the sample code for the Custom Flow which can create the User Flow of the application
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Sample_UI_Class : MonoBehaviour { private static Sample_UI_Class _instance = null;} void Awake(){ AdgydeManager.SharedInstance.setCurrentScreen("home_page");} void OnApplicationQuit(){ AdgydeManager.SharedInstance.removeCurrentScreen("home_page");} void showNextScreen(String NewScreen){ AdgydeManager.SharedInstance.setCurrentScreen(NewScreen);} void showPreviousScreen(String NewScreen, String OldScreen){ AdgydeManager.SharedInstance.removeCurrentScreen(OldScreen);} |