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.
-
Opening a feature request to include a geolocation section in the DXP segments