views:

55

answers:

1

I'd like to be able to track the Version number of my application using Google Analytics Android SDK, and the Device Model name for people connecting to my application; What is the best way of achieving this?

I'm assuming that I might be able to do something like:

Device Model Name:

tracker.trackPageView("/testApplicationHomeScreen/"+Build.MODEL);

Version Number:

tracker.trackPageView("/testApplicationHomeScreen/"+packageInfo.versionName);

Will this work, and is this the best way of achieving this, or should I be using Events?

+1  A: 

I've been playing around with this since posting the question. I've found that Events are the best way of achieving this.

ie create categories for "Version" and "Model", then track each detail using events. This then gives you the granular results I required to be able to see which versions of my app were being used, and which handset models were in use as well.

James