How to work with Liferay Segments and Personalization?

How to work with Liferay Segments and Personalization?

How to work with Liferay Segments and Personalization?
lurantech-author
Parth Radadiya
blog-display-date
Thu Mar 06 2025
How to work with Liferay Segments and Personalization?

In today's digital landscape, personalization is key to engaging customers. Dynamic segmentation goes beyond traditional methods by adapting in real-time based on customer behavior and preferences.

Unlike traditional segmentation, which relies on static, predefined categories, dynamic segmentation adapts in real time based on a customer's behavior, preferences, and interactions.

This transformation enables brands to deliver personalized content, offers, and experiences that are more relevant, timely, and engaging. By harnessing the power of dynamic segmentation, businesses can optimize every customer interaction, driving higher conversion rates, improving customer satisfaction, and fostering long-term loyalty.

In this blog, we'll explore how dynamic segmentation is reshaping personalized experiences and why it's essential for staying competitive.

How to Create a Segment

  • Go to the Site Menu
  • Navigate to People → Segments
  • Click "Add"

liferay-segments

Now you're ready to use the segments.

Let's take a look at an example:

  • Go to the property sidebar
  • In the session, select "URL" and drag it into Conditions
  • Set the condition to: URL contains ?scientist

liferay-segments-example

Now we've created a segment for scientists. Let's move on to personalizing the content on our website using this segment.

Adding the Segment to Content

Let's apply this to a collection on our site:

  • Go to the Site Menu
  • Navigate to Site Builder → Collections
  • Create a new Dynamic Collection
  • Give it a title: Our New Research and create a collection for the item type "Web Content Article"
  • Select your preferred structure and save.
  • Edit the collection
  • On the left sidebar, select "ADD PERSONALIZED VARIATION"
  • Select our "Scientist" segment
  • Select item type "Web Content Article"
  • Select your preferred structure
  • In the filter, set conditions like: Contains → Any → Tags → Select all tags related to scientists that you created when adding web articles
  • Make sure to drag and drop the "Scientist" segment to the top of the Personalized Variations
  • liferay-segments
  • Save the collection

Now we are all set to use dynamic personalization in this collection.

Check How It Works

  • Create a content page
  • Place the collection Our New Research on the page
  • Publish the page

You'll see all the web content articles on that page as usual. Now, pass the parameter ?scientist in the URL. You'll witness the magic!

This is just one example of using segment personalization. You can create segments for engineers, doctors, lawyers, businessmen, and many more for our case. Without much effort and configuration, you can now display different views and personalized content for the same collection.

Here, we've used segments for collections, but you can also apply personalization within the context of layouts. Personalizing content on each page provides a better user experience with minimal effort.

Personalization in Pages

  • Create a new content page
  • Add some fragments and create a common page for all users
  • Now go to left side Select experience and click on New Experience
  • Give name and select respective segment and save.
liferay-segments

Now you can modify content and fragments according to scientist POV and publish the page.

You can check same way as we checked in content personalization.

This is just a one way to create segments and use it based on url in our example. There is lots of more options available for creating segments like using based on devices you use, age specific personalization, paricular region wise personalization, based on categories and tags, for specific organizations and many more.

Conclusion

Dynamic segmentation is a game changer when it comes to creating personalized experiences that truly resonate with users. By using real-time data to tailor content and interactions, businesses can boost engagement, drive conversions, and foster long-term loyalty.

The steps outlined in this blog show just how easy it is to implement dynamic segmentation for personalized content, but the possibilities are endless. Whether you're targeting different professions or customer behaviors, dynamic segmentation allows you to adapt and evolve your strategy with minimal effort, providing a unique, highly relevant experience for every user. Embrace dynamic segmentation and watch how it transforms the way you engage with your customers.

Happy coding! 😉

For any query or more information related our blog don't hesitate to Reach us out.

Ready to Work, Let's Chat
Our team of experts is ready to collaborate with
you every step of the way, from initial consultation to implementation.
Contact Us Today!