Rybbit Analytics
Rybbit Analytics loads through @c15t/scripts and configures tracking behavior via data-* attributes on the script element.
Integrate with c15t
How c15t loads it
- Category:
measurement(Analytics) - Loads when: measurement consent is granted
- On revocation: unloaded - c15t removes the script from the DOM and stops network activity until consent is granted again.
To use a custom analytics host:
Tracking events in your app
c15t gates the Rybbit script from loading until measurement consent is granted. Your application code that calls Rybbit's runtime API (window.rybbit) is not automatically gated - window.rybbit does not exist until the script is loaded, so unguarded calls before consent throw.
Guard event calls by checking consent state. From React:
From plain JavaScript:
Types
RybbitAnalyticsOptions
Warning: ExtractedTypeTable: Could not extract "RybbitAnalyticsOptions" from "./packages/scripts/src/vendors/analytics/rybbit-analytics.ts" using base path "/vercel/path0/apps/c15t-docs/.leadtype/c15t". Verify the path/name and that the file is included by your tsconfig.
Script
Warning: ExtractedTypeTable: Could not extract "Script" from "./packages/core/src/libs/script-loader/types.ts" using base path "/vercel/path0/apps/c15t-docs/.leadtype/c15t". Verify the path/name and that the file is included by your tsconfig.