@c15t/react 2.0.4 → 2.2.0-canary-20260727202135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +155 -0
- package/README.md +29 -14
- package/client/components/integrations.js +3 -0
- package/dist/components/consent-banner/atoms/overlay.cjs +1 -1
- package/dist/components/consent-banner/atoms/root.cjs +1 -1
- package/dist/components/consent-banner/components.cjs +1 -1
- package/dist/components/consent-banner/consent-banner.cjs +1 -1
- package/dist/components/consent-banner/error-boundary.cjs +1 -1
- package/dist/components/consent-banner/index.cjs +1 -1
- package/dist/components/consent-banner/policy-actions.cjs +1 -1
- package/dist/components/consent-dialog/atoms/card.cjs +1 -1
- package/dist/components/consent-dialog/atoms/overlay.cjs +1 -1
- package/dist/components/consent-dialog/atoms/root.cjs +1 -1
- package/dist/components/consent-dialog/consent-dialog.cjs +1 -1
- package/dist/components/consent-dialog/index.cjs +1 -1
- package/dist/components/consent-dialog-link/index.cjs +1 -1
- package/dist/components/consent-dialog-trigger/atoms/button.cjs +1 -1
- package/dist/components/consent-dialog-trigger/atoms/button.js +1 -1
- package/dist/components/consent-dialog-trigger/atoms/icon.cjs +1 -1
- package/dist/components/consent-dialog-trigger/atoms/root.cjs +1 -1
- package/dist/components/consent-dialog-trigger/atoms/text.cjs +1 -1
- package/dist/components/consent-dialog-trigger/atoms/toolbar.cjs +1 -0
- package/dist/components/consent-dialog-trigger/atoms/toolbar.js +1 -0
- package/dist/components/consent-dialog-trigger/consent-dialog-trigger-toolbar.cjs +1 -0
- package/dist/components/consent-dialog-trigger/consent-dialog-trigger-toolbar.js +1 -0
- package/dist/components/consent-dialog-trigger/consent-dialog-trigger.cjs +1 -1
- package/dist/components/consent-dialog-trigger/index.cjs +1 -1
- package/dist/components/consent-dialog-trigger/index.js +1 -1
- package/dist/components/consent-dialog-trigger/use-draggable.cjs +1 -1
- package/dist/components/consent-preferences-link/consent-preferences-link.cjs +1 -1
- package/dist/components/consent-preferences-link/index.cjs +1 -1
- package/dist/components/consent-widget/atoms/accordion.cjs +1 -1
- package/dist/components/consent-widget/atoms/button.cjs +1 -1
- package/dist/components/consent-widget/atoms/footer.cjs +1 -1
- package/dist/components/consent-widget/atoms/root.cjs +1 -1
- package/dist/components/consent-widget/consent-widget.cjs +1 -1
- package/dist/components/consent-widget/index.cjs +1 -1
- package/dist/components/consent-widget/policy-actions.cjs +1 -1
- package/dist/components/frame/atoms.cjs +1 -1
- package/dist/components/frame/atoms.js +1 -1
- package/dist/components/frame/frame.cjs +1 -1
- package/dist/components/frame/index.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/button-group.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/card.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/description.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/footer.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/header.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/overlay.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/root.cjs +1 -1
- package/dist/components/iab-consent-banner/atoms/title.cjs +1 -1
- package/dist/components/iab-consent-banner/iab-consent-banner.cjs +1 -1
- package/dist/components/iab-consent-banner/iab-consent-banner.js +1 -1
- package/dist/components/iab-consent-banner/index.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/card.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/content.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/footer.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/header.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/overlay.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/purpose-item.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/root.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/stack-item.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/tabs.cjs +1 -1
- package/dist/components/iab-consent-dialog/atoms/vendor-list.cjs +1 -1
- package/dist/components/iab-consent-dialog/hooks/use-gvl-data.cjs +1 -1
- package/dist/components/iab-consent-dialog/iab-consent-dialog.cjs +1 -1
- package/dist/components/iab-consent-dialog/index.cjs +1 -1
- package/dist/components/iab-consent-dialog/use-iab-translations.cjs +1 -1
- package/dist/components/integrations/google-map.cjs +1 -0
- package/dist/components/integrations/google-map.js +1 -0
- package/dist/components/integrations/index.cjs +1 -0
- package/dist/components/integrations/index.js +1 -0
- package/dist/components/integrations/shared.cjs +1 -0
- package/dist/components/integrations/shared.js +1 -0
- package/dist/components/integrations/youtube-embed.cjs +1 -0
- package/dist/components/integrations/youtube-embed.js +1 -0
- package/dist/components/shared/libs/recursive-clone-children.cjs +1 -1
- package/dist/components/shared/libs/slot.cjs +1 -1
- package/dist/components/shared/libs/use-controllable-state.cjs +1 -1
- package/dist/components/shared/policy-actions.cjs +1 -1
- package/dist/components/shared/primitives/box.cjs +1 -1
- package/dist/components/shared/primitives/button.cjs +1 -1
- package/dist/components/shared/primitives/button.js +1 -1
- package/dist/components/shared/primitives/legal-links/index.cjs +1 -1
- package/dist/components/shared/primitives/legal-links/index.js +1 -1
- package/dist/components/shared/ui/accordion/accordion.cjs +1 -1
- package/dist/components/shared/ui/accordion/index.cjs +1 -1
- package/dist/components/shared/ui/animated-collapse/animated-collapse.cjs +1 -1
- package/dist/components/shared/ui/animated-collapse/index.cjs +1 -1
- package/dist/components/shared/ui/branding.cjs +1 -1
- package/dist/components/shared/ui/button/button.cjs +1 -1
- package/dist/components/shared/ui/button/index.cjs +1 -1
- package/dist/components/shared/ui/collapsible/collapsible.cjs +1 -1
- package/dist/components/shared/ui/collapsible/index.cjs +1 -1
- package/dist/components/shared/ui/dialog/dialog.cjs +1 -1
- package/dist/components/shared/ui/dialog/index.cjs +1 -1
- package/dist/components/shared/ui/icon.cjs +1 -1
- package/dist/components/shared/ui/logo.cjs +1 -1
- package/dist/components/shared/ui/preference-item/index.cjs +1 -1
- package/dist/components/shared/ui/preference-item/preference-item.cjs +1 -1
- package/dist/components/shared/ui/switch/index.cjs +1 -1
- package/dist/components/shared/ui/switch/switch.cjs +1 -1
- package/dist/components/shared/ui/tabs/index.cjs +1 -1
- package/dist/components/shared/ui/tabs/tabs.cjs +1 -1
- package/dist/context/consent-manager-context.cjs +1 -1
- package/dist/context/consent-tracking-context.cjs +1 -1
- package/dist/context/theme-context.cjs +1 -1
- package/dist/headless.cjs +1 -1
- package/dist/headless.js +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-color-scheme.cjs +1 -1
- package/dist/hooks/use-component-config.cjs +1 -1
- package/dist/hooks/use-consent-dialog-trigger.cjs +1 -1
- package/dist/hooks/use-consent-manager.cjs +1 -1
- package/dist/hooks/use-consent-script.cjs +1 -0
- package/dist/hooks/use-consent-script.js +1 -0
- package/dist/hooks/use-focus-trap.cjs +1 -1
- package/dist/hooks/use-headless-consent-ui.cjs +1 -1
- package/dist/hooks/use-headless-iab-consent-ui.cjs +1 -1
- package/dist/hooks/use-reduced-motion.cjs +1 -1
- package/dist/hooks/use-scroll-lock.cjs +1 -1
- package/dist/hooks/use-ssr-status.cjs +1 -1
- package/dist/hooks/use-styles.cjs +1 -1
- package/dist/hooks/use-text-direction.cjs +1 -1
- package/dist/hooks/use-theme.cjs +1 -1
- package/dist/hooks/use-translations.cjs +1 -1
- package/dist/iab.cjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/primitives/accordion.cjs +1 -1
- package/dist/primitives/button.cjs +1 -1
- package/dist/primitives/collapsible.cjs +1 -1
- package/dist/primitives/dialog.cjs +1 -1
- package/dist/primitives/preference-item.cjs +1 -1
- package/dist/primitives/switch.cjs +1 -1
- package/dist/primitives/tabs.cjs +1 -1
- package/dist/primitives.cjs +1 -1
- package/dist/providers/consent-manager-provider.cjs +1 -1
- package/dist/server/fetch-ssr-data.cjs +1 -1
- package/dist/server/fetch-ssr-data.js +1 -1
- package/dist/server/headers.cjs +1 -1
- package/dist/server/headers.js +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/init-cache-key.cjs +1 -1
- package/dist/server/normalize-url.cjs +1 -1
- package/dist/styles.tw3.css +1 -1
- package/dist/types/theme/index.cjs +1 -1
- package/dist/types/theme/style-types.cjs +1 -1
- package/dist/utils/cn.cjs +1 -1
- package/dist/utils/merge-styles.cjs +1 -1
- package/dist/utils/test-helpers.cjs +1 -1
- package/dist/utils/theme-utils.cjs +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist-types/components/consent-banner/components.d.ts +2 -2
- package/dist-types/components/consent-banner/policy-actions.d.ts +1 -1
- package/dist-types/components/consent-dialog/atoms/card.d.ts +5 -5
- package/dist-types/components/consent-dialog-trigger/atoms/toolbar.d.ts +22 -0
- package/dist-types/components/consent-dialog-trigger/consent-dialog-trigger-toolbar.d.ts +35 -0
- package/dist-types/components/consent-dialog-trigger/index.d.ts +2 -1
- package/dist-types/components/consent-dialog-trigger/types.d.ts +111 -6
- package/dist-types/components/consent-widget/atoms/accordion.d.ts +4 -4
- package/dist-types/components/consent-widget/consent-widget.d.ts +1 -1
- package/dist-types/components/consent-widget/policy-actions.d.ts +1 -1
- package/dist-types/components/integrations/google-map.d.ts +82 -0
- package/dist-types/components/integrations/index.d.ts +2 -0
- package/dist-types/components/integrations/shared.d.ts +12 -0
- package/dist-types/components/integrations/youtube-embed.d.ts +95 -0
- package/dist-types/components/shared/policy-actions.d.ts +1 -1
- package/dist-types/components/shared/primitives/button.d.ts +36 -2
- package/dist-types/components/shared/primitives/legal-links/index.d.ts +1 -1
- package/dist-types/components/shared/ui/accordion/accordion.d.ts +2 -2
- package/dist-types/components/shared/ui/branding.d.ts +3 -3
- package/dist-types/components/shared/ui/button/button.d.ts +1 -1
- package/dist-types/components/shared/ui/dialog/dialog.d.ts +1 -1
- package/dist-types/components/shared/ui/logo.d.ts +8 -8
- package/dist-types/headless.d.ts +1 -0
- package/dist-types/hooks/index.d.ts +1 -0
- package/dist-types/hooks/use-consent-script.d.ts +80 -0
- package/dist-types/index.d.ts +3 -1
- package/dist-types/providers/consent-manager-provider.d.ts +1 -1
- package/dist-types/server/headers.d.ts +1 -1
- package/dist-types/utils/theme-utils.d.ts +1 -1
- package/dist-types/version.d.ts +1 -1
- package/docs/README.md +155 -76
- package/docs/{building-headless-components.md → frameworks/react/building-headless-components.md} +3 -1
- package/docs/{callbacks.md → frameworks/react/callbacks.md} +3 -1
- package/docs/{components → frameworks/react/components}/consent-banner.md +10 -21
- package/docs/{components → frameworks/react/components}/consent-dialog-link.md +8 -5
- package/docs/frameworks/react/components/consent-dialog-trigger.md +202 -0
- package/docs/{components → frameworks/react/components}/consent-dialog.md +7 -15
- package/docs/frameworks/react/components/consent-manager-provider.md +228 -0
- package/docs/{components → frameworks/react/components}/consent-widget.md +8 -6
- package/docs/{components → frameworks/react/components}/dev-tools.md +9 -6
- package/docs/{components → frameworks/react/components}/frame.md +8 -9
- package/docs/{concepts → frameworks/react/concepts}/client-modes.md +4 -2
- package/docs/{concepts → frameworks/react/concepts}/consent-categories.md +1 -0
- package/docs/{concepts → frameworks/react/concepts}/consent-models.md +1 -0
- package/docs/{concepts → frameworks/react/concepts}/cookie-management.md +3 -3
- package/docs/{concepts → frameworks/react/concepts}/glossary.md +1 -0
- package/docs/{concepts → frameworks/react/concepts}/initialization-flow.md +1 -0
- package/docs/{concepts → frameworks/react/concepts}/policy-packs.md +1 -0
- package/docs/{headless.md → frameworks/react/headless.md} +3 -1
- package/docs/{hooks → frameworks/react/hooks}/use-color-scheme.md +1 -0
- package/docs/{hooks → frameworks/react/hooks}/use-consent-manager/checking-consent.md +3 -1
- package/docs/{hooks → frameworks/react/hooks}/use-consent-manager/location-info.md +3 -1
- package/docs/frameworks/react/hooks/use-consent-manager/overview.md +172 -0
- package/docs/{hooks → frameworks/react/hooks}/use-consent-manager/setting-consent.md +3 -1
- package/docs/{hooks → frameworks/react/hooks}/use-draggable.md +3 -1
- package/docs/{hooks → frameworks/react/hooks}/use-focus-trap.md +1 -0
- package/docs/{hooks → frameworks/react/hooks}/use-reduced-motion.md +3 -1
- package/docs/{hooks → frameworks/react/hooks}/use-ssr-status.md +6 -5
- package/docs/{hooks → frameworks/react/hooks}/use-text-direction.md +1 -0
- package/docs/frameworks/react/hooks/use-translations.md +55 -0
- package/docs/{iab → frameworks/react/iab}/consent-banner.md +9 -12
- package/docs/{iab → frameworks/react/iab}/consent-dialog.md +9 -14
- package/docs/{iab → frameworks/react/iab}/overview.md +4 -2
- package/docs/{iab → frameworks/react/iab}/use-gvl-data.md +3 -2
- package/docs/{iframe-blocking.md → frameworks/react/iframe-blocking.md} +8 -9
- package/docs/{internationalization.md → frameworks/react/internationalization.md} +13 -3
- package/docs/{network-blocker.md → frameworks/react/network-blocker.md} +13 -51
- package/docs/{optimization.md → frameworks/react/optimization.md} +3 -2
- package/docs/{policy-packs.md → frameworks/react/policy-packs.md} +3 -1
- package/docs/{quickstart.md → frameworks/react/quickstart.md} +26 -42
- package/docs/frameworks/react/script-loader.md +553 -0
- package/docs/{server-side.md → frameworks/react/server-side.md} +9 -4
- package/docs/{styling → frameworks/react/styling}/classnames.md +3 -1
- package/docs/{styling → frameworks/react/styling}/color-scheme.md +3 -1
- package/docs/frameworks/react/styling/css-variables.md +53 -0
- package/docs/frameworks/react/styling/overview.md +302 -0
- package/docs/frameworks/react/styling/slots.md +94 -0
- package/docs/{styling → frameworks/react/styling}/tailwind.md +3 -1
- package/docs/frameworks/react/styling/tokens.md +156 -0
- package/docs/{troubleshooting.md → frameworks/react/troubleshooting.md} +3 -1
- package/docs/integrations/adobe-analytics.md +160 -0
- package/docs/integrations/ahrefs-analytics.md +157 -0
- package/docs/integrations/amplitude.md +230 -0
- package/docs/integrations/building-integrations.md +15 -181
- package/docs/integrations/clearbit.md +130 -0
- package/docs/integrations/cloudflare-web-analytics.md +126 -0
- package/docs/integrations/crisp.md +140 -0
- package/docs/integrations/databuddy.md +152 -150
- package/docs/integrations/fathom-analytics.md +150 -0
- package/docs/integrations/google-maps.md +263 -0
- package/docs/integrations/google-tag-manager.md +102 -101
- package/docs/integrations/google-tag.md +104 -92
- package/docs/integrations/heap.md +219 -0
- package/docs/integrations/hightouch.md +199 -0
- package/docs/integrations/hotjar.md +143 -0
- package/docs/integrations/intercom.md +144 -0
- package/docs/integrations/linkedin-insights.md +142 -90
- package/docs/integrations/logrocket.md +175 -0
- package/docs/integrations/matomo-analytics.md +171 -0
- package/docs/integrations/meta-pixel.md +379 -309
- package/docs/integrations/microsoft-clarity.md +173 -0
- package/docs/integrations/microsoft-uet.md +135 -91
- package/docs/integrations/mixpanel-analytics.md +130 -0
- package/docs/integrations/overview.md +119 -75
- package/docs/integrations/pirsch.md +142 -0
- package/docs/integrations/plausible-analytics.md +154 -0
- package/docs/integrations/posthog.md +186 -127
- package/docs/integrations/promptwatch.md +121 -0
- package/docs/integrations/reddit-pixel.md +241 -0
- package/docs/integrations/rudderstack.md +271 -0
- package/docs/integrations/rybbit-analytics.md +143 -0
- package/docs/integrations/segment.md +146 -0
- package/docs/integrations/snapchat-pixel.md +163 -0
- package/docs/integrations/tiktok-pixel.md +101 -91
- package/docs/integrations/umami-analytics.md +148 -0
- package/docs/integrations/vercel-analytics.md +141 -0
- package/docs/integrations/x-pixel.md +123 -109
- package/docs/integrations/youtube.md +193 -0
- package/docs/shared/concepts/client-modes.md +103 -0
- package/docs/shared/concepts/consent-categories.md +41 -0
- package/docs/shared/concepts/consent-models.md +72 -0
- package/docs/shared/concepts/cookie-management.md +88 -0
- package/docs/shared/concepts/glossary.md +24 -0
- package/docs/shared/concepts/initialization-flow.md +105 -0
- package/docs/shared/concepts/policy-packs.md +225 -0
- package/docs/shared/react/components/consent-banner.md +242 -0
- package/docs/shared/react/components/consent-dialog-link.md +45 -0
- package/docs/shared/react/components/consent-dialog-trigger.md +185 -0
- package/docs/shared/react/components/consent-dialog.md +119 -0
- package/docs/shared/react/components/consent-manager-provider.md +183 -0
- package/docs/shared/react/components/consent-widget.md +121 -0
- package/docs/shared/react/components/dev-tools.md +81 -0
- package/docs/shared/react/components/frame.md +52 -0
- package/docs/shared/react/guides/building-headless-components.md +110 -0
- package/docs/shared/react/guides/callbacks.md +89 -0
- package/docs/shared/react/guides/headless.md +31 -0
- package/docs/shared/react/guides/iframe-blocking.md +65 -0
- package/docs/shared/react/guides/internationalization.md +123 -0
- package/docs/shared/react/guides/network-blocker.md +72 -0
- package/docs/shared/react/guides/optimization.md +44 -0
- package/docs/shared/react/guides/policy-packs.md +173 -0
- package/docs/shared/react/guides/script-loader.md +309 -0
- package/docs/shared/react/hooks/use-color-scheme.md +31 -0
- package/docs/shared/react/hooks/use-consent-manager/checking-consent.md +95 -0
- package/docs/shared/react/hooks/use-consent-manager/location-info.md +96 -0
- package/docs/shared/react/hooks/use-consent-manager/overview.md +74 -0
- package/docs/shared/react/hooks/use-consent-manager/setting-consent.md +93 -0
- package/docs/shared/react/hooks/use-draggable.md +30 -0
- package/docs/shared/react/hooks/use-focus-trap.md +20 -0
- package/docs/shared/react/hooks/use-reduced-motion.md +33 -0
- package/docs/shared/react/hooks/use-ssr-status.md +16 -0
- package/docs/shared/react/hooks/use-text-direction.md +38 -0
- package/docs/shared/react/hooks/use-translations.md +15 -0
- package/docs/shared/react/iab/consent-banner.md +60 -0
- package/docs/shared/react/iab/consent-dialog.md +76 -0
- package/docs/shared/react/iab/overview.md +80 -0
- package/docs/shared/react/iab/use-gvl-data.md +21 -0
- package/docs/shared/react/styling/classnames.md +93 -0
- package/docs/shared/react/styling/color-scheme.md +35 -0
- package/docs/shared/react/styling/css-variables.md +53 -0
- package/docs/shared/react/styling/overview.md +261 -0
- package/docs/shared/react/styling/slots.md +93 -0
- package/docs/shared/react/styling/stylesheet-entrypoint.md +8 -0
- package/docs/shared/react/styling/tailwind.md +88 -0
- package/docs/shared/react/styling/tokens.md +155 -0
- package/docs/shared/troubleshooting.md +82 -0
- package/package.json +23 -12
- package/readme.json +12 -7
- package/docs/ai-agents.md +0 -111
- package/docs/components/consent-dialog-trigger.md +0 -103
- package/docs/components/consent-manager-provider.md +0 -425
- package/docs/hooks/use-consent-manager/overview.md +0 -420
- package/docs/hooks/use-translations.md +0 -118
- package/docs/script-loader.md +0 -321
- package/docs/styling/css-variables.md +0 -92
- package/docs/styling/overview.md +0 -460
- package/docs/styling/slots.md +0 -128
- package/docs/styling/tokens.md +0 -216
|
@@ -1,105 +1,149 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Integrations
|
|
3
|
-
description:
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
description: Load analytics, pixels, tag managers, and widgets through c15t so
|
|
4
|
+
consent state controls when they run, update, and appear in your consent UI.
|
|
5
|
+
group: integrations
|
|
6
6
|
---
|
|
7
|
-
|
|
7
|
+
Third-party tools are easy to paste into app code, but consent makes them part
|
|
8
|
+
of your privacy runtime. Analytics SDKs, ad pixels, tag managers, and chat
|
|
9
|
+
widgets can load remote code, store identifiers, send events, and keep running
|
|
10
|
+
after the first page view.
|
|
11
|
+
|
|
12
|
+
> ℹ️ **Info:**
|
|
13
|
+
> 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.
|
|
14
|
+
|
|
15
|
+
## Why Manage Tools In c15t
|
|
16
|
+
|
|
17
|
+
When you install a vendor directly in your app, your consent logic has to chase
|
|
18
|
+
that vendor everywhere it appears: page layouts, route handlers, event helpers,
|
|
19
|
+
tag-manager snippets, and cleanup code.
|
|
20
|
+
|
|
21
|
+
Register the vendor with c15t instead. The integration becomes a declarative
|
|
22
|
+
`Script` that the consent runtime can reason about:
|
|
23
|
+
|
|
24
|
+
* c15t registers the tool with the runtime and evaluates it against the current
|
|
25
|
+
consent state;
|
|
26
|
+
* c15t automatically adds the tool's consent category to the active categories,
|
|
27
|
+
so GDPR-style consent UIs include `measurement`, `marketing`, or
|
|
28
|
+
`functionality` when an enabled integration needs them;
|
|
29
|
+
* c15t blocks the script until consent is granted, or loads it with denied
|
|
30
|
+
defaults when the vendor has its own consent mode;
|
|
31
|
+
* c15t handles revocation by unloading the script or calling the vendor's
|
|
32
|
+
consent API;
|
|
33
|
+
* c15t runs vendor setup in the right order, including queue stubs, global
|
|
34
|
+
functions, data attributes, default page-view events, and consent updates.
|
|
35
|
+
|
|
36
|
+
That gives your app one consent lifecycle instead of many scattered vendor
|
|
37
|
+
lifecycles.
|
|
38
|
+
|
|
39
|
+
## Built-In Helpers
|
|
40
|
+
|
|
41
|
+
c15t ships prebuilt script helpers in
|
|
42
|
+
[`@c15t/scripts`](https://www.npmjs.com/package/@c15t/scripts) for the
|
|
43
|
+
third-party tools developers integrate most often. Prefer them over copied
|
|
44
|
+
vendor snippets whenever c15t already supports the vendor.
|
|
45
|
+
|
|
46
|
+
Every helper returns a regular `Script` object, so it works anywhere the c15t
|
|
47
|
+
[script loader](/docs/frameworks/javascript/script-loader) accepts scripts. You
|
|
48
|
+
usually choose the helper, provide the vendor ID, and pass the result to your
|
|
49
|
+
provider's `scripts` option. The vendor page explains anything else that still
|
|
50
|
+
matters, such as custom events, region settings, privacy modes, or ecommerce
|
|
51
|
+
payloads.
|
|
8
52
|
|
|
9
|
-
|
|
10
|
-
* build your own script or manifest-backed helper
|
|
53
|
+
## Choose An Integration Style
|
|
11
54
|
|
|
12
|
-
|
|
55
|
+
Most apps mix more than one style. Pick the smallest one that keeps consent behavior obvious.
|
|
13
56
|
|
|
14
|
-
|
|
57
|
+
|Style|Use when|
|
|
58
|
+
|--|--|
|
|
59
|
+
|**Built-in helper** from `@c15t/scripts`|The vendor is listed below — start here.|
|
|
60
|
+
|**Plain `Script`**|One-off app code with simple load and callback behavior.|
|
|
61
|
+
|**Manifest-backed helper**|Reusable vendor integration with structured setup phases, queues, stubs, or a vendor consent API.|
|
|
62
|
+
|**Iframe / renderable integration**|Vendor exposes an iframe or React component, not just a script tag.|
|
|
15
63
|
|
|
16
|
-
|
|
64
|
+
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](/docs/frameworks/javascript/script-loader), [React](/docs/frameworks/react/script-loader), [Next.js](/docs/frameworks/next/script-loader).
|
|
17
65
|
|
|
18
|
-
|
|
66
|
+
## Renderable Integrations
|
|
19
67
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
68
|
+
Maps and video embeds need a visible component as well as consent-aware loading.
|
|
69
|
+
The React and Next.js packages include components that own the placeholder,
|
|
70
|
+
vendor loading, and rendered surface. They are imported from the framework
|
|
71
|
+
package rather than `@c15t/scripts`.
|
|
23
72
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
scripts: [
|
|
27
|
-
yourScript({ /* options */ }),
|
|
28
|
-
],
|
|
29
|
-
});
|
|
30
|
-
```
|
|
73
|
+
* [Google Maps](/docs/integrations/google-maps)
|
|
74
|
+
* [YouTube](/docs/integrations/youtube)
|
|
31
75
|
|
|
32
|
-
|
|
76
|
+
## Analytics
|
|
33
77
|
|
|
34
|
-
|
|
35
|
-
import { yourScript } from '@c15t/scripts/your-script';
|
|
36
|
-
import { ConsentManagerProvider } from '@c15t/react';
|
|
78
|
+
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.
|
|
37
79
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
80
|
+
* [Google Tag (gtag.js)](/docs/integrations/google-tag)
|
|
81
|
+
* [Ahrefs Analytics](/docs/integrations/ahrefs-analytics)
|
|
82
|
+
* [Adobe Analytics](/docs/integrations/adobe-analytics)
|
|
83
|
+
* [Amplitude](/docs/integrations/amplitude)
|
|
84
|
+
* [Cloudflare Web Analytics](/docs/integrations/cloudflare-web-analytics)
|
|
85
|
+
* [Clearbit](/docs/integrations/clearbit)
|
|
86
|
+
* [Microsoft Clarity](/docs/integrations/microsoft-clarity)
|
|
87
|
+
* [Databuddy](/docs/integrations/databuddy)
|
|
88
|
+
* [Rybbit Analytics](/docs/integrations/rybbit-analytics)
|
|
89
|
+
* [Fathom Analytics](/docs/integrations/fathom-analytics)
|
|
90
|
+
* [Heap](/docs/integrations/heap)
|
|
91
|
+
* [Mixpanel Analytics](/docs/integrations/mixpanel-analytics)
|
|
92
|
+
* [Hotjar](/docs/integrations/hotjar)
|
|
93
|
+
* [Hightouch](/docs/integrations/hightouch)
|
|
94
|
+
* [LogRocket](/docs/integrations/logrocket)
|
|
95
|
+
* [Matomo Analytics](/docs/integrations/matomo-analytics)
|
|
96
|
+
* [PostHog](/docs/integrations/posthog)
|
|
97
|
+
* [Promptwatch](/docs/integrations/promptwatch)
|
|
98
|
+
* [Pirsch](/docs/integrations/pirsch)
|
|
99
|
+
* [RudderStack](/docs/integrations/rudderstack)
|
|
100
|
+
* [Segment](/docs/integrations/segment)
|
|
101
|
+
* [Plausible Analytics](/docs/integrations/plausible-analytics)
|
|
102
|
+
* [Umami Analytics](/docs/integrations/umami-analytics)
|
|
103
|
+
* [Vercel Analytics](/docs/integrations/vercel-analytics)
|
|
52
104
|
|
|
53
|
-
|
|
105
|
+
## Functional
|
|
54
106
|
|
|
55
|
-
|
|
56
|
-
import { yourScript } from '@c15t/scripts/your-script';
|
|
57
|
-
import { ConsentManagerProvider } from '@c15t/nextjs';
|
|
107
|
+
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.
|
|
58
108
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<ConsentManagerProvider
|
|
62
|
-
options={{
|
|
63
|
-
scripts: [
|
|
64
|
-
yourScript({ /* options */ }),
|
|
65
|
-
],
|
|
66
|
-
}}
|
|
67
|
-
>
|
|
68
|
-
{children}
|
|
69
|
-
</ConsentManagerProvider>
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
```
|
|
109
|
+
* [Crisp](/docs/integrations/crisp)
|
|
110
|
+
* [Intercom](/docs/integrations/intercom)
|
|
73
111
|
|
|
74
|
-
##
|
|
112
|
+
## Ads & Pixels
|
|
75
113
|
|
|
76
|
-
|
|
114
|
+
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.
|
|
77
115
|
|
|
78
|
-
|
|
116
|
+
* [Meta Pixel](/docs/integrations/meta-pixel)
|
|
117
|
+
* [Snapchat Pixel](/docs/integrations/snapchat-pixel)
|
|
118
|
+
* [Reddit Pixel](/docs/integrations/reddit-pixel)
|
|
119
|
+
* [TikTok Pixel](/docs/integrations/tiktok-pixel)
|
|
120
|
+
* [LinkedIn Insight Tag](/docs/integrations/linkedin-insights)
|
|
121
|
+
* [Microsoft UET](/docs/integrations/microsoft-uet)
|
|
122
|
+
* [X (Twitter) Pixel](/docs/integrations/x-pixel)
|
|
79
123
|
|
|
80
|
-
|
|
81
|
-
* [React](/docs/frameworks/react/script-loader)
|
|
82
|
-
* [Next.js](/docs/frameworks/next/script-loader)
|
|
124
|
+
## Tag Managers
|
|
83
125
|
|
|
84
|
-
|
|
126
|
+
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.
|
|
85
127
|
|
|
86
|
-
|
|
128
|
+
* [Google Tag Manager](/docs/integrations/google-tag-manager)
|
|
87
129
|
|
|
88
|
-
|
|
89
|
-
* build a reusable manifest-backed helper for shared or package-level integrations
|
|
130
|
+
## Build Your Own
|
|
90
131
|
|
|
91
|
-
|
|
132
|
+
If c15t does not ship the vendor you need, drop down a level:
|
|
92
133
|
|
|
93
|
-
|
|
134
|
+
* build a one-off `Script` directly in your app for simple cases,
|
|
135
|
+
* build a reusable manifest-backed helper for shared or package-level integrations,
|
|
136
|
+
* or combine the script loader with iframe gating for visible media and widget integrations.
|
|
94
137
|
|
|
95
|
-
|
|
138
|
+
### Build a Custom Integration
|
|
96
139
|
|
|
97
|
-
|
|
140
|
+
Learn when to use a raw `Script`, when to use a manifest, and how to debug and test custom integrations.
|
|
98
141
|
|
|
142
|
+
[Read the guide →](/docs/integrations/building-integrations)
|
|
99
143
|
|
|
100
|
-
|
|
144
|
+
## Where To Next
|
|
101
145
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
146
|
+
* Read the script loader guide for your framework: [JavaScript](/docs/frameworks/javascript/script-loader), [React](/docs/frameworks/react/script-loader), [Next.js](/docs/frameworks/next/script-loader).
|
|
147
|
+
* Use the [Google Maps](/docs/integrations/google-maps) and [YouTube](/docs/integrations/youtube) components for built-in renderable integrations.
|
|
148
|
+
* See the [iframe blocking](/docs/frameworks/react/iframe-blocking) pattern for other visible embeds such as calendars and social widgets.
|
|
149
|
+
* Use [`has()`](/docs/frameworks/javascript/api/checking-consent) to conditionally run app code based on consent state.
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Pirsch
|
|
3
|
+
description: Privacy-friendly, cookieless analytics loaded with Pirsch's fixed
|
|
4
|
+
script id and identification-code attributes.
|
|
5
|
+
group: integrations
|
|
6
|
+
icon: pirsch
|
|
7
|
+
---
|
|
8
|
+
[Pirsch](https://pirsch.io) provides privacy-friendly, cookieless web analytics. The official embed loads a single deferred script with an `id` of `pianjs` and your `data-code` identification code. c15t preserves that script id so the Pirsch loader can find its own element and read the configured attributes.
|
|
9
|
+
|
|
10
|
+
## Integrate with c15t
|
|
11
|
+
|
|
12
|
+
**React**
|
|
13
|
+
|
|
14
|
+
```tsx
|
|
15
|
+
import { type ReactNode } from 'react';
|
|
16
|
+
import { ConsentManagerProvider } from '@c15t/react';
|
|
17
|
+
import { pirsch } from '@c15t/scripts/pirsch';
|
|
18
|
+
|
|
19
|
+
const scripts = [
|
|
20
|
+
pirsch({
|
|
21
|
+
identificationCode: 'YOUR_IDENTIFICATION_CODE',
|
|
22
|
+
}),
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
export function ConsentProvider({ children }: { children: ReactNode }) {
|
|
26
|
+
return (
|
|
27
|
+
<ConsentManagerProvider
|
|
28
|
+
options={{
|
|
29
|
+
mode: 'hosted',
|
|
30
|
+
backendURL: 'https://your-instance.c15t.dev',
|
|
31
|
+
scripts,
|
|
32
|
+
}}
|
|
33
|
+
>
|
|
34
|
+
{children}
|
|
35
|
+
</ConsentManagerProvider>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Next.js**
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
'use client';
|
|
44
|
+
|
|
45
|
+
import { type ReactNode } from 'react';
|
|
46
|
+
import { ConsentManagerProvider } from '@c15t/nextjs';
|
|
47
|
+
import { pirsch } from '@c15t/scripts/pirsch';
|
|
48
|
+
|
|
49
|
+
const scripts = [
|
|
50
|
+
pirsch({
|
|
51
|
+
identificationCode: 'YOUR_IDENTIFICATION_CODE',
|
|
52
|
+
}),
|
|
53
|
+
];
|
|
54
|
+
|
|
55
|
+
export function ConsentProvider({ children }: { children: ReactNode }) {
|
|
56
|
+
return (
|
|
57
|
+
<ConsentManagerProvider
|
|
58
|
+
options={{
|
|
59
|
+
mode: 'hosted',
|
|
60
|
+
backendURL: '/api/c15t',
|
|
61
|
+
scripts,
|
|
62
|
+
}}
|
|
63
|
+
>
|
|
64
|
+
{children}
|
|
65
|
+
</ConsentManagerProvider>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**JavaScript**
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
import { getOrCreateConsentRuntime } from 'c15t';
|
|
74
|
+
import { pirsch } from '@c15t/scripts/pirsch';
|
|
75
|
+
|
|
76
|
+
getOrCreateConsentRuntime({
|
|
77
|
+
mode: 'hosted',
|
|
78
|
+
backendURL: 'https://your-instance.c15t.dev',
|
|
79
|
+
scripts: [
|
|
80
|
+
pirsch({
|
|
81
|
+
identificationCode: 'YOUR_IDENTIFICATION_CODE',
|
|
82
|
+
}),
|
|
83
|
+
],
|
|
84
|
+
});
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## How c15t loads it
|
|
88
|
+
|
|
89
|
+
* **Category:** `measurement` (Analytics)
|
|
90
|
+
* **Loads when:** measurement consent is granted
|
|
91
|
+
* **On revocation:** unloaded — c15t removes the script element from the DOM. Pirsch is cookieless, so no client-side cookies need clearing.
|
|
92
|
+
|
|
93
|
+
The helper maps Pirsch's core script attributes:
|
|
94
|
+
|
|
95
|
+
```ts
|
|
96
|
+
pirsch({
|
|
97
|
+
identificationCode: 'YOUR_IDENTIFICATION_CODE',
|
|
98
|
+
domain: 'rollup.example.com:ROLLUP_IDENTIFICATION_CODE',
|
|
99
|
+
dev: 'example.com',
|
|
100
|
+
hitEndpoint: 'https://analytics.example.com/hit',
|
|
101
|
+
eventEndpoint: 'https://analytics.example.com/event',
|
|
102
|
+
disablePageViews: true,
|
|
103
|
+
})
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Use the extended loader when you need Pirsch's extended script variant:
|
|
107
|
+
|
|
108
|
+
```ts
|
|
109
|
+
pirsch({
|
|
110
|
+
identificationCode: 'YOUR_IDENTIFICATION_CODE',
|
|
111
|
+
extended: true,
|
|
112
|
+
})
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
To proxy or self-host the loader, pass a custom URL:
|
|
116
|
+
|
|
117
|
+
```ts
|
|
118
|
+
pirsch({
|
|
119
|
+
identificationCode: 'YOUR_IDENTIFICATION_CODE',
|
|
120
|
+
scriptUrl: 'https://analytics.example.com/pa.js',
|
|
121
|
+
})
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## Types
|
|
125
|
+
|
|
126
|
+
### PirschOptions
|
|
127
|
+
|
|
128
|
+
|Property|Value|
|
|
129
|
+
|:--|:--|
|
|
130
|
+
|Type Name|\`PirschOptions\`|
|
|
131
|
+
|Source Path|\`./packages/scripts/src/vendors/analytics/pirsch.ts\`|
|
|
132
|
+
|
|
133
|
+
\*ExtractedTypeTable: Could not extract "PirschOptions" from "./packages/scripts/src/vendors/analytics/pirsch.ts" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
|
|
134
|
+
|
|
135
|
+
### Script
|
|
136
|
+
|
|
137
|
+
|Property|Value|
|
|
138
|
+
|:--|:--|
|
|
139
|
+
|Type Name|\`Script\`|
|
|
140
|
+
|Source Path|\`./packages/core/src/libs/script-loader/types.ts\`|
|
|
141
|
+
|
|
142
|
+
\*ExtractedTypeTable: Could not extract "Script" from "./packages/core/src/libs/script-loader/types.ts" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Plausible Analytics
|
|
3
|
+
description: Privacy-friendly cookieless analytics with a prebuilt helper that
|
|
4
|
+
preserves Plausible's queue bootstrap and loader attributes.
|
|
5
|
+
group: integrations
|
|
6
|
+
icon: plausible
|
|
7
|
+
---
|
|
8
|
+
Plausible Analytics is a privacy-friendly, cookieless analytics product with a lightweight script loader. The `plausibleAnalytics()` helper models Plausible's queue bootstrap and script attributes as a c15t-managed script so early `window.plausible(...)` calls are buffered safely until the tracker loads.
|
|
9
|
+
|
|
10
|
+
## Integrate with c15t
|
|
11
|
+
|
|
12
|
+
**React**
|
|
13
|
+
|
|
14
|
+
```tsx
|
|
15
|
+
import { type ReactNode } from 'react';
|
|
16
|
+
import { ConsentManagerProvider } from '@c15t/react';
|
|
17
|
+
import { plausibleAnalytics } from '@c15t/scripts/plausible-analytics';
|
|
18
|
+
|
|
19
|
+
const scripts = [plausibleAnalytics({ domain: 'example.com' })];
|
|
20
|
+
|
|
21
|
+
export function ConsentProvider({ children }: { children: ReactNode }) {
|
|
22
|
+
return (
|
|
23
|
+
<ConsentManagerProvider
|
|
24
|
+
options={{
|
|
25
|
+
mode: 'hosted',
|
|
26
|
+
backendURL: 'https://your-instance.c15t.dev',
|
|
27
|
+
scripts,
|
|
28
|
+
}}
|
|
29
|
+
>
|
|
30
|
+
{children}
|
|
31
|
+
</ConsentManagerProvider>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Next.js**
|
|
37
|
+
|
|
38
|
+
```tsx
|
|
39
|
+
'use client';
|
|
40
|
+
|
|
41
|
+
import { type ReactNode } from 'react';
|
|
42
|
+
import { ConsentManagerProvider } from '@c15t/nextjs';
|
|
43
|
+
import { plausibleAnalytics } from '@c15t/scripts/plausible-analytics';
|
|
44
|
+
|
|
45
|
+
const scripts = [plausibleAnalytics({ domain: 'example.com' })];
|
|
46
|
+
|
|
47
|
+
export function ConsentProvider({ children }: { children: ReactNode }) {
|
|
48
|
+
return (
|
|
49
|
+
<ConsentManagerProvider
|
|
50
|
+
options={{
|
|
51
|
+
mode: 'hosted',
|
|
52
|
+
backendURL: '/api/c15t',
|
|
53
|
+
scripts,
|
|
54
|
+
}}
|
|
55
|
+
>
|
|
56
|
+
{children}
|
|
57
|
+
</ConsentManagerProvider>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**JavaScript**
|
|
63
|
+
|
|
64
|
+
```ts
|
|
65
|
+
import { getOrCreateConsentRuntime } from 'c15t';
|
|
66
|
+
import { plausibleAnalytics } from '@c15t/scripts/plausible-analytics';
|
|
67
|
+
|
|
68
|
+
getOrCreateConsentRuntime({
|
|
69
|
+
mode: 'hosted',
|
|
70
|
+
backendURL: 'https://your-instance.c15t.dev',
|
|
71
|
+
scripts: [plausibleAnalytics({ domain: 'example.com' })],
|
|
72
|
+
});
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## How c15t loads it
|
|
76
|
+
|
|
77
|
+
* **Category:** `measurement` (Analytics)
|
|
78
|
+
* **Loads when:** measurement consent is granted
|
|
79
|
+
* **On revocation:** unloaded — c15t removes the script element from the DOM. Plausible is cookieless, so no client-side state needs clearing.
|
|
80
|
+
|
|
81
|
+
If you need script extensions or hash-based routing support, pass them through the helper:
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
plausibleAnalytics({
|
|
85
|
+
domain: 'example.com',
|
|
86
|
+
extension: ['file-downloads', 'outbound-links'],
|
|
87
|
+
hashBasedRouting: true,
|
|
88
|
+
})
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
The helper seeds a `window.plausible` queue stub during `onBeforeLoad`, so any calls made between the consent grant and the real script attaching get buffered into `plausible.q` and replayed. It also maps the legacy `data-domain` / `data-api` attributes and the new `scriptId`-based loader URL automatically.
|
|
92
|
+
|
|
93
|
+
## Tracking events in your app
|
|
94
|
+
|
|
95
|
+
c15t gates the Plausible script from loading until `measurement` consent is granted. Your application code that calls Plausible is **not** automatically gated — `window.plausible` does not exist until the script is loaded, so unguarded calls before consent throw.
|
|
96
|
+
|
|
97
|
+
Guard event calls by checking consent state. From React:
|
|
98
|
+
|
|
99
|
+
```tsx
|
|
100
|
+
import { useCallback } from 'react';
|
|
101
|
+
import { useConsentManager } from '@c15t/react';
|
|
102
|
+
|
|
103
|
+
function useTrackSignup() {
|
|
104
|
+
const { has } = useConsentManager();
|
|
105
|
+
|
|
106
|
+
return useCallback(() => {
|
|
107
|
+
if (has('measurement')) {
|
|
108
|
+
window.plausible?.('Signup');
|
|
109
|
+
}
|
|
110
|
+
}, [has]);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function SignupButton() {
|
|
114
|
+
const trackSignup = useTrackSignup();
|
|
115
|
+
|
|
116
|
+
return (
|
|
117
|
+
<button type="button" onClick={trackSignup}>
|
|
118
|
+
Sign up
|
|
119
|
+
</button>
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
From plain JavaScript:
|
|
125
|
+
|
|
126
|
+
```ts
|
|
127
|
+
import { getOrCreateConsentRuntime } from 'c15t';
|
|
128
|
+
|
|
129
|
+
const { consentStore } = getOrCreateConsentRuntime();
|
|
130
|
+
|
|
131
|
+
if (consentStore.getState().has('measurement')) {
|
|
132
|
+
window.plausible?.('Signup');
|
|
133
|
+
}
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Types
|
|
137
|
+
|
|
138
|
+
### PlausibleAnalyticsOptions
|
|
139
|
+
|
|
140
|
+
|Property|Value|
|
|
141
|
+
|:--|:--|
|
|
142
|
+
|Type Name|\`PlausibleAnalyticsOptions\`|
|
|
143
|
+
|Source Path|\`./packages/scripts/src/vendors/analytics/plausible-analytics.ts\`|
|
|
144
|
+
|
|
145
|
+
\*ExtractedTypeTable: Could not extract "PlausibleAnalyticsOptions" from "./packages/scripts/src/vendors/analytics/plausible-analytics.ts" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
|
|
146
|
+
|
|
147
|
+
### Script
|
|
148
|
+
|
|
149
|
+
|Property|Value|
|
|
150
|
+
|:--|:--|
|
|
151
|
+
|Type Name|\`Script\`|
|
|
152
|
+
|Source Path|\`./packages/core/src/libs/script-loader/types.ts\`|
|
|
153
|
+
|
|
154
|
+
\*ExtractedTypeTable: Could not extract "Script" from "./packages/core/src/libs/script-loader/types.ts" using base path "/home/runner/work/c15t/c15t". Verify the path/name and that the file is included by your tsconfig.\*
|