Google anlytics or Firebase analytics for web/native platforms? - firebase

Our app was hybrid app and we also have a website.
So we just used 'web' google analytics so far.
Now we are converting some pages to react native.
I see there are several options available for unified (web/native) reporting.
I'd like to use 'web' google analytics with react native if I could, but not sure if I could do that.
use screenview or pageview hit-type from both web and native, although I'm not sure If one could send pageview hit-type from native (or react-native)
connect firebase to GA (https://support.google.com/analytics/answer/2587086) not sure what it actually does.
use bigquery (https://cloud.google.com/solutions/mobile/mobile-firebase-analytics-big-query) although I don't want to go this route because it's seems too much work to set up..
How do you organize analytics when you have both web and app ?

Related

Firebase Hosting - Analytics

I deployed an website using Firebase Hosting. could i Know the website traffic? I know that I can see the downloads of the website but I wanna see a number of people or something like that.
There are two main ways to do this:
Implement Google Analytics (or even Google Analytics for Firebase if you are building more of an interactive app).
Enable Cloud Logging which will cause a log entry to be generated for every request to Firebase Hosting, which you can then analyze using Cloud Monitoring, BigQuery, etc.
Based on your description (1) is probably the way to go as it's easy to implement and provides nice dashboards out-of-the-box.

Google Analytics UA and GA4 together with firebase Existing Project

I am new for firebase please pardon if I don't understand something.
I have two apps running for Android and IOS and both are configured with Google Analytics UA as well as Tag manager and now I have created a new property for Analytic 4 and tag manager is there.
My firebase is linked with Universal analytics already but need to connect GA4 as well for both apps so i don't lose connecting with my universal property as well as the GA4 should also work.
Anyone here with good understanding of firebase and Analytics can help me.
Looking forward to hearing from you.
Many Thanks
You can find documentation to connect GA4 to Firebase here:
[GA4] Firebase integration. Link Google Analytics 4 properties to Firebase.
https://support.google.com/analytics/answer/9289234?hl=en
Anyway, you don't want to worry too much about not losing the link. I have personally noticed that the old Analytics Properties for mobile always exist however Google has announced their deletion (except for 360):
As of February 4th 2020, Google Analytics properties that fit the
criteria below will have been permanently deleted. We recommend
transitioning to measuring your apps with the Firebase SDKs.
https://support.google.com/firebase/answer/9167112?hl=en

Is it possible to integrate Google Analytics in my JS library

I have a JS library which is used by some users. I am going to track some behaviours from user using the library. I tried to configure a property on Google Analytics, however, it seems I should configure a URL for a website, an ID for an ios or an Android application.
How can I use Google Analytics in my library? Or can GA be used for this purpose?
Thanks
Google Analytics is a web analytics tool. So you won't be able to track your JS library with GA.
If you Google “Google Analytics,” the description provided is as following:
Google Analytics lets you measure your advertising ROI and track your Flash, video, and social networking sites and applications.
JS libraries are not part of the use cases.
Also, Google “Track JS Library Google Analytics.” As you can see, you’ll only get references to libraries such as gtag.js or analytics.js, which will not serve your purpose of tracking your library.
And ask yourself, will people use your JS library when they know you are tracking them? I don't think so. Instead, create a repo on GitHub with documentation and allow users to report issues.
Also, create a mailing list with users and execute small surveys to understand better how people are using your JS library.

How to handle analytics on PWA when it is deployed both as an web app and an TWA in Play Store

How should I integrate analytics into a PWA webapp ? if I add analytics from google analytics into webapp and publish it in a server, then later, if I want to publish it on Google Play Store, how should I track the use?
here's the scenario:
I'm deploying the PWA from a subdomain.
then I'm publishing the PWA from Google Play Store as a TWA.
My concerns:
Should I use the google analytics snippet for web to track the subdomain-based pwa and firebase analytics for my Google Play Store app?
Or,
Can I use a single method to track both versions at the same time?
I have found this faq of chrome developer about use of google analytics
The CPA library follows the basic usage pattern of Google Analytics and will feel familiar to existing users of Google Analytics. However, unlike the web-centric official Google Analytics JavaScript libraries, the CPA library uses an "app-centric" model that is better suited for Packaged Apps. Among other features, the library provides methods for specific types of hits, such as "event" and "appView", and it can be used in both Closure-based and traditional JavaScript projects.
I am using Vuejs as frontend with pwa template, not sure if it is applicable for my use case. Any suggestion or direction would be much appreciated.
I am using THIS - Web + App configuration.
Using this you can track both at the same time.
You can configure it easily in firebase - see HERE for more

Google Analytics: tracking offline mobile apps

We're tracking our web apps using GTM (Google Tag Manager) and GA360 (the paid version of GA).
We also have hybrid mobile apps (mobile apps built with web frontend) that are intended for our users to work mostly offline (they are kind of reader apps).
I've been doing some research and there's a lot of information but I'm not sure yet of what's the best approach to connect my mobile apps to GA when they're mostly offline.
I've found Google Analytics for Firebase which is a free service but seems to be a separate service from GA and I would end up with half of the analytics in GA and the other half in Firebase.
I also read about using Workbox to support Offline Google Analytics:
https://developers.google.com/web/tools/workbox/guides/enable-offline-analytics
What's actually the best approach for this kind of problem?
What service(s) can I use to solve this problem?
Thank you.
I'm not sure if either of the other two approaches mentioned above are better or even work in this context, but I wanted to mention a third approach, linked below.
It is not simple, involving writing custom google analytics calls to check online status, and either queue requests yourself when offline, or post them when online.
It should work well though, and end up keeping all of your analytics in one console.
Simo Ahava Blog: Track users who are offline in Google Analytics.

Resources