URL
Pass visitor data into your docs through URL query parameters
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=frThis will allow you to use these claims in the condition editor under the unsigned object:
visitor.claims.unsigned.language === "fr"Video tutorial
Last updated
Was this helpful?