Custom property use case in a Custom component - Fluid Topics - Latest

Fluid Topics Designer Guide

Category
Reference Guides
Audience
public
Version
Latest

Use custom properties to personalize content or control visibility based on user attributes from your SSO system.

The following example shows a GDPR notice for users with a region custom property value of Europe. The region value comes from the SSO.

const userRegion = user.customProperties.region?.[0];
if (userRegion === 'Europe') {
  document.getElementById('gdpr-notice').style.display = 'block';
}