Skip to main content

react-matomo-kit

Modern Matomo tracking for React apps

Features

📊 Track Page Views

Automatically track page views with built-in React Router integration

🎯 Type-Safe Events

Track events with type-safe schema validation and IntelliSense support

🔄 Auto SPA Tracking

Seamless page view tracking for Single Page Applications

👤 User ID Tracking

Track user journeys with persistent user identification

📏 Custom Dimensions

Add custom dimensions to enhance your analytics data

📴 Offline-Safe Queue

Queue events when offline and sync when connection is restored

🔒 GDPR-Friendly

Built-in consent management for GDPR compliance

✅ Fully Tested

Comprehensive test suite ensuring reliability and stability

⚛️ Modern React

Works with React 17+, Next.js, Vite, and Webpack

Cat Clicker 3000 — Example App

Explore a fully functional example application that demonstrates all the features of react-matomo-kit. The Cat Clicker 3000 showcases real-world usage patterns including event tracking, user identification, custom dimensions, and consent management in an interactive and fun way.

Try the Example App