legacy-knowledge-base
公開されました Sep. 10, 2025

Personalized Experience Not Displayed when using "AND" with IP Geocoder Country

written-by

Justin Mann

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • When creating a segmentation using the IP Geocoder Country property in combination with another condition (e.g. a user property), the personalized experience configured for this segment is not displayed for a user that meets all criteria
  • Example Steps to Reproduce:
    1. When in a site, go to the Site menu -> People -> Segments and create a new segment

    2. In the Session section on the right, add 2 IP Geocoder Country properties and configure them as:

      1. Country Equals [Current Location]

      2. Country Equals [Random alternate Location]

    3. Set the condition connector between the countries to OR

    4. Add another property under User -> Email address, and set it to "contains" and enter the email of the user being used to test this

    5. Set the overall conjunction between the groups of properties to AND and save

    6. Go to Site Builder -> Pages and create a new page

    7. Add a calendar widget to the page

    8. Create a new Experience set to the newly created segment and add a blog widget to the page

    9. Set the experience to active by selecting the up arrow next to it in the experience drop down

    10. Publish the page

    11. Go to the page and verify that an Administrator user can see both experiences (i.e. can switch between the experiences and see both the calendar and blog widget)

    12. Log out and log back in as the test user and visit the new page

    13. The user cannot see the personalized experience of the blog on the page

 

Environment

  • Liferay DXP 2025.Q1.x

 

Resolution

  • This issue only occurs in a local environment, and not in a live environment
  • There is a condition in the code that sets the country code to blank when the IP address is considered a local IP
  • When testing in a live environment, the IP Geocoder Country property will function as expected

 

did-this-article-resolve-your-issue

legacy-knowledge-base