Eleven logo
Official SDKFrontend Framework

Connect Next.js with Eleven.Ultra-fast App Router & Pages Router analytics integration.

Install Eleven in Next.js applications in under 60 seconds with our dedicated React component and zero-client bundle overhead.

Setup Time1 min
Privacy100% Cookieless
SecuritySigned Webhooks
Integration TypeFrontend Framework

Quick Installation#

Install our lightweight npm package or embed the script directly in app/layout.tsx:

terminalbash
npm install @eleven-analytics/next

App Router Setup (`app/layout.tsx`)#

layout.tsxtsx
import { ElevenAnalytics } from "@eleven-analytics/next";export default function RootLayout({ children }: { children: React.ReactNode }) {  return (    <html lang="en">      <head>        <ElevenAnalytics domain="yourdomain.com" />      </head>      <body>{children}</body>    </html>  );}
Key Capabilities
Zero Bundle Bloat (<1 KB)Loads asynchronously without blocking First Contentful Paint (FCP).
App Router & Server Component ReadyPlug-and-play script component for app/layout.tsx.
Need Assistance?

Our engineering team can assist with custom webhooks, data migration, and server validation.

Contact engineering
Frequently Asked Questions

Next.js Integration FAQs

Everything you need to know about setting up Eleven with Next.js.

Yes, route changes via next/link and next/navigation are captured seamlessly.

Still have questions?

We are here to help you get set up and answering questions anytime.

Contact support

Analytics you'll actually check.Every single day.

You are just a couple of minutes away from bringing your dashboard to life.