Audiences
Release Feature Liferay DXP 2026.Q3+
An audience is a named group of visitors described by a set of conditions. Each condition checks a single attribute, such as the device type, the page URL, or membership in a Liferay Data Platform segment (an Analytics Cloud segment before Liferay DXP 2026.Q4). You can combine conditions with AND / OR logic and nest groups of conditions to express more specific requirements. The visitor’s browser evaluates those conditions and determines which audiences they match.
An instance administrator must enable the LPD-85746 release feature flag before Audiences appears. See Feature Flags. Once the flag is enabled, Liferay DXP adds the audience detection script to your pages, and you can open the Global Menu (
) and go to Applications → Audiences.
Audiences and Element Variations
Element variations on content pages use audiences to decide which visitors see them. An element variation replaces the content of one page element for a specific audience, so a single page can present different text or images to different visitors. A site needs at least one available audience before you can create element variations on its pages. Audiences apply on every site unless limited to specific sites.
Because a visitor’s audiences are determined in their browser rather than on the server, a condition can use values only the browser knows, such as the local time on the visitor’s device. That is the main difference between an audience and a user segment. For information about how Liferay DXP determines which audiences a visitor matches and when their variations apply, see Audience Detection.
Attributes
There are three types of audience attributes.
- Browser: Information about the visitor’s device and browser, and about the page they are viewing, such as the device type, browser language, page URL, and time zone.
- General: The visitor’s sign-in state, the language Liferay DXP displays the page in, and the Liferay Data Platform batch and real-time segments they belong to.
- Custom: Additional attributes added by an
audiencesCustomAttributesclient extension.
For information about each attribute’s value type and detected value, see Audience Attributes Reference.