Hello AEM folks,
As we know that personalization of content is one of the key feature of AEM nowadays. In this article we will have a look how we can personalize our content using contexthub and later in coming articles I will cover personalization using experience fragments as well.
To enable personalization using contexthub on a website we need to add below snippet to page component.
Where to look for contextHub parameters?
So before starting with the implementation of contextHub, let’s go ahead and see it’s parameters and where they are stored in AEM.
In the ContextHubPersistance object in the local storage all the OOTB properties like geolocation,recently viewed and many more can be seen.
Creating Audiences for Personalization:
Audiences are just the condition using which we want to target the content. So will now go ahead and create a new Audience.
Go to: Adobe Experience Manager->General->Configuration Browser and create a new contecthub segment, let’s say Contexthub Demo.