{"repo":"SocialGouv/matomo-next","free":true,"listed":false,"github":"https://github.com/SocialGouv/matomo-next","clone":"git clone https://github.com/SocialGouv/matomo-next.git","description":"Matomo for Next.js applications","language":"TypeScript","stars":185,"topics":["nextjs","matomo","analytics","app-router","pages-router"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"Matomo Next Matomo analytics for Next.js applications A lightweight, TypeScript-ready Matomo analytics integration for Next.js applications with support for both Pages Router and App Router. Features - ✅ Pages Router & App Router Support - Works with both Next.js routing systems - ✅ Automatic Page Tracking - Tracks route changes and page views automatically - ✅ Search Tracking - Built-in search query tracking - ✅ GDPR Compliant - Cookie-less tracking option - ✅ Custom Events - Type-safe event tracking API - ✅ A/B Testing - Built-in support for Matomo's A/B Testing plugin with React hooks - ✅ Tag Manager - Load a Matomo Tag Manager container and push to its data layer - ✅ Server-Side Proxy - Bypass ad-blockers by routing tracking through your own domain - ✅ Heatmap & Session Recording - Optional user behavior visualization - ✅ TypeScript Support - Full type safety and auto-completion Installation Quick Start Pages Router Add the trackPagesRouter() call in your app.js : App Router Create a client component for tracking with trackAppRouter() : Add it to your root layout wrapped in a Suspense boundary: Documentation - Advanced Configuration - All configuration options, HeartBeat timer, callbacks, and extensibility - Event Tracking - Track custom user interactions - A/B Testing - Integrate Matomo's A/B Testing plugin with React hooks - Tag Manager - Load a Matomo Tag Manager container and push events to it - Server-Side Proxy - Bypass ad-blockers by proxying tracking requests - He","default_branch":null,"files":null,"tree":[],"storefront":"/r/SocialGouv","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SocialGouv/matomo-next/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}