Integrations
/AB Testing
/GrowthBook
GrowthBook
The GrowthBook integration allows you to run A/B tests and feature flags in your documentation. This enables you to experiment with different content, layouts, and features to optimize user experience and engagement.
Configuration
To enable the GrowthBook integration, add the following configuration to your docs.json
:
{ "integrations": { "abtesting": { "providers": { "growthbook": { "apiHost": "https://cdn.growthbook.io", "clientKey": "required" } } } } }
This approach allows you to conditionally render different content sections based on the feature flag value, with the featureDefault
attribute specifying which version to show when the flag is not set.
Reference
apiHost
string
Required
GrowthBook API hostclientKey
string
Required
GrowthBook client key
Built with
Show your support! Star us on GitHub ⭐️