Hello,
I've started working on the new ContextHub feature recently for personalizing content. I'm achieving localization based on a territory hierarchy and personalizing the content based on what territory the end user belongs to. The OOTB GeoLocation data store doesn't satisfy my exact requirement as territory names in my project aren't standard and thus I have created a custom data store which fetches the current country from GeoLocation datastore and passes it to a back-end API which returns its corresponding territory name, which serves as selection criteria for my audiences. I also use Profile datastore to fetch more user related info like language preference and use it to personalize it further.
Problems:
var geostore = ContextHub.getStore("geolocation");
geostore.eventing.on(ContextHub.Constants.EVENT_DATA_UPDATE,customUpdateHandler,"handleUpdate");
The custom data store that I created is a PersistedStore with the default local storage persistence.
Any help is appreciated.
Thank you.
Views
Replies
Total Likes
Are you following an online doc to build your custom store? If so - provide the URL to see if your issue is reproducible.
Views
Replies
Total Likes
smacdonald2008 I'm following the official documentation to create my custom data store: Extending ContextHub and ContextHub Javascript API Reference
Views
Replies
Total Likes
I Would recommend seeing this webinar:- ATACE Sept 26 2017 - Context Hub
// This is about Best practices for working with ContextHub in Adobe Experience Manager
ContextHub is a framework for storing, manipulating, and presenting context data. The client-side JavaScript API enables you to access the data for personalizing content.
This will certainly help you create store, model and gets the personalization going.
~kautuk
Views
Replies
Total Likes