Google Analytics setup overview
Last updated
Last updated
There are two likely scenario's in which you'll probably find yourself if you haven't enabled Google Analytics for your Flutter app yet;
You're building a new app that has no Firebase configuration yet.
You have an existing AppMachine app that already has a Firebase project that is used to send push messages to your Android users.
Make sure you execute the steps from the correct scenario to prevent any duplicate Firebase projects or other issues. In this article I'll quickly explain what steps to take in the scenario's mentioned above. Most steps are discussed in more detail in separate articles if more info is required.
Run through the Firebase setup as shown in the articles here.
Set up the Android and iOS configs in Firebase by clicking on the "View Certificates and API Keys" option on the Publish page. Do this for both Apple and Google on the Publish page of your app: On the Certificates/API Keys page you'll want to select the option to add a Firebase certificate. Follow the instructions and remember that you can always refer back to the Firebase articles.
Navigate to the Integrations page from the left side menu: If you're not seeing this new menu type, you may need to go back to the Publish page of your app as this will load the new interface.
Enable the Firebase Analytics integration on this page.
Publish your app
If you have an AppMachine app that is already published, you'll also have a Firebase configuration for Android push messaging. You'll be using the Firebase project for analytics as well.
Start with the steps from the following article on how to enable Google Analytics in your Firebase project.
Set up the iOS config in Firebase by clicking on the "View Certificates and API Keys" option on the Publish page. In this scenario you only have to do this for Apple: On the Certificates/API Keys page you'll want to select the option to add a Firebase certificate. Follow the instructions and remember that you can always refer back to the Firebase articles.
Navigate to the Integrations page from the left side menu: If you're not seeing this new menu type, you may need to go back to the Publish page of your app as this will load the new interface.
Enable the Firebase Analytics integration on this page.
A store update is required to push the new changes to your app. Force a store update by enabling the option in the Publish wizard: