Skip to content

Cookie Storage = none for analytics #2866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
petya-v opened this issue Jun 16, 2021 · 5 comments
Closed

Cookie Storage = none for analytics #2866

petya-v opened this issue Jun 16, 2021 · 5 comments

Comments

@petya-v
Copy link

petya-v commented Jun 16, 2021

I suppose this is a feature request because I can't find it documented anywhere.

It would be nice if we could set:
storage='none'

It seems that here we've added a way to turn off analytics completely. However is there a way to disable cookies for analytics?
Perhaps this can be configured via a provider?
#2187

https://developers.google.com/analytics/devguides/collection/analyticsjs/cookies-user-id#disabling_cookies

@google-oss-bot
Copy link

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@petya-v
Copy link
Author

petya-v commented Jun 16, 2021

@KingDarBoja
Copy link
Contributor

Hi Petya!

It is hard to tell if it will ever be supported via Firebase as it is part of Google infrastructure and not Firebase itself as you may have noticed in the official documentation: https://firebase.google.com/docs/analytics/get-started#firebase-gtag

@jamesdaniels
Copy link
Member

I believe the existing firebase analytics settings function should allow this option to be set, if it is not please send a feature request over to the JS SDK

@coleridge72
Copy link

@jamesdaniels
I tried the following in my app.module providers, but cookies still appear after deleting and refreshing the page... have I put them in the wrong place?

provide: CONFIG, useValue: {
  ads_storage: 'denied',
  analytics_storage: 'denied',
  send_page_view: true,
  allow_google_signals: false,
  allow_ad_personalization_signals: false,
  anonymize_ip: true,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants