browser-sdk

Home > @datadog/browser-logs > LogsGlobal > setTrackingConsent

LogsGlobal.setTrackingConsent property

Set the tracking consent of the current user.

Signature:

setTrackingConsent: (trackingConsent: TrackingConsent) => void;