Analytics Integration
Shipkit includes built-in support for PostHog, Umami, and DataFast analytics to help you understand user behavior and improve your application.
PostHog Analytics
PostHog is a powerful product analytics platform that provides:
- Product analytics
- Session recording
- Feature flags
- A/B testing
- User surveys
- And more
Configuration
Add these environment variables to enable PostHog:
NEXT_PUBLIC_POSTHOG_KEY=your_posthog_key
NEXT_PUBLIC_POSTHOG_HOST=your_posthog_host
Get your API keys from the PostHog Dashboard.
Resources
Umami Analytics
Umami is a simple, fast, privacy-focused alternative to Google Analytics. It provides:
- Page views
- Visitor insights
- Real-time data
- Privacy compliance
- No cookie notices required
Configuration
Add this environment variable to enable Umami:
NEXT_PUBLIC_UMAMI_WEBSITE_ID=your_umami_website_id
Get your Website ID from your Umami dashboard after creating a project.
Resources
DataFast Analytics
DataFast is a privacy-friendly analytics tool focused on revenue attribution and marketing analytics.
Configuration
Add these environment variables to enable DataFast:
NEXT_PUBLIC_DATAFAST_WEBSITE_ID=your_datafast_website_id
# Optional: set your primary domain shown in their dashboard
NEXT_PUBLIC_DATAFAST_DOMAIN=yourdomain.com
Add the tracking script is handled automatically when the above variables are present and the feature flag is generated at build time. See their App Router docs: DataFast Next.js App Router guide.