[go: nahoru, domu]

Skip to content

Latest commit

 

History

History

analytics

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Google Analytics for Firebase Quickstart

This Firebase quickstart showcases how Firebase Analytics can provide insight on app usage and user engagement. You can read more about Google Analytics for Firebase here!

Getting Started

Google Analytics for Firebase offers multiple ways to understand how users are engaging with your app. In this quickstart, we demonstrate how you can use Google Analytics for Firebase to log in-app events and set user properties.

Ready? Let's get started! 🚀

Clone this project and cd into the analytics directory. Run flutter pub get. This command will install all of the required dependencies for this quickstart. Go ahead and open the analytics folder in your favorite editor.

Terminal commands to clone and open the project!


git clone https://github.com/firebase/quickstart-flutter.git

cd analytics/

flutter pub get

flutterfire configure

flutter run

Connecting to the Firebase Console

We will need to connect our quickstart with the Firebase Console. For an in depth explanation, you can read more about adding Firebase to your Flutter Project.

Here's a summary of the steps!

  1. Visit the Firebase Console and create a new app.

  2. Register this project with the Firebase console by calling flutterfire configure.

  3. At this point, you can build and run the quickstart! 🎉

Interacting with the Quickstart

Google Analytics for Firebase is a great way to log user related events or set user properties. This quickstart features a number of different UI controls that a user can interact with. Depending on the control, Google Analytics for Firebase is used to either set a user property or log an appropriate event.

Viewing the analytics data

As you interact with the controls in the quickstart, analytics data will be sent to the Firebase Console. To view and interact with this stream, navigate to the project you set up for this quickstart on the Firebase Console. Select Realtime under the Analytics on the vertical menu on the left. From here, you can interact with the quickstart and see the related analytics data show up live on the Firebase Console.

Support

License

Copyright 2022 Google LLC

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.