We have a React Native app in which we’d like to track user behaviour (screens visited, certain events). We don’t use data for any advertising / the app does not include any ads, etc. It’s purely for tracking user behaviour anonymously.
We have set:
<meta-data android:name="google_analytics_adid_collection_enabled" android:value="false" tools:replace="android:value" />
I initially set all the 4 flags (below) to false, but it looks like no events come to the Google Analytics dashboard (debug view) at all. The moment I set analytics_storage to true, it’s all good, I can see the events in the debug view of the dashboard.
await firebase.analytics().setAnalyticsCollectionEnabled(true);
await firebase.analytics().setConsent({
analytics_storage: true,
ad_storage: false,
ad_user_data: false,
ad_personalization: false,
});
Google explanation for this flag is:
analytics_storage: Enables storage (such as cookies) related to analytics e.g. visit duration.
I’d thought that it’d provide/control sending some additional information, not the basic functionality of sending the events.
Am I using something wrong or does this flag need to be set to true in order for any events to be logged to the dashboard?
We’re using:
“@react-native-firebase/analytics”: “^19.2.2”,
“@react-native-firebase/app”: “^19.2.2”,
I’ve tried to set the flag to false but then it stops logging anything to the debug view in the Google Analytics dashboard.