Google Analytics 4 (GA4) + firebase notifications

My task is to make google analytics v4 in the application.

I have set up an account in google analytics and there, when we are creating data stream → add andorid, we create a google-services.json file and it needs to be put in the app folder in android, and then the problems begin. I already have a plugin for receiving notifications with my firebase database and already have a google service file that is connected to it. Is it even possible to use them together and if so, how ?

I’m going to use a plugin GitHub - vancuren/capacitor-google-analytics: Google Analytics for Capacitor Apps since I understand that the plugin GitHub - danwilson/google-analytics-plugin: Cordova (PhoneGap) Plugin to connect to the native Google's Universal Analytics SDK 3.0 does not work with GA4 (Which plugin to use GA4 ? · Issue #606 · danwilson/google-analytics-plugin · GitHub ).
Or it will be good if someone tells you how to work with the new google analytics on the latest versions of ionic and capacitor in general)

1 Like