Tracking consent for MAUI SDK
Learn how the Bloomreach MAUI SDK tracks push, in-app message, App Inbox, and content block events depending on tracking consent, and how to override it.
Depending on local data access regulations, access to data on a user's device may require explicit consent. To follow such requirements, you can enable the standalone "tracking consent" feature in Marketing. The feature activates the tracking consent option for in-app messages, in-app content blocks, and mobile push notifications.
NoteFor more information about the tracking consent feature, see Configuration of the tracking consent categories in the Marketing Consent Management documentation.
How the SDK manages tracking consent
If the tracking consent feature is enabled, the Marketing platform sends a has_tracking_consent attribute along with push notifications, in-app messages, and in-app content blocks data. The SDK tracks events according to the boolean value of this attribute.
If the tracking consent feature is disabled, the has_tracking_consent attribute isn't included in push notifications, in-app messages, and in-app content blocks data. In this case, the SDK considers has_tracking_consent to be true and tracks events accordingly.
For clicked events, you can override the value of has_tracking_consent and force tracking by including the query parameter xnpe_force_track with the value true in the action URL.
How the SDK tracks events depending on tracking consent
Push notification delivered
The SDK tracks push notification delivery by calling Bloomreach.BloomreachSDK.TrackDeliveredPush or Bloomreach.BloomreachSDK.HandleRemoteMessage. These methods track a delivered event only if one of the following is true:
- The tracking consent feature is disabled.
- The tracking consent feature is enabled and
has_tracking_consentistrue.
If you invoke the Bloomreach.BloomreachSDK.TrackDeliveredPush method manually and want to ignore tracking consent, you can use Bloomreach.BloomreachSDK.TrackDeliveredPushWithoutTrackingConsent instead. This method tracks the event regardless of tracking consent.
Push notification clicked
The SDK tracks push notification clicks by calling Bloomreach.BloomreachSDK.TrackClickedPush. This method tracks a clicked event only if one of the following is true:
- The tracking consent feature is disabled.
- The tracking consent feature is enabled and
has_tracking_consentistrue. - The action URL contains the query parameter
xnpe_force_trackwith the valuetrue(overridinghas_tracking_consent).
NoteAn event tracked because of
xnpe_force_track(forced tracking) contains an additional propertytracking_forcedwith the valuetrue.
If you invoke the Bloomreach.BloomreachSDK.TrackClickedPush method manually and want to ignore tracking consent, you can use Bloomreach.BloomreachSDK.TrackClickedPushWithoutTrackingConsent instead. This method tracks the event regardless of tracking consent.
In-app message clicked
The SDK tracks in-app message clicks by calling Bloomreach.BloomreachSDK.TrackInAppMessageClick. This method tracks a clicked event only if one of the following is true:
- The tracking consent feature is disabled.
- The tracking consent feature is enabled and
has_tracking_consentistrue. - The action URL contains the query parameter
xnpe_force_trackwith the valuetrue(overridinghas_tracking_consent).
If you invoke the Bloomreach.BloomreachSDK.TrackInAppMessageClick method manually and want to ignore tracking consent, you can use Bloomreach.BloomreachSDK.TrackInAppMessageClickWithoutTrackingConsent instead. This method tracks the event regardless of tracking consent.
In-app message closed
The SDK tracks in-app message closed events by calling Bloomreach.BloomreachSDK.TrackInAppMessageClose. This method tracks a closed event only if one of the following is true:
- The tracking consent feature is disabled.
- The tracking consent feature is enabled and
has_tracking_consentistrue.
If you invoke the Bloomreach.BloomreachSDK.TrackInAppMessageClose method manually and want to ignore tracking consent, you can use Bloomreach.BloomreachSDK.TrackInAppMessageCloseWithoutTrackingConsent instead. This method tracks the event regardless of tracking consent.
App Inbox message opened
The SDK tracks App Inbox message opening by calling Bloomreach.BloomreachSDK.TrackAppInboxOpened. This method tracks an App Inbox message open event only if one of the following is true:
- The tracking consent feature is disabled.
- The tracking consent feature is enabled and
has_tracking_consentistrue. - The App Inbox is loaded and the given
MessageItemis listed in the App Inbox.
If you invoke the Bloomreach.BloomreachSDK.TrackAppInboxOpened method manually and want to ignore tracking consent, you can use Bloomreach.BloomreachSDK.TrackAppInboxOpenedWithoutTrackingConsent instead. This method tracks the event regardless of tracking consent.
App Inbox action clicked
The SDK tracks App Inbox action clicks by calling Bloomreach.BloomreachSDK.TrackAppInboxClick. This method tracks a clicked event only if one of the following is true:
- The tracking consent feature is disabled.
- The tracking consent feature is enabled and
has_tracking_consentistrue. - The action URL contains the query parameter
xnpe_force_trackwith the valuetrue(overridinghas_tracking_consent).
If you invoke the Bloomreach.BloomreachSDK.TrackAppInboxClick method manually and want to ignore tracking consent, you can use Bloomreach.BloomreachSDK.TrackAppInboxClickWithoutTrackingConsent instead. This method tracks the event regardless of tracking consent.
In-app content block displayed
The SDK tracks in-app content block display by calling Bloomreach.BloomreachSDK.TrackInAppContentBlockShown. This method tracks a displayed event only if one of the following is true:
- The tracking consent feature is disabled.
- The tracking consent feature is enabled and
has_tracking_consentistrue.
If you invoke the Bloomreach.BloomreachSDK.TrackInAppContentBlockShown method manually and want to ignore tracking consent, you can use Bloomreach.BloomreachSDK.TrackInAppContentBlockShownWithoutTrackingConsent instead. This method tracks the event regardless of tracking consent.
In-app content block clicked
The SDK tracks in-app content block clicks by calling Bloomreach.BloomreachSDK.TrackInAppContentBlockClick. This method tracks a clicked event only if one of the following is true:
- The tracking consent feature is disabled.
- The tracking consent feature is enabled and
has_tracking_consentistrue. - The action URL contains the query parameter
xnpe_force_trackwith the valuetrue(overridinghas_tracking_consent).
If you invoke the Bloomreach.BloomreachSDK.TrackInAppContentBlockClick method manually and want to ignore tracking consent, you can use Bloomreach.BloomreachSDK.TrackInAppContentBlockClickWithoutTrackingConsent instead. This method tracks the event regardless of tracking consent.
In-app content block closed
The SDK tracks in-app content block closed events by calling Bloomreach.BloomreachSDK.TrackInAppContentBlockClose. This method tracks a closed event only if one of the following is true:
- The tracking consent feature is disabled.
- The tracking consent feature is enabled and
has_tracking_consentistrue.
If you invoke the Bloomreach.BloomreachSDK.TrackInAppContentBlockClose method manually and want to ignore tracking consent, you can use Bloomreach.BloomreachSDK.TrackInAppContentBlockCloseWithoutTrackingConsent instead. This method tracks the event regardless of tracking consent.
In-app content block error
The SDK tracks in-app content block errors by calling Bloomreach.BloomreachSDK.TrackInAppContentBlockError with a meaningful errorMessage argument. This method tracks an error event only if one of the following is true:
- The tracking consent feature is disabled.
- The tracking consent feature is enabled and
has_tracking_consentistrue.
If you invoke the Bloomreach.BloomreachSDK.TrackInAppContentBlockError method manually and want to ignore tracking consent, you can use Bloomreach.BloomreachSDK.TrackInAppContentBlockErrorWithoutTrackingConsent instead. This method tracks the event regardless of tracking consent.
Updated about 18 hours ago

