Error while adding ContextHub to the page component

Viewed 2690

We are working on the AEM 6.3.

We have used Context Hub Parameters on Adobe Target Framework within Adobe Target cloud configuration.

However, when we have add the following line to add ContextHub to our page component:

sly data-sly-resource="${'contexthub' @ resourceType='granite/contexthub/components/contexthub'}"/>

I am getting error on the console as shown below: enter image description here

I tried resolving this but the effort was in vain.

Can anyone help me regarding this ?

Do we need to add some dependency for ContextHub in our clientlibs?

Thanks !

2 Answers

add the following clientlibs to your website and the error would go away.

granite.utils and granite.jquery

Hope this helps!!

Add this line also where you are including contexthub

data-sly-call="${clientlib.js @ categories='granite.utils'}
Related