Hi Community,
We’ve recently enabled ContextHub on our AEM instance as part of stakeholder request.
We plan to use ContextHub for rule-based personalisation in the following ways:
1. Geolocation-based targeting
2. URL parameters
3. User behaviour: e.g., first time users, returning visitors.
Could you please guide on:
How to set up and test these personalisations in AEM using ContextHub?
Any tips for verifying that rules (especially geolocation and URL-based) are being picked up correctly?
Appreciate any best practices or examples!
Thanks in advance,
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @GauravDu1 ,
In ContextHub, make sure the Geolocation store is enabled (/etc/cloudsettings/default/contexthub)
This store uses IP-based location via browser APIs or external services
Go to Personalization → Segments
Create a new segment with:
Store: Geolocation
Property: country, region, or city
Condition: equals, contains, etc.
E.g., Geolocation.country == "US"
In AEM Author, go to the page with targeting.
Enable Targeting mode
Open the ContextHub toolbar
Modify the Geolocation values manually to simulate location (e.g., change country to India)
Check if the correct experience variant is rendered
2. URL parameters
Setup
ContextHub will automatically parse it
Check ContextHub UI → URL Store → Parameters
Confirm value is correctly picked up
Experience should switch accordingly
3. User behaviour
ContextHub includes a Profile or Persistence store (via cookies/localStorage)
Clear your browser localStorage/cookies → simulate first visit
Reload → ContextHub Profile store → check isFirstVisit == true
Verification and debugging Tips:
Hope this information helps you.
Thanks.
Pradnya
Views
Replies
Total Likes
Thank you Pradnya. This is really helpful. when you say - "In ContextHub, make sure the Geolocation store is enabled (/etc/cloudsettings/default/contexthub)" you mean in CRXDE?
Views
Replies
Total Likes
Views
Likes
Replies