TRANSKRYPCJA VIDEO
Dla tego filmu nie wygenerowano opisu.
No matter what your app does, one of the best ways to make it more successful is with Analytics. When you want to measure what your users are doing, Firebase Analytics is the package you need. Firebase Analytics is built on top of Google Analytics, so it's included by default when you add the Firebase SDK to your app. It automatically tracks general information and trends, like user demographics and when users spend money in your app. But of course, not all apps are the same, so Firebase also provides an API that you can use to track specific events that you care about most. Start by adding the package to your app.
To log any event, grab a reference to Firebase Analytics and then use any method that starts with log, like log signup, for example, which expects the signup method as an argument. Or in an e-commerce app, you may want to use log view cart. Firebase Analytics has several predefined events, and they all come with built-in log methods. Or you can define custom events and log any event under the sun. To do so, use the method logEvent. Give it an event name and a map of custom parameters. And once you've logged the events, head to the Firebase console to see event trends and analytics.
Google Analytics is truly at the heart of Firebase Analytics, so you can always head over to the Google Analytics dashboard linked from the Firebase console for even more analytics. For more information about how analytics can enhance your app, head to firebase. google. com. .