I would like to track the version number of my application using the Google Analytics Android SDK and the model name of the device for people connecting to my application; What is the best way to achieve this?
I suppose I could 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 to achieve this, or should I use events?
source
share