April 22, 2020
Estimated Post Reading Time ~ 1 mins

Implement personalization using context-hub in AEM

Statement:
How to Implement content personalization using ContextHub in AEM
Content personalization using Based on the profile information.

Solution:
Follow the below steps.

Step 1: Create audiences.
Go to this URL http://localhost:4502/aem/start.html -->click on personlization-->click on audiences.
Select --> we retails under audience-->http://localhost:4502/libs/cq/personalization/touch-ui/content/v2/audiences.html/conf/we-retail
Create new Audiences -->click on create -->create context hub-->Enter some name and click on Ok as shown in below screenshot. created two audiences one for Boy and another one for Girl.
c1

c2

c3

c4

Step 1.1: Assign Segment to Audiences for Boy and Girl as per below screenshots

s1

s2

s3

female

Step 2: Create a Brand for audineces
Go to this URL http://localhost:4502/libs/cq/personalization/touch-ui/content/v2/activities.html
Click on create-->create Brand --> follow the below screenshot
b1

b2

b3

Step 3: Create Activity
Go to this URL: http://localhost:4502/libs/cq/personalization/touch-ui/content/v2/activities.html/content/campaigns
Now select the already created brand i.e SampleCampaign -->click on create -->create activity--> follow the below screenhsots
b4

b5

b6

b7

Step 4: Click on Next to map Experience to Sampleactivity as shown in below screenshots -->click on + add experience to add the audiences created in earlier steps and map
b8

b9

ex

b13

b14

Step 5: Enable target component for image
Go to this URL: http://localhost:4502/editor.html/content/we-retail/us/en/about-us.html
add image component and author an image
m1

Switch edit mode to Target mode -->click on start target --> and select the authored image component to enable the target as shown in screenshot

a1

Click on Start Targeting, Highlight image component while selecting the default target option and enable target-->click on target icon as shown below.
a2

Now again select the same image component but select the target as Male Option and author different image as shown in below
a

Now again select the same image component but select the target as Female Option and author different image as shown in below
a4

Click on Next

p4

p5

Click on Save

p6

Switch to preview mode and switch profile to male/Female based on the profile selection you can see different images are shown. refer below screenshots.
p7

p8

p9

That's All!.
aem4beginner.blogspot


By aem4beginner

No comments:

Post a Comment

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

Ad Blocker Detected :(

Please consider supporting us by disabling your ad blocker.

Please Disable your adblocker and Refresh the page to view the site content.