Consent Management
Learn how to implement Consent Management for Xamarin.
Usage
Consent management is a recommended feature and is automatically included in the library. To manage consent you must set a consent policy, then track the user’s consent status and consent preferences.
Learn more about consent management.
Sample App
Use the Xamarin Consent Management sample app to familiarize yourself with our library, the tracking methods, and best practices:
Download Xamarin Consent Management Sample App
Enable
The consent management feature comes from the native SDKs embedded into the DLLs named Tealium.Platform.*.dlls
.
To enable consent management, set the consentPolicy
parameter when you initialize TealiumConfig
:
TealiumConfig config = new TealiumConfig(
//...
consentPolicy = ConsentPolicy.GDPR,
//...
);
Consent Status
As with the native SDKs for both Android and iOS, when consent management is enabled, new users are assumed to be in an unknown state. Tracking requests are queued up until the consent status has been opted-in or out, at which point events are sent or purged, respectively.
Use the following methods to manage a user’s consent:
SetConsentStatus()
GetConsentStatus()
SetConsentCategories()
GetConsentCategories()
SetConsentExpiryListener()
The Tealium.Common.dll
provides the following category and status enums to use:
This page was last updated: January 7, 2023