iFixit / iFixitAndroid

Official iFixit Android App
https://play.google.com/store/apps/details?id=com.dozuki.ifixit
GNU General Public License v3.0
162 stars 88 forks source link

Analytics: Automatically record screen views #215

Closed marczych closed 9 years ago

marczych commented 10 years ago

We have ga_autoActivityTracking disabled so we need to record screen views manually. It might be worth turning ga_autoActivityTracking on so it can handle everything for us. However, if we want to do it manually we should add it to BaseActivity so we only need to implement the get screen name method to record screen views. e.g.

protected String getScreenName() {
   return "guide/view/" + mGuideid;
}

It might be slightly tricky if we don't know the full screen name before an API call returns but most of the time it will be a static string.