@next/third-parties
A Next.js package of ready-made, performance-tuned components for popular third-party services.
In more detail
It includes GoogleTagManager, GoogleAnalytics, GoogleMapsEmbed and YouTubeEmbed. It was still marked experimental during Next.js 15.
Related terms
- Google Tag Manager — A Google service that loads and manages tracking and marketing tags on a site from one container script.
- Google Analytics — Google's web analytics service for measuring visits, pages and user behaviour.
- YouTubeEmbed — An @next/third-parties component that shows a light placeholder and loads the full YouTube player only when needed.
- GoogleMapsEmbed — An @next/third-parties component that embeds a Google Map and lazy-loads its iframe by default.
Taught in
- Script Optimization: next/script & Lazy Third Parties — Next.js 15 & Modern App Router Architecture