Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase - log events from server side cloud functions [duplicate]

We've developed a mobile app using Firebase and we want to add analytics. We want to add to the analytics several system events that are triggered from existing cloud functions. I do not see any way to log an event from a cloud function and the only way I see is from the client side. Is there a way we can log event from the server side ?

like image 780
Philippe Cohen Avatar asked Aug 26 '18 13:08

Philippe Cohen


1 Answers

There is no server side logging for Analytics events. Analytics requires information available only on the client in order to construct an event, and backend code doesn't have access to that information. If you need to log something on the server for use with analytics, you would have to log to another destination, and then export it all (including events originating from Firebase) to BigQuery to match up later for querying.

like image 134
Doug Stevenson Avatar answered Nov 11 '22 22:11

Doug Stevenson