March 22, 2020
Estimated Post Reading Time ~

ContextHub/Segments AEM 6.4 - Audience Creation

There are 2 ways we can achieve

Through this post, we are discussing the ContextHub-based personalization and method of ContextHub creation.

ContextHub/Segments - Audience Creation
ContextHub is a new form(Touch-based) of segments that helps to configure the personalization. The ContextHub page provides information about the default and user-created stores and UI modules, the client library folders that are loaded, and links to useful pages.

Steps to create ContextHub in AEM 6.4
Log in to AEM 6.4
Traverse through Navigation> Personalization> Audiences>


Then enter into the site where you want to create ContextHubs I have selected 'we-retail' site for my example.
[You can also follow the path to reach ContextHub creation section through link : http://(host):(port)/libs/cq/personalization/touch-ui/content/v2/audiences.html/conf/we-retail]

Create Context Hub Segment: A section where we can add new segments and update existing ones.


ContextHub 'Create' provides below option.
Enter the segment title and boost value if it has to be boosted on evaluation



Once you click on Create Context Hub Segment, the below screen appears. This section has grid/ list views.


Once Context Hub Segment is created, select the newly created one and edit it


You can see a 'Container AND' component placed by default. If it is not available, add it.


Again click on the newly added container (+) icon and insert new component and select 'Comparison: Property - Value'


Now the container appears as below with property null (3).
Now edit the property as below (4), so that the newly added Context Hub Segment becomes a 'male' test based on profile; for that follow the next step.

Setting for male: set the values as 'gender-equal string male'



Since we have logged in as default admin user, the user/persona satisfies the male condition, which is shown below.


If persona is selected as female the condition becomes un-satisfied.


If a persona is selected as male the condition becomes satisfied again.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.