Choosing Between Firebase And Google Analytics SDKs For App Tracking
“Should we be using Firebase or Google Analytics?” – we get this question a lot regarding tracking behavior in mobile apps.
Even though the older Google Analytics mobile SDKs have officially been deprecated by Google and the analytics reports in Firebase have been rebranded to “Google Analytics for Firebase,” there is still a lot of confusion out there as to which analytics tool is the right one for the job.
The Google Analytics mobile SDKs are technically still supported, and offer traditional reporting methods you’re more likely to be familiar with – but Google Analytics for Firebase has a lot to offer as well, and is considered to be the future of mobile app tracking.
This post aims to help clarify the important differences between the two and provide some suggestions around using each platform. For the sake of simplicity, I’m going to refer to Google Analytics for Firebase as simply Firebase, and the Google Analytics SDK as Google Analytics.
Primary Differences
Let’s start out with some big-picture differences between the two, in no particular order.
1. Mobile Dev Platform vs Analytics-Specific Tool
The Firebase SDK is actually a mobile development platform, not just a standalone analytics tool. I have brought this up before, but it is important to understand that the analytics reports are just one set of tools in the Firebase platform, designed to integrate with other Firebase tools – such as Cloud Messaging, Cloud Functions, Remote Config, etc.
This is one of the biggest ‘pros’ of Firebase as it allows for very useful integrations with other Firebase products. The new opportunities that these integrations present are essentially why the older Google Analytics SDKs have been deprecated. Here are a few examples:
- Send a user a notification after a certain analytics event has been triggered in the app
- Customize an experience in the app using Remote Config based on certain activities (analytics events) in the app
- Perform A/B testing with Optimize & Remote Config
- Improve campaign targeting for notifications by using Firebase Predictions, which applies machine learning to help you understand user behavior and create audience groups (also based on analytics events)
With Firebase, your event logging works harder for you by helping you take advantage of a lot of these other great features.
Google Analytics, on the other hand, is a part of a marketing suite of tools in the Google Marketing Platform. There are some significant integrations there as well, but they are primarily geared towards advertising purposes, such as audience sharing. Firebase takes integrations much farther – check out the available products here.
I think it’s also worth noting that Firebase has partnered with a lot more mobile ad networks than the more traditional Google Analytics for mobile apps has. There are currently 60 ad networks that have agreed to share campaign attribution data for you, along with integrations with products in the Google Marketing Platform, making that process much easier than it has been in the past.
2. Unlimited Event Logging Volume vs GA Hit Volume Limits/Costs
Firebase has NO LIMIT to the volume of events you can log. There are limits to the varieties of event names (up to 500 total), but as of now there are no fees for using Firebase for analytics, specifically.
Note that you can also take advantage of a lot of other Firebase products for free as well. A couple great examples of these include Crashlytics and Dynamic Links in particular can help you easily add further insight into campaign attribution for non-supported ad networks, which is a big deal for any marketer looking to understand the performance of their mobile campaigns!
There are some limitations around the types of parameters you can attach to Firebase events and what you can see in the reports, which differ greatly from the Google Analytics SDK data collection. You will want to be sure that you are aware of these differences before switching to Firebase (see section 4).
Which leads me to my next point…
3. SLA?
No fees = no support. If an SLA is important to you, you’re out of luck with Google Analytics for Firebase as of now. If you are a Google Analytics 360 customer, you likely receive support for all properties, regardless of whether they contain web or app data.
That said, there are some resources available out there if you do need help with your Firebase implementation. There is actually a great post about this topic on the Firebase Blog. Additionally, the documentation and help center articles have come a long way and cover a lot of detail.
4. Reporting and the Data Models
Firebase uses an event-based data model, which results in reporting differences compared to those in Google Analytics. Unlike Google Analytics which has many screenview- and session-oriented reports, in Firebase all reports are user- or event-focused. The concept of a ‘session’ as we know it in Google Analytics does not exist within Firebase.
In some ways, this can be a good thing – users interact with apps differently than they do websites, and Firebase is designed with that in mind. Honestly, the more I explore these differences and the impacts they have on the resulting reporting, the more I prefer Firebase over the more web-oriented Google Analytics model. Apart from that, many apps do not really have a strong emphasis on ‘pages’ or ‘screens’ and instead revolve around activities the user can complete. Firebase is ideal for this, yet certain businesses, such as publishers for example, might find it a little more challenging to work with or require some getting used to. Additionally, the fact that the session is cut out of the data model entirely in Firebase can make it easier to work with in BigQuery, for example. All of these are significant differences and require some thought prior to making a decision on which tool to use.
Additionally, there are different schemas for event tracking in Firebase compared to Google Analytics. With Google Analytics, you can send different types of hits – screenviews and events, for example. Google Analytics events are made up of a few key parameters: event category, event action, and event label (plus a couple others, but they aren’t relevant for this discussion). With Firebase, the schema is different – everything is an event (even screenviews are just events) and the schema looks like this instead: event name, plus up to 25 additional key-value pairs of parameters that you can set to add context to the event. That’s a lot more available params than a traditional event hit with Google Analytics. The downside is that you will not see all of this data in the interface by default – you have to go into the Firebase console and “register” them to have them appear in your reports, and you can only register up to 50 custom event parameters per project (40 numeric, 10 text). The data is included in the BigQuery export if you have that enabled though. Make sure you keep this in mind when you plan out your reporting needs prior to implementation.
There are some other considerations as well, such as custom dimensions in Google Analytics – these can be user-, session-, hit- or product-scoped. You can set up to 20 of them for the free version of Google Analytics, or 200 for the 360/enterprise version of Google Analytics. In Firebase, your options are to either use custom parameters attached to events to hold custom data (up to 25, as I mentioned above) or set up user properties. User properties are similar to user-scoped dimensions in Google Analytics, where values set for a given user will automatically persist in all future interactions associated with that user. You have a limit in Firebase of up to 25 user properties per Firebase project (not app).
Because of these significant differences, I highly advise that you plan out your app tracking implementation thoroughly prior to actually setting it up, especially if you do go with Firebase.
There are also a lot of differences in the reporting options between these two tools, such as:
- No ability to create custom reports or dashboards in the Firebase interface
- Limited amount of event parameters (50) can be seen in Firebase reports (plus you have to register them in order to see any, they don’t just appear in your reports). Plus, only ten of those can be text.
- Limit of 15 custom conversion events in Firebase per project (compared to 20 goals per view in legacy Google Analytics for apps)
- Lack of more granular reporting around ‘sessions where certain activities occurred’ in Firebase – this also poses challenges for audience segmentation and retargeting based on session-specific behavior, as is common with Google Analytics
To learn more about the reporting differences between Firebase & Google Analytics, check out my earlier post:
Published: October 12, 2017
Please review this extra carefully if you plan on switching to Firebase ?
5. Rolling Up Your Data
In the past, if you had both an iOS and an Android version of your app, the two would be tracked separately for Firebase. This is no longer the case, so I wanted to point this out. Data is now at the project level, not app level, so while you can see data for a specific platform (called a ‘stream’) in Firebase, it is rolled up into one data set now. This means you can see overall metrics such as users across all of the apps in a Firebase project. This is true for the Firebase interface as well as the BigQuery export (this was a recent update).
With Google Analytics, you may choose to send your iOS data to the same or a different property than your Android data, for example. Or you could even send it to the same property as your website traffic, though we don’t usually recommend that. So you have a little more flexibility in the interface with Google Analytics, but those who are using BigQuery won’t find this to be a major issue for Firebase anymore.
6. Platform Support
Currently, Google Analytics for Firebase is available for iOS, Android, C++ and Unity, specifically – take a look at the documentation here. This support covers most platforms, but not quite all of them.
Consider OTT or “over the top” apps like Amazon Fire TV or Apple TV, for example. Many of these platforms can be configured for iOS or Android, for example, which Firebase supports. But if you’re working with Roku or Adobe AIR, for example, I’m not sure how much luck you’ll have. Roku, for example, uses its own proprietary software and there is no way that I know of to implement Firebase there.
Google Analytics on the other hand offers a measurement protocol, making it more flexible than Firebase for these situations. Be sure to talk with your development team about this before getting your heart set on anything.
Note: There are certain Firebase products designed for the web (HTML/JS) as well, but analytics is not currently a part of those offerings.
Still Not Sure?
If you’re still not sure which is the right tool for you, I suggest that you start by creating a game plan – outline each activity in your app and various user-related properties you may want to track for analysis purposes. Think about the data you will want and what type of reports you will need. The more you can start to plan for the analysis, the better idea you’ll have on what you’ll need out of your app tracking tool.
If you’re already using the GA SDK in your app, find out how the data you’re collecting could map to the Firebase data model – will it work well? How many custom dimensions are you currently using and how will you collect those with Firebase event parameters or user properties? Make a list of what you’ll need and that will help you understand the level of effort required to make the switch. Also, make note of any existing reporting infrastructure and how much of that will need to be updated to use Firebase data instead.
Some additional considerations:
Make sure you talk with your dev team about your particular apps – make sure there is support for them if you want to try Firebase and find out if any of your apps already have tracking set up with the GA SDK, for example. Switching to the Firebase event logging schema would require some work.
Consider whether you may have a need or interest for other Firebase products, even down the road – take a look at the offerings here (many of them are free). Firebase products are designed to be used together, such as to:
- send a user a notification with Cloud Messaging to encourage them to re-engage with your app
- customize an experience in the app using Remote Config based on certain events or actions the user takes in the app
- perform A/B testing with Remote Config
- create dynamic user audience lists based on Predictions and machine learning
If you are BigQuery-savvy, or don’t mind doing some additional reporting within Data Studio, I would especially encourage you to give Firebase a shot – the opportunities there are super exciting!
I also want to re-iterate how important it is to have a solid strategy in place before getting into implementation. Even if you are not ready to use Firebase right now, or if you already have the GA SDK installed in your app, it still is worth the effort to map out exactly what matters to you in your app (and how it is being tracked currently). If you do decide to switch to Firebase down the road, it will be a much easier process to consider the changes that would need to be made to map the data points to the appropriate fields for Firebase with this groundwork already complete. This all probably sounds like common sense, but believe me – it’s not very common!
A Little of Both Worlds
There are a lot of benefits to each platform, so why not take advantage of both? We often do just that.
By installing the Firebase SDK and the Google Tag Manager SDK, you can start collecting data in both the Google Analytics for Firebase reports as well as in Google Analytics (no GA SDK needed). This can be very helpful for a number of reasons:
- Maybe you’re not yet comfortable with the reports in Firebase, so you want to have Google Analytics as your ‘back up’ for reporting purposes while you warm up to the event-based data model in Firebase
- Maybe the reports you want (custom ones, for example) are simply not yet available in Firebase
- Maybe you want an easy way to roll up your app & web data to get aggregate totals more easily
Let me be clear that this is a nice temporary solution – not a great long-term plan. Think of it as a short-term option to help your team get most* of the standard reporting they are used to from Google Analytics (with the added benefit of the customization options available in Google Analytics, where Firebase lacks), while working on transitioning to relying solely on Firebase.
*There are a few reasons why I believe this should only be a temporary solution. First, the data will not line up 1:1 between Firebase and Google Analytics – they are simply two totally different tools (you’ll find yourself comparing the data, which usually doesn’t make sense). Second, the significant differences in the data models of these two tools result in significant challenges in campaign attribution. You’re simply not going to be able to accurately send your campaign data from Firebase to Google Analytics (not without some serious hacking, and at that point the situation becomes arguably worse). The primary reason for this has to do with how Google Analytics handles sessionization (and how Firebase doesn’t care about that at all). Third, the two tools offer entirely different perspectives on app user behavior. The lack of a Google Analytics-like ‘session’ concept in Firebase should encourage you to think about app behavior differently, whereas Google Analytics boxes you in to this more traditional expectation from web behavior that often just doesn’t make sense with a mobile application.
Because of these issues, you will likely end up using certain reports out of Google Analytics while you become more comfortable with Firebase, for example. We could talk more about this topic overall, but these are a few of my top reasons for using this approach as a temporary solution to shifting to Firebase strategically, while still getting the reporting interface you’re familiar with out of Google Analytics in the meantime. I’d love to hear your thoughts in the comments about this!
To further simplify the options, here is a table of what you need based on where you want to do your reporting:
If you want reports in: | You should install: |
Firebase | Firebase SDK |
Google Analytics | GA SDK OR GTM SDK |
BOTH Firebase & Google Analytics | Firebase SDK + GTM SDK |