Highlighted

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

Avatar

Avatar

sreenivasula

Avatar

sreenivasula

sreenivasula

01-02-2018

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

Replies

Highlighted

Avatar

Avatar

Abhishek_Dweved

Employee

Avatar

Abhishek_Dweved

Employee

Abhishek_Dweved
Employee

02-02-2018

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.

Highlighted

Avatar

Avatar

varunmitra

Avatar

varunmitra

varunmitra

02-02-2018

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.

Highlighted

Avatar

Avatar

sreenivasula

Avatar

sreenivasula

sreenivasula

02-02-2018

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.

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

02-02-2018

For AEM 6 and Personalization - see this walk through article -- Adobe Experience Manager Help | Creating an Adobe Experience Manager personalized experience

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

02-02-2018

It is done differently on 6 vs 6.3. For ppl reading this and wanting to use 6.3  - we use Context HUB - see these 6.3 articles -

Scott's Digital Community: Using the ContextHub with the Experience Manager Toy Store site

Scott's Digital Community: Using the Adobe Experience Manager ContextHub to work with Personal Exper...

Scott's Digital Community: Working with Experience Fragments and the Experience Manager ContextHub

These are all 6.3 articles and will show you use with Context Hub!

Highlighted

Avatar

Avatar

sreenivasula

Avatar

sreenivasula

sreenivasula

04-02-2018

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 ?