c15t
/
C15T Logo
DocsFrontendIntegrationsSelf HostChangelog

x

bsky

discord

github1.4k
arrow-leftBack to Changelog
Jun.24, 20251.85 min read

v1.3.3 — GTM Support, CookieBanner Focus Toggle, Next.js URL Validation

Posted By

Christopher Burns
consent-icon-rounded
Christopher Burns
@burnedchris
Kaylee
consent-icon-rounded
Kaylee
@kaylee_dev

Patch Changes

  • b4d53be: feat(core): added Google Tag Manager support
  • fix(react): allow trapFocus={false} in CookieBanner
  • fix(nextjs): improved URL validation

Updated Dependencies

  • Updated dependencies [b4d53be]
    • @c15t/react@1.3.3

Usage Notes

  • Google Tag Manager (GTM) support is opt-in. Ensure your configuration provides the correct container ID and that GTM events are only dispatched after consent is given.
  • Experimental: GTM integration is currently experimental and not recommended for production. See the Next.js guide: Google Tag Manager.
  • You can now disable focus trapping in the cookie banner when embedding in modals or constrained layouts:
<CookieBanner trapFocus={false} />
  • Next.js URL validation is stricter. Use a valid URL for any configuration values (e.g., backend URL). Environment variables should contain absolute URLs (https preferred) or valid relative paths depending on your deployment.
C15T Logo
Leverage native React components for seamless integration and high performance in a robust Consent Management solution that empowers your development team while prioritizing privacy and compliance.
Product
  • Documentation
export const c15tConfig = {
  backendURL: process.env.NEXT_PUBLIC_C15T_URL,
};

Technical Details

  • Core adds GTM integration hooks that respect consent categories before dispatching events.
  • React CookieBanner now supports trapFocus={false} without side effects on keyboard navigation outside the banner.
  • Next.js performs additional checks to prevent malformed URLs from being used at runtime.

Migration

  • No breaking changes.
  • If your app relied on loosely formatted URLs, update them to valid absolute/relative URLs to pass the new validation.

🧪 Tests

  • Added assertions around GTM gating based on consent state.
  • Verified focus behavior with trapFocus={false} to maintain accessibility expectations.
  • Expanded URL validation scenarios for Next.js configuration inputs.

✨ What's Changed

  • feat(core): add Google Tag Manager support by @BurnedChris in #283
  • fix(react): allow trapFocus={false} in CookieBanner by @KayleeWilliams in #291
  • fix(nextjs): improved URL validation by @BurnedChris in #284
  • Version Packages by @github-actions in #293

Published via commit b4d53be by @github-actions

Full Changelog: c15t@1.3.2...c15t@1.3.3

Thank you to our contributors

  • Components
  • Company
    • GitHub
    • Contact
    Legal
    • Privacy Policy
    • Cookie Policy
    c15t

    Thank you to our contributors

    Christopher BurnsKaylee