@journium/nextjs
v1.1.4
Published
Journium Next.js integration - SSR-ready analytics for Next.js applications
Readme
@journium/nextjs
The official Journium SDK for Next.js. Track events, pageviews, and user interactions with built-in support for both App Router and Pages Router.
Getting Started
Learn how to use Journium in your Next.js application:
Prerequisites
- Next.js 13.5.7 or later
- Node.js
>=18.17.0or later - An existing Journium application. Create your account for free.
Installation
npm install @journium/nextjsUsage
import { NextJourniumProvider } from '@journium/nextjs';
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
<NextJourniumProvider
config={{
publishableKey: "your-publishable-key"
}}
>
{children}
</NextJourniumProvider>
</body>
</html>
);
}For more detailed examples, hooks, and configuration options, visit the Journium documentation.
Other SDKs
- @journium/js - JavaScript SDK
- @journium/react - React SDK
- @journium/angular - Angular SDK
Support
Need help? Reach out to us:
- 📖 Join our official community Discord server
- 🐛 Issue Tracker
Contributing
We're open to all community contributions! If you'd like to contribute in any way, please read our contribution guidelines and code of conduct.
License
This project is licensed under the MIT license.
See LICENSE for more information.
