@c15t/iab
v3.2.1
Published
IAB TCF CMP addon for c15t (TCF 2.4). Generates TC Strings and GPP strings, loads the Global Vendor List (GVL) and collects consent for programmatic advertising.
Readme
@c15t/iab: IAB TCF 2.4 and GPP Addon
IAB TCF 2.4 and Global Privacy Platform (GPP) addon for c15t with TC String and GPP string generation, GVL support, TCF and GPP APIs, and programmatic advertising consent workflows.
c15t is used by 2,100+ sites, including expo.dev, zed.dev, unkey.dev, mintlify.com, and sazabi.com.
Key Features
- IAB TCF 2.4 support for programmatic advertising consent
- TC String generation and storage
- IAB GPP 1.1 API (
__gpp) with US state, MSPA US National and TCF EU sections through@c15t/iab/gpp - Global Vendor List (GVL) support
- Purpose, special purpose, feature, special feature, and vendor controls
- Headless APIs for custom IAB consent experiences
- React UI integration through @c15t/react/iab
Prerequisites
- Node.js 20.19 or later
- c15t 3.x
- Use Inth for a hosted IAB TCF-certified CMP setup with a managed CMP ID, or register your own CMP with IAB Europe and configure your own CMP ID
Installation
pnpm add @c15t/iabFor React UI components, use the @c15t/react IAB subpath and stylesheet:
import { IABConsentBanner, IABConsentDialog } from '@c15t/react/iab'@import "@c15t/react/iab/styles.css";Usage
- Configure c15t with the IAB consent model for jurisdictions that require TCF workflows
- Use the React IAB components for a prebuilt TCF banner and preference center
- Use headless APIs when you need a custom IAB consent experience
- Use
createGPPfrom@c15t/iab/gppto signal US state opt-outs and GPC to ad tech; see the IAB GPP docs - For full implementation details, see the IAB TCF 2.4 docs
Documentation
See the documentation for guides, API reference, and examples.
Related Packages
- @c15t/react: React IAB consent banner, dialog, and hooks through @c15t/react/iab
- @c15t/backend: Backend configuration for IAB TCF, GVL, CMP registration, and custom vendors
- c15t: the consent engine and every framework adapter in one install
Support
- Join our Discord community
- Open an issue on our GitHub repository
- Visit inth.com and use the chat widget
- Contact our support team via email [email protected]
Contributing
- Read the contribution guidelines before you open a pull request
- Follow the code of conduct
Security
Do not open a public issue for a security vulnerability. Report it privately through GitHub's vulnerability reporting. We examine every valid report.
- Do not share the vulnerability in public forums, issues, or pull requests
- Give the steps to reproduce it and the versions it affects
- Give us time to release a fix before you disclose it
License
Built by Inth
