C15T Logo

Hosted

Use consent.io for an easy, managed consent storage solution with minimal setup

tocOn this page

[Error: Could not find section "overview" in ../shared/storing-consent/hosted.mdx]

Implementation

import { configureConsentManager, type ConsentManagerOptions } from 'c15t';

export const c15tConfig: ConsentManagerOptions = {
  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.
};

const c15t = configureConsentManager(c15tConfig);

[Error: Could not find section "using-consent-io" in ../shared/storing-consent/hosted.mdx]