# URL

{% hint style="info" %}
ガイドを確認して、 [完全な手順](https://gitbook.com/docs/guides/product-guides/how-to-personalize-your-gitbook-site-using-url-parameters-and-adaptive-content) Cookie を使ったアダプティブコンテンツの設定方法を確認してください。
{% endhint %}

URL のクエリパラメータを通じて、訪問者データをドキュメントに渡すことができます。以下はこの方法の概要です：

<table data-full-width="false"><thead><tr><th width="325.45703125">方法</th><th width="266.6015625">用途</th><th width="206.58984375">設定の容易さ</th><th width="202">セキュリティ</th><th>形式</th></tr></thead><tbody><tr><td>クエリパラメータ <code>visitor.&#x3C;prop>=</code></td><td>機能フラグ、ロール</td><td>簡単に使える</td><td><span data-gb-custom-inline data-tag="emoji" data-code="274c">❌</span> 訪問者はプロパティを上書きできます</td><td>JSON</td></tr></tbody></table>

### クエリパラメータ

URL パラメータを通じて GitBook にデータを渡すには、URL 内で次の形式でデータを渡す必要があります `visitor.<prop>`.

例：

```url
https://docs.acme.org/?visitor.language=fr
```

これにより、以下でこれらのクレームを使用できるようになります [条件エディタ](/docs/documentation/ja-gitbook-documentation/saitoakusesu/adaptive-content/adapting-your-content.md#working-with-the-condition-editor) 署名なしオブジェクトの下で：

```javascript
visitor.claims.unsigned.language === "fr"
```

{% hint style="warning" %}
クエリパラメータを通じて渡されたデータは、次を通じて訪問者スキーマ内で定義する必要があります [署名なしの](https://gitbook.com/docs/publishing-documentation/adaptive-content/enabling-adaptive-content#setting-unsigned-claims) オブジェクト。また、クエリパラメータは訪問者によって簡単に変更できるため、機密性のない情報に最適です。
{% endhint %}

### 動画チュートリアル

{% embed url="<https://www.youtube.com/embed/hCd2_AAHU_I?si=jm2VOThMVh7NdJm>\_" %}


---

# 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://gitbook.com/docs/documentation/ja-gitbook-documentation/saitoakusesu/adaptive-content/enabling-adaptive-content/url.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.
