DataDog / browser-sdk

Datadog Browser SDK
Apache License 2.0
279 stars 130 forks source link

💡 Support for "pending" for trackingConsent #2819

Closed dlmr closed 2 weeks ago

dlmr commented 2 weeks ago

Is it possible to enable support for pending similar to what is available on iOS for trackingConsent. As this does not exist for the Browser SDK as far as I can tell.

The use case is that we only want to send data to Datadog that we have consent to use but we don't want to miss anything happening before the user have taken an action with the consent screen.

BenoitZugmeyer commented 2 weeks ago

Hello and thank you for your feedback.

When we implemented consent management in the Browser SDK, our legal team told us that collecting data in memory prior to consent was forbidden by privacy regulations as GDPR. This is why we didn't implement pending in the first place.