# アンカーリンクの追加方法

キャンペーンで設定したURLを使い、ページ内の特定の場所へ移動させるには、Experienceのエディターを利用してアンカーリンクを追加することで簡単に実現できます。以下に具体的な設定手順を説明します。

## **設定手順**

1. **キャンペーンの作成**\
   Experienceのエディターを開き、新規キャンペーンを作成します。
2. **遷移先要素の確定**\
   ページ内でリンク先となる要素を特定し、そのHTMLを編集します。\
   ![](/files/8OYu9BXw7H6T8UVI2Uiw)
3. **識別用のユニークidを付与**\
   特定した要素にユニークな識別idを付与します。すでにユニークidが設定されている場合は、この作業は不要です。

   また、タグを記入する際は：

   * 直前に半角スペースを追加することを忘れないでください。
   * 必ず遷移先の要素を識別できるユニークなidを設定してください。
   * idは他の要素と重複しないようにする必要があります。

   識別idの付与例：`id="カスタマイズしたユニークid値"`\
   ![](/files/vdOKspKF9RImrm75RXiV)
4. **リンクの設定**\
   キャンペーンのクリエイティブを編集し、該当するボタンのリンク先を設定します。リンク形式として「相対パス」を選択し、入力欄に遷移先要素のユニークidを記入してください。入力形式は「#id」とします。\
   ![](/files/KWtcwrUbBogbInFTomIt)
5. **動作確認と公開**\
   プレビュー機能を使用してリンクが正しく動作するか確認します。問題がなければキャンペーンを保存し、公開してください。


---

# Agent Instructions: 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:

```
GET https://helps.ptengine.com/faq/experience-edit/anchor-link.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
