analytics
Collecting data about how visitors use a site, such as page views and clicks.
In more detail
Analytics tools record events such as page views, clicks and sign-ups so teams can see how a site is used. Most are third-party scripts, so they cost download and main-thread time and raise privacy questions that may need consent.
Example
Next.js loads analytics through next/script or @next/third-parties so they do not block the page.Related terms
- Google Analytics — Google's web analytics service for measuring visits, pages and user behaviour.
- telemetry — The data a running system sends out about itself, such as logs, metrics and traces.
Taught in
- Root & Nested Layouts: State Preservation Semantics — Next.js 15 & Modern App Router Architecture
- Templates vs Layouts: Remounting & Page Transitions — Next.js 15 & Modern App Router Architecture
- Parallel & Intercepting Routes: Modals & Split Views — Next.js 15 & Modern App Router Architecture
- Loading UI: Instant Loading States with loading.tsx — Next.js 15 & Modern App Router Architecture
- Script Optimization: next/script & Lazy Third Parties — Next.js 15 & Modern App Router Architecture