legacy-knowledge-base
公開されました Jun. 30, 2025

ジオロケーションによるセグメンテーションを行うには?

written-by

Jose Bodega

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

問題

  • ジオロケーション条件に基づいてユーザーセグメントを適用したい。 可能なのか?

環境

  • Liferay DXP 7.2
  • Liferay DXP 7.3
  • Liferay DXP 7.4

解像度

DXP 7.4 u44+

DXP 7.2、7.3

:以下の解決策はカスタマイズが必要であり、チームの裁量によってのみ実施されるべきである。 Liferayサポートはカスタマイズの設計や実装を支援することはできません。

  • DXP 7.4以前のLiferayのデフォルト機能では、ジオロケーション条件に基づくユーザーセグメントを適用することはできません。
  • しかし、以下の記事 -> https://help.liferay.com/hc/en-us/articles/360029067391-Creating-a-Request-Context-Contributor に基づいて製品のカスタマイズを開発することで、目標を達成することができます 基本的なステップ
    • セグメンテーションセクションで新しいカスタムフィールドを開発するクラスを作成します(SegmentsFieldCustomizer.java)
    • 前のフィールドにジオロケーション機能を提供するクラスを作成します。(SampleRequestContextContributor.java)
  • なお、ジオロケーションサービスはサードパーティのものでなければならない。
did-this-article-resolve-your-issue

legacy-knowledge-base