codevibe-technology/next-deferred-tags
Load Google Tag Manager, GA4, Meta Pixel and LinkedIn Insight on the first interaction in Next.js, with Google Consent Mode v2 and an optional cookie banner. Page views and events are queued, nothing is lost.
GitHub repository with 5 stars and 4 forks.
Language: TypeScript
Topics: analytics, app-router, core-web-vitals, facebook-pixel, ga4, google-analytics, google-tag-manager, gtm, lighthouse, linkedin-insight-tag