Setting up Firebase analytics for your EachScape apps is simple but requires a few steps for configuration outside of the EachScape builder.
First thing to do is to install the Eachscape plugin for your app. Here is the EachScape help file for installing the plugin:
You simply click on Plugins/New Plugin on the left hand side of the builder.
You then just choose “Install” for “Firebase analytics”
You should now see this under “Plugins”
Now go to https://firebase.google.com/ to register an account if you don’t have one already. You’ll need to setup some type of payment. But both Firebase Analytics and Cloud Messaging are FREE services from Firebase.
Here are the steps you’ll need to do once you are registered.
Setup a new project by clicking “Add project”
Give you project a name and then choose “Set up Google Analytics for my project” and continue.
If you have a Google Analytics account you’ll be prompted to either create to a new Google Analytics project any link to any projects you’ve setup there. Click “Create Project”
You’re now ready to setup your Firebase Project “Apps”. We’ll do this by clicking on the iOS and Android icons in the new project you created in the Firebase project’s main screen.
Let’s look at iOS first. The process will be the same for both iOS and Android.
Enter your iOS app bundle ID and an intuitive descriptive name. This is required to setup Firebase Analytics. Your app needs to be setup with iOS provisioning and registered with a bundle ID.
Click “Register app” to continue. Then download the config file “GoogleServices-Info.plist”. You’ll upload this your EachScape app configuration.
For Firebase just click the blue “Next” button for all the following steps. Then click “Skip this step” to return to the main project page in Firebase.
Now return to your app in the EachScape builder. Click on the 3 dots next to your app name and click on “Configure”.
Go to “Plugins” and click on the tab. Then click on “Firebase Common”
Scroll down to “Firebase Services Configuration for iOS” and upload the file you downloaded from Firebase “GoogleServices-Info.plist”.
Setup for iOS Firebase is now done.
Generate a new iOS build in the EachScape builder. Install and run the new build of your app on an iOS device.
Return to your new Firebase project. Scroll down and click on “StreamView” under “Analytics”
If configuration was done correctly you should see realtime Analytics data in the “StreamView”. It takes a bit of time for Analytics to show up in your project or Google Analytics. But you should start to see data right away in your “StreamView” if you set things up right.
The setup for Android is the same process as setting up iOS in Firebase. Click on “Add app”
Then choose the Android icon.
Enter your Android package name from your EachScape app. This is required in order to setup your Firebase Android app. Then give it an intuitive name and click “Register app”
Download the file “google-services.json”. Then click “Next”
Just keep clicking “Next” on the following steps till you reach the end. Then click “Skip this step” to return to your Firebase project main page.
Return to your EachScape app and click on app “configure”
Go to the Plugins tab. And then “Firebase Common”
Upload your “google-services.json”. Then click the blue button on the bottom “Update”. Your EachScape setup is now complete!
Now generate a new Android build. Install and run a the Android build on an Android device. Return to your Firebase project and click on “StreamView”
If setup was done right you should see your app stats right away in realtime in the StreamView. Analytics will take a bit of time to start running in your other Firebase project views or Google Analytics.
Thats it. Firebase Analytics setup is complete!