Screen Analytics now supported for tracking user interaction

17 views
Skip to first unread message

Brian Knorr

unread,
May 14, 2010, 2:49:32 PM5/14/10
to DynaDroid
Just get the latest from svn to use the new Screen Analytics
features. Every time a Screen is made visible, either by pushing,
popping, or swapping a screen, the name of the screen is tracked. And
just before the application is closed (onPause), the screen analytics
data is compiled and made available for sending to an external server.

It's very easy to implement the sending of the data...just override
the following method in your DynaDroidActivity subclass:

sendAnalytics(String data)

String data has the format:

screens=screenkey1,screenkey2...&map=AScreen,BScreen,...

So it could look something like:

"screens=0,1,01,3,2,1,3,2,0,2,3,1,3,2,0,1,0&map=LoginScreen,RegisterScreen,TermsScreen,ForgotPasswordScreen"

We did it this way in order to minimize the amount of data you have to
send...so the screens var holds all the screens as keys in the order
in which they were viewed by the user. And the map just maps the key
index to the actual screen name used for tracking.

By default the screen name used for tracking is the Screen's class
name, but you can easily override this on each Screen by overriding
the method trackingName().

And better yet if you want to use a tool like Google Analytics or
Motally it's super easy to integrate with...just override the method
trackScreen(String trackingName) in the Application class.

Enjoy!

Brian

Reply all
Reply to author
Forward
0 new messages