Skip to main content
Web

Analytics tracking in Next.js

Next.js App Router components are server-rendered by default, but analytics SDKs are browser-side. That means analytics initialization belongs in a client component, and server-side events go through the vendor's HTTP or Node SDK. Typed wrappers generated from Ordaze work in both places, and the scanner understands both client and server call sites.

Pick your analytics vendor

What to know about Next.js

Platform
Web
Typical entry file
app/layout.tsx
About
React framework with file-based routing, server-side rendering, and Server Components. Widely used for production React applications.