Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

What is the recommended way to create our own Contexthub configurations

baoyu_li
Level 2
Level 2

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
Vaibhavi_Gowda
Correct answer by
Community Advisor
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

0 Replies
Vaibhavi_Gowda
Correct answer by
Community Advisor
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

Asutosh_Jena_
Community Advisor
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!