I want to create a GDPR complying website using Google Analytics. For that, I would like to ask the user for consent before actually saving any cookies.
Unfortunately, I cannot find any documentation on that topic, as AngularFire has next to no documentation (and even less for the new API) and Firebase provides only documentation for IOS/Android.
What I have tried:
- Providing a config using the providers array in
app.module.ts
- Try setting
setAnalyticsCollectionEnabled(analytics, false);
inprovideAnalytics
- Try setting
window['ga-disable-analyticsId'] = true;
inmain.ts
All these methods still save cookies to my browser on load.
Are there any official or unofficial methods to get AngularFire to do what I want?
Name | AngularFire | Firebase | Angular |
---|---|---|---|
Version | 7.2.0 | 9.6.1 | 13.1.0 |