Installation
Step 1: Add the tracking script
Add the tracking script to yourpublic/index.html:
YOUR_TRACKING_CODE with your tracking code from the dashboard.
Step 2: Verify installation
- Start your development server
- Visit your website
- Check your PostMetric dashboard - you should see your visit
Track custom goals
Track custom goals in your React components:User identification
Identify users when they log in:React Router integration
The tracking script automatically tracks React Router navigation. No additional setup needed!TypeScript types
Add TypeScript types for better type safety:Next steps
Track custom goals
Learn how to track custom user actions