URL

Pass visitor data into your docs through URL query parameters

circle-info

Head to our guides to find a full walk-througharrow-up-right on setting up adaptive content with cookies.

You can pass visitor data to your docs through URL query parameters. Below is an overview of the method:

Method
Use-cases
Ease of setup
Security
Format

Query parameters visitor.<prop>=

Feature flags, roles

Easy to use

❌ Visitor can override the properties

JSON

Query parameters

To pass data to GitBook through URL parameters, you’ll need to pass the data in the URL in the format visitor.<prop>.

For example:

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

This will allow you to use these claims in the condition editor under the unsigned object:

visitor.claims.unsigned.language === "fr"
circle-exclamation

Video tutorial

Last updated

Was this helpful?