Skip to main content
Question

Get is user has opted out

  • October 17, 2024
  • 0 replies
  • 94 views

So we wanna have Amplitude up and running and have installed the SDK2 https://amplitude.com/docs/sdks/analytics/browser/browser-sdk-2. In order to have it we need a Cookie consent banner where the user can optOut if needed. Now after we call    amplitude.setOptOut(true);, we wanna get the information that the user has opted out. 

Isn’t there any support from the SDK that we can get this information or do we need to manually ourselves handle this?
From my point of view it would be nice with “amplitude.getConsent()” that would return true/false depending if the user has actively called amplitude.setOptOut(true) 

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings