Firebase+GTM SDK - tracking exceptions and crashes in Google Analytics - firebase

Google Analytics allows collection of a basic contextual information and crash and exception in app. This has been done using GA library. I am currently upgrading the implementation to use Google Tag Manager by utilising latest version Firebase+Tag Manager SDK.
I wonder how can I make sure crashes from my app are registered within GA? Firebase crashlitycs is a different tool. I really need those crashes and exceptions in Google Analytics as exceptions/crashes rather than just events.
Please advice. Thank you

You can create a tag in GTM (exception type) and use the event 'app_exception' (in firebase) as a trigger, sending that information to GA.

Related

Is there any change in reporting implementation of google api client library now that universal analytics is getting deprecated?

I am using google-api-php-client (version v2.2.2) in my project for google analytics.
According to this article the existing implementation of google analytics is going to get deprecated.
I just want to make sure my existing implementation of google-api-php-client won't be affected by this.
Appreciate your suggestions.

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

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.

Google anlytics or Firebase analytics for web/native platforms?

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 ?

Resources