# URL

{% hint style="info" %}
適応コンテンツの設定についてはガイドをご覧ください、 [完全な手順](https://gitbook.com/docs/guides/product-guides/how-to-personalize-your-gitbook-site-using-url-parameters-and-adaptive-content) クッキーを使った適応コンテンツの設定方法。
{% 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
```

これにより、これらのクレームを [条件エディタ](https://gitbook.com/docs/documentation/ja-gitbook-documentation/publishing-documentation/adapting-your-content#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>\_" %}
