Expand my Community achievements bar.

Personalization using Custom Context Store(JSONP service) in AEM 6.0

Avatar

Level 4

Hello All,

            In AEM 6.3, we can implement personalization using Context Hub. We can also create a Custom Context Store using a JSONP service.

We are successful in implementing personalization following below articles.

http://www.aemcq5tutorials.com/tutorials/implement-personalization-using-contexthub-aem/

https://helpx.adobe.com/experience-manager/6-3/sites/administering/using/contexthub-config.html

Can we implement the same in AEM 6.0.? Could you please share some helpx articles in AEM 6.0?

Thanks in Advance

6 Replies

Avatar

Employee

sreenivasula​ I think you can use Client Context  instead of ContextHub to leverage personalisation feature.

ContextHub is new version of client context in recent versions of AEM.

Avatar

Level 3

sreenivasula 

As Abhishek has mentioned, you can leverage Client Context for personalization. You would need create segments and JSONP store to capture the information.

You can download the AEM 6.0 documentation from package share.

I hope this helps.

Avatar

Level 4

Thanks Abhishek and Varun!

As suggested, i tried creating a  custom store using JSONP store component by providing JSONP Service URL as http://echo.jsontest.com/key/value/one/two . When i click on Fetch Store with above JSONP service URL, its not fetching the properties from service and populating the drop down. Below is the service response, when accessed using browser.

{

  "one": "two",

  "key": "value"

}

But when i see the request in browser developer tools, network tab shows the successful request with response (in Response tab) but console tab is showing below error(no error in AEM error.log).

Uncaught SyntaxError: UnexpectedToken :(the error is at first : in the JSON response)

Could you please suggest, how to resolve this issue?

Thanks in Advance.

Avatar

Level 4

Thanks Scot!

       The article shared works fine, because, it uses out of the box stores for personalizing the content.

But, we have a requirement to create a custom store(pointing to an external JSONP service). We followed AEM client context documentation Client Context    to create one.

when we tried creating a  custom store using JSONP store component by providing JSONP Service URL as http://echo.jsontest.com/key/value/one/two . When i click on Fetch Store with above JSONP service URL, its not fetching the properties from service and populating the drop down. Below is the service response, when accessed using browser.

{

  "one": "two",

  "key": "value"

}

But when i see the request in browser developer tools, network tab shows the successful request with response (in Response tab) but console tab is showing below error(no error in AEM error.log).

Uncaught SyntaxError: UnexpectedToken :(the error is at first : in the JSON response)

Could you please suggest, how to resolve above issue?

Does AEM 6 really support creating a custom store using JSONP service ?