| title | Analytics Integration |
|---|---|
| description | Analytics configuration for PostHog, Umami, and DataFast in Shipkit |
Shipkit includes built-in support for PostHog, Umami, and DataFast analytics to help you understand user behavior and improve your application.
PostHog is a powerful product analytics platform that provides:
- Product analytics
- Session recording
- Feature flags
- A/B testing
- User surveys
- And more
Add these environment variables to enable PostHog:
NEXT_PUBLIC_POSTHOG_KEY=your_posthog_key
NEXT_PUBLIC_POSTHOG_HOST=your_posthog_hostGet your API keys from the PostHog Dashboard.
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
Add this environment variable to enable Umami:
NEXT_PUBLIC_UMAMI_WEBSITE_ID=your_umami_website_idGet your Website ID from your Umami dashboard after creating a project.
DataFast is a privacy-friendly analytics tool focused on revenue attribution and marketing analytics.
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.comAdd 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.