browser-sdk

Home > @datadog/browser-rum > RumGlobal > setTrackingConsent

RumGlobal.setTrackingConsent property

Set the tracking consent of the current user.

Signature:

setTrackingConsent: (trackingConsent: TrackingConsent) => void;