julianharty / app-store-reviews-app

Android App to analyse reviews and scripts to load historical reviews data into a SQLite database.
Apache License 2.0
3 stars 5 forks source link

Add Mobile Analytics library to the app #9

Open julianharty opened 7 years ago

julianharty commented 7 years ago

Add Mobile Analytics library to the app. First decide on the data I'd like to capture when the app is being used. Then decide how to represent these in API calls & implement them. Test :)

julianharty commented 7 years ago

Here are the changes that included adding Google Firebase Analytics https://github.com/julianharty/app-store-reviews-app/commit/fccbce74e5020f79bd670e82f3636f8ee31c3fe7

As I've mentioned in the commit message I'm likely to remove Firebase for a while and use Google Analytics instead.

julianharty commented 7 years ago

Well the latest Google Analytics V4 seems quite similar to Firebase in terms of the configuration files, albeit less automated and with weak documentation.

I had to clean the project so it'd generate the xml data referred to in their sample code. See http://stackoverflow.com/questions/32233277/android-google-analytics-xml-file/42540383#42540383

I tried to enable debug messages for Google Analytics but haven't seen any messages being sent from the device to Google. I set the timer to 1 minute, I've now changed it to 2 minutes (rather than the default of 30 minutes) to see if that coaxes something.

adb shell setprop log.tag.GAv4 DEBUG See https://developers.google.com/analytics/devguides/collection/android/v4/advanced

julianharty commented 7 years ago

BTW: Here's a useful answer with an assessment of the differences between GA and Firebase Analytics http://stackoverflow.com/questions/37485583/differences-between-firebase-and-google-analytics and Google's answer https://support.google.com/analytics/answer/2587087?hl=en