- Promoting brand stores
- Highlighting product categories
- Showcasing category-based recommendations
- Suggesting relevant search filters
Before you begin
This guide assumes that you’re familiar with React and fetching a user profile. It also assumes that you’ve configured the Advanced Personalization feature.This feature isn’t available on every plan.
Refer to your pricing plan to see if it’s included.
Preview

Storefront displaying inline segmentation for users who like Apple
Create a reusable segment component
First, create a reusablePersonalizationSegment component:
React
usePersonalizationProfile React Hook.
Implement dynamic inline segmentation
Use thePersonalizationSegment component to conditionally render content based on user affinities:
React
BannerApple component only renders if the user has an for the brand “Apple” with a score of 10 or more.
Optional: add fallback content
You can provide fallback content for users who don’t match the segment:React
Optional: support static segment declarations
For more flexibility, you can declare segments statically. This is useful when you need to load serialized segments from an external source.Define static segments
Store your static segment definitions:JavaScript
Update the segment component
Update thePersonalizationSegment component to handle both dynamic and static segments:
React
Use static segments in your app
Now you can use static segments in yourPersonalizationSegment component:
React