Can We Send Event Data From One App (iOS And Android, Not Web App) To Multiple GA4 Properties?
I am implementing GA4 in one app (iOS and Android). I want to send data from this app to two different GA4 properties - one with historical data and one brand new. I don't want to take BigQuery or any programmatic road. can I add google-service.json config files from 2 GA4 properties in a single app?
Answer
Well, the short answer is no. Because the library (firebase SDK) only allows for there to be one init and one, effectively, "tracker" object. What you're saying is not even a popular usecase for two GA4 properties. The real life usecase is sending events to a Web+App and an App properties.
Keep in mind, GA4 is an unfinished product, as well as its libraries. Many bugs, absent features and holes in functionality. We generally recommend to not use GA4 for a year or two or only implement very basic tracking in parallel with whatever you use now just to have historical data when it's time to switch.
What you could do if you really need to send the events to two GA4 properties, is to use the GA4's measurement protocol, for which, as you expect, there's few good third party libraries and no proper documentation. I've seen people using it here on SO, however.
Related Questions
- → Is access to the Google Analytics Realtime Reporting API (via javascript) handled similarly to the Core Reporting API or is it dramatically different?
- → How can I catch outbound link click on an Angular 1.x website?
- → How to recover my website page ranking, after using google analytics?
- → How to make onclick event works via Jquery
- → Does Google Analytics emit an event when they are set up?
- → GA / GTM Enhanced Ecommerce | Measuring Product & Product Details Impressions
- → Integrating GTM with Shopify
- → Liferay and Google Tag Manager implementation
- → Google Tag Manager - click on link with specific text
- → Hooking Javascript Onload for a specific JS file
- → Shopify - How to make google analytics load after page load?
- → how do I turn off google analytics while using angulartics
- → Fetch Google Analytics Data from Multiple Websites - Laravel