April 26, 2020
Estimated Post Reading Time ~ 1 mins

Targeting content in AEM

AEM enables to target content for different audience.
This post will explain how to target title component to display content based on user's location and do A/B testing.

Create a web page called Target under we-retail website.
contexthub-1

Click here to check how to enable ContextHub.
Navigate to AEM instance and create Brand and activities.
contexthub-01

Create audience and these audiences are mapped to activity "Country".

audience

Drag and drop Context-hub component called "Comparing Property - Value".

contexthub-14

Open web page in Targeting mode. Click "Start Targeting" and select Brand and Activity "Country" from the toolbar.
contexthub-15
Select title component, click on settings.
contexthub-7
Select Engine as Context Hub
contexthub-8

contexthub-3
"Country" activity is mapped two audience. Now drag and drop title component on the page. Select DEFAULT audience and then click on title component then enable target. Enter text "Welcome" in the component. Select another audience and update the text in title component. Click next.

contexthub-5

Click next. Select when this target should be enabled.
contexthub-6
Click Save. Remove editor.html to see ContextHub toolbar.
contexthub-9

On the toolbar, select GeoLocation. Enter country as "United States".

contexthub-10
Now title text is updated as per the country location.

contexthub-11

Change location to Canada.
contexthub-12

Text is updated as per location.
contexthub-13
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.