@c15t/scripts
v2.2.0
Published
Consent-aware script integrations for Google Tag Manager, Google Consent Mode v2, GA4, Google Ads, Meta Pixel, and more.
Readme
@c15t/scripts: Prebuilt Consent Scripts
Consent-aware script integrations for Google Tag Manager, Google Consent Mode v2, GA4, Google Ads, Meta Pixel, analytics tools, pixels, tag managers, and widgets.
Key Features
- Prebuilt script loaders for popular analytics, advertising, marketing, and functional tools
- Google Tag Manager support with Google Consent Mode v2 defaults and consent updates
- Google Analytics 4 and Google Ads support through gtag.js
- Consent-gated Meta Pixel and conversion pixel loading
- Easy integration with c15t's script loader
- Configuration options for each supported vendor
- Supported vendors include Google Tag Manager, Meta Pixel, Amplitude, Heap, PostHog, TikTok Pixel, LinkedIn Insights, Microsoft UET, X Pixel, Reddit Pixel, Snapchat Pixel, Intercom, Crisp, and more
Documentation
For further information, guides, and examples visit the reference documentation.
Integrations
- Google Tag Manager: Loads with Google Consent Mode v2 defaults set to denied; GTM-managed tags fire only once matching consent is granted (guide)
- Google Analytics 4 + Google Ads (gtag.js): Consent Mode v2 defaults and consent updates when users make a choice (guide)
- Conversion pixels: Meta Pixel, TikTok Pixel, LinkedIn Insights, Microsoft UET (Microsoft Ads), X Pixel, Reddit Pixel, Snapchat Pixel
- Analytics: PostHog, Amplitude, Heap, Segment, RudderStack, Hightouch, Mixpanel, Microsoft Clarity, Hotjar, Plausible, Fathom, Matomo, Umami, Vercel Analytics
- Chat widgets: Intercom, Crisp
Example
import { googleTagManager } from '@c15t/scripts/google-tag-manager'
import { metaPixel } from '@c15t/scripts/meta-pixel'
const scripts = [
googleTagManager({ id: 'GTM-XXXXXX' }),
metaPixel({ pixelId: '000000000000000' }),
]Support
- Join our Discord community
- Open an issue on our GitHub repository
- Visit inth.com and use the chat widget
- Contact our support team via email [email protected]
Contributing
- We're open to all community contributions.
- Read our Contribution Guidelines
- Review our Code of Conduct
- Fork the repository
- Create a new branch for your feature
- Submit a pull request
- All contributions, big or small, are welcome and appreciated.
Security
If you believe you have found a security vulnerability in c15t, we encourage you to responsibly disclose this and NOT open a public issue. We will investigate all legitimate reports.
Our preference is that you make use of GitHub's private vulnerability reporting feature to disclose potential security vulnerabilities in our open-source software. To do this, please visit https://github.com/c15t/c15t/security and click the "Report a vulnerability" button.
Security Policy
- Please do not share security vulnerabilities in public forums, issues, or pull requests
- Provide detailed information about the potential vulnerability
- Allow reasonable time for us to address the issue before any public disclosure
- We are committed to addressing security concerns promptly and transparently
License
Built by Inth
