ContextHub contexthub

CAUTION
AEM 6.4 has reached the end of extended support and this documentation is no longer updated. For further details, see our technical support periods. Find the supported versions here.

ContextHub is a framework for storing, manipulating, and presenting context data. The client-side Javascript API enables you to access the data for personalizing content.

NOTE
The We.Retail reference implementation implements ContextHub and can serve as a reference as you integrate ContextHub into your own project.
CAUTION
The path containing the sample ContextHub configuration that is used by the We.Retail reference implementation ( /libs/settings/cloudsettings/legacy) should only be used as a reference for creating your own configuration.
It should not be used in a project as your own ContextHub configuration.

Persistence persistence

ContextHub stores persist context data on the client. The ContextHub Javascript API enables you to access stores to create, update, and delete data as necessary. As such, ContextHub represents a data layer on your pages.

Each ContextHub store is an instance of a predefined store type:

Segmentation segmentation

ContextHub includes a segmentation engine that manages segments and determines which segments are resolved for the current context. Several segments are defined. You can use the Javascript API to determine resolved segments.

Presentation presentation

The ContextHub toolbar enables marketers and authors to see and manipulate store data for simulating the user experience when authoring pages. The toolbar consists of groups of UI modules that provide access to ContextHub stores.

Each ContextHub UI module is an instance of a predefined module type:

Developers need to add the ContextHub component to the page.

recommendation-more-help
2315f3f5-cb4a-4530-9999-30c8319c520e