Legacy Knowledge Base
Published Jul. 2, 2025

For anonymous users, a Content Set based on an AC segment does not show the expected content

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • Depending on the IP address, different web content articles or any image would be viewable to different users.

    • Even though the Geolocation feature shows users for the provided IP address, it appears to operate only with logged-on users and not with anonymous users.

Environment

  • Liferay DXP [7.0 -7.3]
  • Analytics Cloud

Resolution

  • AC currently has this limitation. It can't be used for this because AC segments aren't synced in real-time and are designed to maintain historical data. The product team is still working on bringing real-time segmentation from AC. DXP segments should be used when working with segments in real-time.

  • In Analytics Cloud, segments currently exist to provide metrics and curated data so that users may make inferences and interpretations about how their audience is behaving and utilize their online solutions (their Liferay portal). DXP is mainly responsible for content management and display.
  • In terms of DXP, geolocation is not available out of the box in DXP 7.2 at this time, however, the user can use the Country section in the segment rule. If geolocation is extremely important to a user, they can create a custom DXP segment in which users use cookies and JavaScript to obtain the user's IP address and determine their geolocation.

  • Users can find an example of such an extension here - it's a POC module that adds a segment rule to Session that allows users to check the weather based on their IP address and geolocation.

Additional Information

  • The following are the next potential steps for users:
    • Opening a feature request to include a geolocation section in the DXP segments
      • Please note that the exact implementation will depend on the developer's decision, and the new feature can only be added to future releases
    • Creating a custom DXP segment, using this POC as a reference
    • Contacting Liferay representative to get in touch with the GS team.
      • We have a channel called "Global Service Team" for further assistance with customization or development suggestions.
Did this article resolve your issue ?

Legacy Knowledge Base