Hosted
Use consent.io for an easy, managed consent storage solution with minimal setup
On this page
[Error: Could not find section "overview" in ../../javascript/shared/storing-consent/hosted.mdx]
Implementation
import {
ConsentManagerDialog,
ConsentManagerProvider,
CookieBanner,
} from '@c15t/react';
function App() {
return (
<ConsentManagerProvider options={{
mode: 'c15t',
backendURL: "https://your-instance.c15t.dev",
consentCategories: ['necessary', 'marketing'], // Optional: Specify which consent categories to show in the banner.
ignoreGeoLocation: true, // Useful for development to always view the banner.
}}>
<div className="App">
{/* Your application content */}
</div>
<CookieBanner />
<ConsentManagerDialog />
</ConsentManagerProvider>
);
}
export default App;
[Error: Could not find section "using-consent-io" in ../../javascript/shared/storing-consent/hosted.mdx]