Integration

The GitHub CoPilot icon

OneTrust

Add the OneTrust cookie consent banner to your published GitBook site.

GitHub Copilot dialog with a question about how the GitBook API can be used in Node.js
GitHub Copilot dialog with a question about how the GitBook API can be used in Node.js

Overview

This integration allows you to add the OneTrust cookie consent banner on your published GitBook site.

How it works

The integration injects the OneTrust SDK otSDKStub.js on your page, using your Domain Script ID,
so that the cookie consent banner is displayed and consent is managed according to your OneTrust configuration.

Configure

Install the integration on the GitBook site of your choice.
Provide your OneTrust Domain Script ID. This required value is provided by OneTrust and corresponds to the data-domain-script attribute in your OneTrust implementation.

“We can use our documentation for prospects, not just customers. Finding a certain page in Google is just way easier with GitBook.”

Roman Musatkin

,

Head of Product & Design

Swarmia

“We can use our documentation for prospects, not just customers. Finding a certain page in Google is just way easier with GitBook.”

Roman Musatkin

,

Head of Product & Design

Swarmia

“We can use our documentation for prospects, not just customers. Finding a certain page in Google is just way easier with GitBook.”

Roman Musatkin

,

Head of Product & Design

Swarmia

Build knowledge that never stands still

Join the thousands of teams using GitBook and create documentation that evolves alongside your product

Build knowledge that never stands still

Join the thousands of teams using GitBook and create documentation that evolves alongside your product

Build knowledge that never stands still

Join the thousands of teams using GitBook and create documentation that evolves alongside your product