Skip to content

Interaction Analytics

This feature works out-of-the-box if you use our Usercentrics Banner to collect consent. This guide is for those who want to develop their own custom UI and want to continue receiving CMP-related analytics on the Usercentrics dashboard.

UsercentricsCore.shared.track(event: <UsercentricsAnalyticsEventType>)
Usercentrics.instance.track(event = <UsercentricsAnalyticsEventType>)

The events you can track are:

[iOS] Event [Android] Event Notes
.cmpShown .CMP_SHOWN The banner was displayed to the user. It doesn't matter which layer.
.acceptAllFirstLayer .ACCEPT_ALL_FIRST_LAYER The Accept All button was pressed from the first layer.
.denyAllFirstLayer .DENY_ALL_FIRST_LAYER The Deny All button was pressed from the first layer.
.saveFirstLayer .SAVE_FIRST_LAYER The Save button was pressed from the first layer. Save is mainly used for granular decisions.
.acceptAllSecondLayer .ACCEPT_ALL_SECOND_LAYER The Accept All button was pressed from the second layer.
.denyAllSecondLayer .DENY_ALL_SECOND_LAYER The Deny All button was pressed from the second layer.
.saveSecondLayer .SAVE_SECOND_LAYER The Save button was pressed from the second layer. Save is mainly used for granular decisions.
.imprintLink .IMPRINT_LINK The Imprint link/button was pressed.
.moreInformationLink .MORE_INFORMATION_LINK The More Information link/button was pressed. This button is usually used to navigate from first layer to second layer.
.privacyPolicyLink .PRIVACY_POLICY_LINK The Privacy policy link/button was pressed.
.ccpaTogglesOn .CCPA_TOGGLES_ON The CCPA toggle has been set to ON.
.ccpaTogglesOff .CCPA_TOGGLES_OFF The CCPA toggle has been set to OFF.