0

I work on a camera app, and I'm collecting a stream of analytics events like:

  1. App entered foreground.
  2. The user took a photo.

Let's say I want to find out how long after the app enters foreground the user takes a photo. This requires me to find, for a particular photo event, the most recent foreground event that happened before the photo event, with the same device ID, and subtract the difference in timestamps between them.

Or, let's say I want to find out how many photos a user takes in a typical session, given a stream of events like:

  1. App entered foreground.
  2. User took photo.
  3. User took photo.
  4. App entered background.

This will require me to find, for a given background event, the most recent foreground event that happened before the background event, and then count how many photo events happened between these two events, all for the same device ID.

Are such types of analyses feasible and easy to do with typical analytics services like Firebase Analytics or Amplitude? Or is it easier to log this information myself in my iOS app, say by adding a field to the photo event that tracks how long it has been since the last event.

Which is simpler to do?

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
Kartick Vaddadi
  • 4,818
  • 6
  • 39
  • 55
  • It sounds like you're asking for a technology recommendation, which is off-topic on Stack Overflow. That said: The Analytics reports in the Firebase Console are likely insufficient for this type of reporting. But you can report each event to analytics and then stream those to BigQuery for whatever analysis you want. – Frank van Puffelen Aug 16 '17 at 03:24
  • I'm not asking for a technology recommendation (the question doesn't ask: Should I use Firebase or Amplitude?) but about how to log events in my mobile app for later analysis. – Kartick Vaddadi Aug 16 '17 at 11:25

0 Answers0