capacitor-community / firebase-analytics

Enable Firebase Analytics for Capacitor Apps
MIT License
162 stars 64 forks source link

Consent management #173

Open alicerocheman opened 11 months ago

alicerocheman commented 11 months ago

This request is based on my reading the ReadMe for this project and the functions offered. I've been using this solution for a year, and need to implement consent management. Maybe I simply haven't found the already existing solution, in which case I'm sorry, please let me know where I can find docs about it.

Is your feature request related to a problem? Please describe. I can't find in the documentation how to use the Analytics param ANALYTICS_STORAGE The objective is to manage consent, but still send anonymized data when consent is denied.

Describe the solution you'd like Ideally: the whole consent management could be integrated

Describe alternatives you've considered Realistically: access to set, read and update consent params such as

Additional context The objective is to manage consent, but still send anonymized data when consent is denied. This is already possible on the web with GA4 and GTM, but GTM is not available on Ionic/Capacitor/React (i haven't found any solution anyway) The web solution sends "pings" with limited data when consent was denied, so the data is still usable. Docs: https://firebase.google.com/docs/reference/kotlin/com/google/firebase/analytics/FirebaseAnalytics.ConsentType

Thank you for reading me!

alicerocheman commented 11 months ago

@robingenz Thank you!

robingenz commented 11 months ago

I will release this feature for @capacitor-firebase/analytics in the next weeks.

piotrblasiak commented 2 months ago

Has this been pushed to production builds yet? I can´t find it in the documentation.

robingenz commented 2 months ago

@piotrblasiak Not for this plugin but for @capacitor-firebase/analytics.