Skip to main content

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) 

Be the first to reply!

Reply