Integrations
Integrations
Choose an integration
Each vendor helper in @c15t/integrations returns a script configuration that you
register with your c15t provider. Importing a helper installs nothing on its
own. Set up consent with your framework quickstart first,
then follow the vendor guide.
@c15t/integrations is a separate package. Keep importing c15t itself from c15t,
for example c15t/react or c15t/next.
The Loading behavior column shows when each helper requests the vendor. Most wait for the category to be allowed. A few load on every page and pass the permission to the vendor's own consent API, so the browser contacts the vendor before a choice.
Embeds
| Integration | v3 implementation | Loading behavior |
|---|---|---|
| Google Maps | Framework-specific consent-gated map iframe | Iframe mounts only while the chosen permission is allowed |
| YouTube | Framework-specific consent-gated video iframe | Iframe mounts only while the chosen permission is allowed |
Both guides include all nine framework examples. React and Svelte use ConsentGate;
Vue conditionally renders the iframe, and Astro and JavaScript use the existing
kernel to control its DOM lifecycle. Embeds do not require @c15t/integrations.
Tag managers
| Integration | Helper | Category | Loading behavior |
|---|---|---|---|
| Cloudflare Zaraz | cloudflareZaraz | necessary | Always runs; syncs purposes, Zaraz runs the tools |
| Google Tag Manager | googleTagManager | necessary; measurement or marketing when gated | Always loads and signals Google consent by default; loadMode: 'after-consent' waits for permission |
Analytics
| Integration | Helper | Category | Loading behavior |
|---|---|---|---|
| Google Tag | gtag | measurement or marketing | Always loads and signals Google consent by default; loadMode: 'after-consent' waits for permission |
| Ahrefs Analytics | ahrefsAnalytics | measurement | Waits for effective permission |
| Adobe Analytics | adobeAnalytics | measurement | Waits for effective permission |
| Amplitude | amplitude | measurement | Waits for effective permission; opts the SDK out on revocation |
| Cloudflare Web Analytics | cloudflareWebAnalytics | measurement | Waits for effective permission |
| Clearbit | clearbit | marketing | Waits for effective permission |
| Microsoft Clarity | clarity | measurement | Gated initially; keeps the SDK and signals storage consent |
| Databuddy | databuddy | measurement | Always loads; switches the SDK's disabled flag |
| Fathom Analytics | fathomAnalytics | measurement | Waits for effective permission |
| Heap | heap | measurement | Waits for effective permission |
| Matomo Analytics | matomoAnalytics | measurement | Gated by default; optional consent mode |
| Mixpanel | mixpanelAnalytics | measurement | Always loads; calls opt-in and opt-out APIs |
| OneDollarStats | oneDollarStats | measurement | Waits for effective permission |
| Hotjar | hotjar | measurement | Waits for effective permission |
| Hightouch | hightouch | measurement | Waits for effective permission |
| LogRocket | logRocket | measurement | Waits for effective permission |
| Plausible Analytics | plausibleAnalytics | measurement | Waits for effective permission |
| PostHog | posthog | measurement | Configurable; defaults to always loading and calling opt-in and opt-out APIs |
| Promptwatch | promptwatch | measurement | Waits for effective permission |
| Pirsch | pirsch | measurement | Waits for effective permission |
| RudderStack | rudderstack | measurement | Gated by default; optional destination consent mode |
| Segment | segment | measurement | Waits for effective permission |
| Sentry | sentry | necessary; Replay and user data measurement | Configurable; defaults to always loading and loads Replay after permission |
| Rybbit Analytics | rybbitAnalytics | measurement | Waits for effective permission |
| Umami Analytics | umamiAnalytics | measurement | Waits for effective permission |
| Vercel Analytics | vercelAnalytics | measurement | Waits for effective permission |
| Vercel Speed Insights | vercelSpeedInsights | measurement | Waits for effective permission; drops reports after revocation |
Chat and support
| Integration | Helper | Category | Loading behavior |
|---|---|---|---|
| Crisp | crisp | functionality | Waits for effective permission |
| Front Chat | frontChat | functionality | Waits for effective permission |
| Intercom | intercom | functionality | Waits for effective permission |
Email and SMS
| Integration | Helper | Category | Loading behavior |
|---|---|---|---|
| Klaviyo | klaviyo | marketing and measurement | Waits for both; optional forms-only mode needs marketing |
Ads and pixels
| Integration | Helper | Category | Loading behavior |
|---|---|---|---|
| Meta Pixel | metaPixel | marketing | Gated initially; keeps the SDK and signals consent |
| OpenAI Pixel | openaiPixel | marketing | Gated initially; keeps the SDK and signals consent |
| Pinterest Tag | pinterestTag | marketing | Gated initially; keeps the tag and signals consent |
| Reddit Pixel | redditPixel | marketing | Gated initially; keeps the pixel and toggles first-party cookies |
| TikTok Pixel | tiktokPixel | marketing | Gated initially; keeps the SDK and signals consent |
| LinkedIn Insight Tag | linkedinInsights | marketing | Waits for effective permission |
| Microsoft UET | microsoftUet | marketing | Always loads; signals ad storage consent |
| Snapchat Pixel | snapchatPixel | marketing | Waits for effective permission |
| X Pixel | xPixel | marketing | Waits for effective permission |
Load each vendor once
Remove the vendor's own snippet, tracking image, framework plugin or tag manager entry before adding its helper. c15t cannot gate a copy it did not load. Tag managers and data pipelines such as Segment can load further destinations, which need consent settings of their own.
Framework packages are loaders too. To move their vendors to c15t, see
migrate from @next/third-parties
for Next.js, and
migrate from @nuxt/scripts
or migrate from nuxt-gtag
for Nuxt.
When a visitor turns off a category they had allowed, c15t reloads the page so that code which already ran stops. Each vendor guide lists what its helper does on revocation and how to check it.
Vendor switches and cookie cleanup
Every helper sets a vendor slug, so once you declare that vendor a visitor
can allow its category and still switch the vendor off. Gating also leaves
behind the cookies a vendor already wrote; clearOnRevocation deletes them
when their category is denied. Each framework documents both in its Scripts
and embeds group:
| Framework | Vendor consent | Clear on revocation |
|---|---|---|
| Next.js | Vendor consent | Clear on revocation |
| TanStack Start | Vendor consent | Clear on revocation |
| React | Vendor consent | Clear on revocation |
| Nuxt | Vendor consent | Clear on revocation |
| Vue | Vendor consent | Clear on revocation |
| Astro | Vendor consent | Clear on revocation |
| Svelte | Vendor consent | Clear on revocation |
| SvelteKit | Vendor consent | Clear on revocation |
| HTML | Vendor consent | Clear on revocation |
| JavaScript | Vendor consent | Clear on revocation |
Send events only to allowed integrations
createEventDispatcher from @c15t/integrations/events sends one named event to
every registered integration that has an event API and is allowed right now.
It drops events while measurement is denied, and one vendor's error does not
stop delivery to the others:
Pass the same scripts you registered and a function that returns the live
consent snapshot. track supports Google Tag Manager, Google Tag, PostHog,
Mixpanel, Segment, Hightouch, Heap, Amplitude, LogRocket, Adobe Analytics,
Databuddy, Plausible, Fathom, Pirsch, Microsoft Clarity, Hotjar, Vercel
Analytics, OneDollarStats, Umami, Rybbit, RudderStack and Matomo.
pageview sends single-page-app page views only to the integrations named in
pageviews: PostHog, Segment or Hightouch. Call it from your router's
navigation hook. The first call records the path without sending, and repeated
paths or hash-only changes are skipped.
Add a vendor without a helper
Use custom integrations for a vendor without a helper, or an SDK your app already loads. Test every integration with the consent verification guide.