title: Firebase - Perform Analytics from database/firestore data
body: <p>I am using Firebase as my authentication and database platform in my <a href="https://expo.io/" rel="noreferrer">React Native-Expo app</a>. I have not yet decided if I will be using the realtime-database or Firestore database.</p>
  
  <p>I need to perform statistical analysis on daily data gathered from my users, which is stored in the database. I.e. the users type in their daily intake of protein, from it I would like to calculate their weekly average, expected monthly average, provide suggestions of types of food if protein intake is too low and etc.</p>
  
  <p>What would be the best approach in order to achieve the result wanted in my specific situation? </p>
  
  <p>I am really unfamiliar and stepping into uncharted territory regarding on how I can accomplish this. I have read that <a href="https://firebase.google.com/docs/analytics/" rel="noreferrer">Firebase Analytics</a> generates different basic analytics regarding usage of the app, number crash-free users etc. But can it perform analytics on custom events? Can I create a custom event for Firebase analytics to keep track of a certain node in my database, and output analytics from that? And then of course, if yes, does it work with React Native-Expo or do I need to detach from Expo? In addition, I have read that Firebase Analytics can be combined with <a href="https://cloud.google.com/bigquery/" rel="noreferrer">Google BigQuery</a>. Would this be an alternative for my case?</p>
  
  <p>Are there any other ways of performing such data analysis on my data stored in Firebase database? For example, export the data and use Python and <a href="https://scikit-learn.org/stable/" rel="noreferrer">SciKit Learn</a>?</p>
  
  <p>Whatever opinion or advice you may have, I would be grateful if you could share it!</p>