Integrations

Integrations

Third-party tools are easy to paste into app code, but consent makes them part of your privacy runtime. Analytics SDKs, ad pixels, tag managers, and chat widgets can load remote code, store identifiers, send events, and keep running after the first page view.

Info

Put consent-sensitive vendor tools in c15t instead of scattering script tags across your codebase. c15t becomes the place that decides when they can load, when they must stop, and which consent categories your UI needs to show.

Why Manage Tools In c15t

When you install a vendor directly in your app, your consent logic has to chase that vendor everywhere it appears: page layouts, route handlers, event helpers, tag-manager snippets, and cleanup code.

Register the vendor with c15t instead. The integration becomes a declarative Script that the consent runtime can reason about:

  • c15t registers the tool with the runtime and evaluates it against the current consent state;
  • c15t automatically adds the tool's consent category to the active categories, so GDPR-style consent UIs include measurement, marketing, or functionality when an enabled integration needs them;
  • c15t blocks the script until consent is granted, or loads it with denied defaults when the vendor has its own consent mode;
  • c15t handles revocation by unloading the script or calling the vendor's consent API;
  • c15t runs vendor setup in the right order, including queue stubs, global functions, data attributes, default page-view events, and consent updates.

That gives your app one consent lifecycle instead of many scattered vendor lifecycles.

Built-In Helpers

c15t ships prebuilt script helpers in @c15t/scripts for the third-party tools developers integrate most often. Prefer them over copied vendor snippets whenever c15t already supports the vendor.

Every helper returns a regular Script object, so it works anywhere the c15t script loader accepts scripts. You usually choose the helper, provide the vendor ID, and pass the result to your provider's scripts option. The vendor page explains anything else that still matters, such as custom events, region settings, privacy modes, or ecommerce payloads.

Choose An Integration Style

Most apps mix more than one style. Pick the smallest one that keeps consent behavior obvious.

StyleUse when
Built-in helper from @c15t/scriptsThe vendor is listed below — start here.
Plain ScriptOne-off app code with simple load and callback behavior.
Manifest-backed helperReusable vendor integration with structured setup phases, queues, stubs, or a vendor consent API.
Iframe / renderable integrationVendor exposes an iframe or React component, not just a script tag.

Setup is the same shape in every framework: import the helper, call it with vendor options, and pass the result to the consent runtime through your provider's scripts option. See the framework guides for end-to-end snippets — JavaScript, React, Next.js.

Renderable Integrations

Maps and video embeds need a visible component as well as consent-aware loading. The React and Next.js packages include components that own the placeholder, vendor loading, and rendered surface. They are imported from the framework package rather than @c15t/scripts.

Analytics

Analytics integrations usually require measurement consent. Some vendors can run in a consent-aware or cookieless mode; others should stay fully blocked until measurement consent is granted.

Google Tag (gtag.js)

Send data to Google Analytics 4 and Google Ads with automatic Consent Mode v2 support.

Ahrefs Analytics

Cookieless web analytics from Ahrefs configured with a single project key.

Adobe Analytics

Load an Adobe Data Collection Tags property behind measurement consent.

Amplitude

Product analytics with a Browser SDK 2 method-call queue and runtime opt-out synchronization.

Cloudflare Web Analytics

Cookieless analytics from Cloudflare configured with a single beacon token.

Clearbit

Visitor and company enrichment gated on marketing consent.

Microsoft Clarity

Session replay and heatmap analytics with queue stubs and consent-state synchronization.

Databuddy

Privacy-focused analytics with automatic consent management and cookieless tracking support.

Rybbit Analytics

Load Rybbit with site configuration via data attributes on the script tag.

Fathom Analytics

Lightweight, cookieless analytics configured entirely through script data attributes.

Heap

Autocapture product analytics with the heap.js callback queue gated behind measurement consent.

Mixpanel Analytics

Product analytics with always-on loading and consent toggled via Mixpanel opt-in and opt-out APIs.

Hotjar

Heatmaps, recordings, and feedback tools with Hotjar globals bootstrapped before script load.

Hightouch

Customer data platform events with an htevents queue bootstrap and optional initial page call.

LogRocket

Session replay and monitoring initialized after measurement consent.

Matomo Analytics

Self-hosted or cloud analytics with queue-based tracking and optional consent-mode commands.

PostHog

Open-source product analytics with cookieless tracking that works even without consent.

OneDollarStats

Load website analytics after measurement consent, with no API key required.

Promptwatch

Artificial Intelligence (AI)-focused website analytics loaded with a project-id script attribute.

Pirsch

Privacy-friendly, cookieless analytics loaded with Pirsch's fixed script id and identification code.

RudderStack

Customer data platform events with a v3 rudderanalytics queue bootstrap and required data plane URL.

Segment

Customer data platform with an analytics queue bootstrap and optional initial page call.

Plausible Analytics

Privacy-friendly, cookieless web analytics with extension support and queue-buffered early calls.

Umami Analytics

Open-source, cookieless analytics configured entirely through script data attributes.

Vercel Analytics

Bootstrap Vercel Analytics with a declarative queue and script attributes.

Functional

Functional integrations usually require functionality consent. They add optional user-facing capabilities, such as chat widgets, that should only run after the user allows them.

Ads & Pixels

Advertising pixels usually require marketing consent. Many of them need startup stubs so events can be queued safely before the remote SDK loads — built-in helpers handle this for you.

Tag Managers

Tag managers can load other scripts, so they deserve extra care. Prefer vendor consent modes and denied defaults before any tags are allowed to run.

Build Your Own

If c15t does not ship the vendor you need, drop down a level:

  • build a one-off Script directly in your app for simple cases,
  • build a reusable manifest-backed helper for shared or package-level integrations,
  • or combine the script loader with iframe gating for visible media and widget integrations.

Build a Custom Integration

Learn when to use a raw Script, when to use a manifest, and how to debug and test custom integrations.

Read the guide →

Where To Next

  • Read the script loader guide for your framework: JavaScript, React, Next.js.
  • Use the Google Maps and YouTube components for built-in renderable integrations.
  • See the iframe blocking pattern for other visible embeds such as calendars and social widgets.
  • Use has() to conditionally run app code based on consent state.