Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

What is the recommended way to create our own Contexthub configurations

Avatar

Level 3

Hi all,

 

From the warning below we understand we need to create our own contexthub configurations.

baoyu_li_0-1619749837224.jpeg

My question is how to best do it?

By copying nodes from under /libs/settings/cloudsettings/legacy/contexthub to /conf/[myproject]/settings/cloudsettings/[myfolder]/contexthub?

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @baoyu_li , 

Yes, you can copy the nodes and create a contexthub with mentioned path. This is one of the way to create. 

conf/[myproject]/settings/cloudsettings/[myfolder]/contexthub

 

Or you can use the tools console to create

 AEM > Tools > Sites > Context Hub

 

Steps are detailed in the below document. Please have a look. 

https://www.initialyze.com/blog/2020/02/context-hub-for-personalization-in-aem-6-5/

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @baoyu_li , 

Yes, you can copy the nodes and create a contexthub with mentioned path. This is one of the way to create. 

conf/[myproject]/settings/cloudsettings/[myfolder]/contexthub

 

Or you can use the tools console to create

 AEM > Tools > Sites > Context Hub

 

Steps are detailed in the below document. Please have a look. 

https://www.initialyze.com/blog/2020/02/context-hub-for-personalization-in-aem-6-5/

Avatar

Community Advisor

Hi @baoyu_li 

 

You can enable context hub by adding the below line of code in head.html of your page component.

 

<!--/* Include Context Hub */-->
<sly data-sly-resource="${'contexthub' @ resourceType='granite/contexthub/components/contexthub'}"/>
*/-->

 

You can create the context hub configuration by navigating from Tools -> Configuration Browser -> Select the project folder -> Enable Context Hub checkbox.

This will create the basic config here /conf/project/settings/wcm/segments

Now you can add your segment nodes under the above path.

 

Please refer the document below:

https://experienceleague.adobe.com/docs/experience-manager-learn/sites/personalization/context-hub-t...

 

Thanks!