> For the complete documentation index, see [llms.txt](https://manual.dxable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.dxable.com/optimizely/platform/optimizely-data-platform/personalize-content/personalize-with-optional-content.md).

# オプションコンテンツでのパーソナライズ

オプションのコンテンツを使用すると、顧客の属性や行動に基づいて情報を顧客に提示できます。 これらのセクションは強力なパーソナライゼーション手法となり、追加のセグメントやキャンペーンを作成せずにさまざまなコンテンツを作成できるようになります。

### オプションのコンテンツを作成する <a href="#gjdgxs" id="gjdgxs"></a>

1. **「アクティベーション」**&#x306B;進みます。
2. 新しいキャンペーンを作成するか、既存のキャンペーンを編集します。
3. 電子メールのタッチポイントを追加または編集します。
4. オプションにしたい**要素**、**列**、または**セクション**を選択します。
5. **\[詳細]**&#x3067;、コンテンツ&#x304C;**\[スクリプト]**&#x30BB;クションに表示されるかどうかを決定する条件を設定します。
6. **「保存」**&#x3092;クリックします。

### オプションのコンテンツの例 <a href="#id-30j0zll" id="id-30j0zll"></a>

次の例は、オプションのコンテンツを使用する方法の概要として機能します。 [カスタムリキッドを使用することで、](https://shopify.github.io/liquid/)より高度なロジックが可能になります。高度なパーソナライゼーションを進める前に、カスタマー サクセス マネージャーに連絡してください。

#### **誕生月** <a href="#id-1fob9te" id="id-1fob9te"></a>

次の例は、デフォルトの**Customers**フィールドに基づいており、顧客の誕生月の場合にのみ表示されます。

1. **\[設定]**&#x3067;、 *current\_month*という変数を作成します。\
   {% assign current\_month = now | date: “%m” %}
2. **Condition**を使用して、 *current\_month が*顧客の誕生月と同じかどう\
   かを判断します。\
   customer.dob\_month == current\_month
3. **条件**に次のステートメントを使用して、誕生日が当月ではない顧客用に別のセクションを作成することもできます:\
   customer.dob\_month != current\_month

#### **VIPステータス** <a href="#id-3znysh7" id="id-3znysh7"></a>

次の例はカスタム顧客フィールドに基づいており、顧客が VIP とみなされる場合にのみ表示されます。

1. *VIP*という名前のカスタム True/False[顧客フィールドを作成します](https://support.optimizely.com/hc/en-us/articles/4407269395341)。
2. **Condition**の VIP 属性を参照して、顧客が VIP 値を持っているかどうかを判断します。\
   customer.vip == true
3. VIP とみなされない顧客用に別のセクションを作成することもできます。\
   customer.vip != false

#### **レーティングシステム** <a href="#id-2et92p0" id="id-2et92p0"></a>

次の例はカスタム製品フィールドに基づいており、製品が特定の評価に関連付けられている場合に表示されます。

1. **Number フィールド タイプ**を使用して、 *Rating*という名前のカスタム[製品フィールドを作成します](https://support.optimizely.com/hc/en-us/articles/4407269395341)。 この例では、評価システムは 1 つ星から 5 つ星までです。
2. タッチポイントの動的製品グリッドに追加の画像要素を追加します。 それに応じて位置とサイズを変更します。 この例では、評価は星の集合として表示されます。
3. 追加の画像要素の画像 URL を設定します。 この場合、それ&#x306F;*{{star\_image}}になります*。
4. 評価を表す画像をアクセス可能なソースにアップロードします。

ダイナミックグリッドのセットアップブロックに以下のLiquidを追加します。 一般的なサンプルのタイトルとリンクを画像への参照に置き換えます。\
{% assign rating = product.rating %}

{% if rating == 3 %}

{% assign star\_image = '<https://url\\_to\\_my\\_asset/3\\_star\\_image.gif>' %}

{% elsif rating == 4 %}

{% assign star\_image = '<https://url\\_to\\_my\\_asset/4\\_star\\_image.gif>' %}

{% elsif rating == 5 %}

{% assign star\_image = '<https://url\\_to\\_my\\_asset/5\\_star\\_image.gif>' %}

{% else %}

{% assign star\_image = '<https://url\\_to\\_my\\_asset/less\\_than\\_2\\_star\\_image.gif>' %}

{% endif %}

1. キャンペーンを**編集**、**保存し**、**ライブに移行します。**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://manual.dxable.com/optimizely/platform/optimizely-data-platform/personalize-content/personalize-with-optional-content.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
