Using Google Analytics account for development environment - google-analytics

We currently have a google analytics account for our production environment. However we need to have a separate google analytics account for a dev environment that is not pushing any analytics data to the production one. Is there a good way to do this?

You may simply create a different "property" under the same Google analytics account. A different tracking code will be available, for you to use in the development environment.
cf. "Set up a property" documentation.

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

Firebase overview dashboard for different projects

In firebase we have 5 projects and 2 to 6 apps per project. Each project has their own overview / dashboard (eg. with Analytics & Crashlytics graphs).
However, we'd like to have a single dashboard as overview for all projects (if possible, with a filter for apps for each project). Is it possible to configure this in the Firebase console somehow? If not: is it possible to extract the necessary data ourselves to create our own dashboard (and where can we extract that data)?
You can link your firebase analytics to Google Analytics. It can be done from analytics dashboard in your firebase project. It's basically an agreement that let your firebase data accessible from Google Analytics panel! (I'm not a lawyer, if you want to make sure what's going on please check it with your lawyer!)
Then in Google Analytics, you can make custom reports.
I'm not sure if custom reports are useful for your specific need, so please check beforehand.

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