Get the analytics demo running in 5 minutes!
npm installdocker-compose up -dWait 30 seconds for services to initialize.
- Visit http://localhost:3002
- Login:
admin/umami - Click "Add Website"
- Name:
Analytics Demo - Domain:
localhost
- Name:
- Copy the Website ID
- Update
.env:VITE_UMAMI_WEBSITE_ID=your-website-id-here - Update
index.htmlline 12 with the same ID
- Visit http://localhost:3100
- Create account (first user = admin)
- Create project:
Analytics Demo - Go to SDK Connections → Add SDK Connection
- Copy the Client Key
- Update
.env:VITE_GROWTHBOOK_CLIENT_KEY=your-client-key-here
Feature: hero-test
- Type: String
- Experiment: 2 variations (
control,variant) at 50/50 - Toggle ON and Publish
For automated statistical analysis and real-time experiment results:
See docs/growthbook-integration.md for complete setup guide
This enables:
- Automated significance testing
- Bayesian analysis
- Confidence intervals
- Real-time conversion tracking
- Multi-metric funnel analysis
Quick setup:
- Add PostgreSQL data source in GrowthBook (Settings → Data Sources)
- Use connection:
host.docker.internal:5432/umami/umami/umami - Follow the fact table guide to create metrics and experiments
- View automated results with statistical significance!
npm run devVisit http://localhost:5173
- Frontend: http://localhost:5173
- Umami: http://localhost:3002
- GrowthBook: http://localhost:3100
- PostgreSQL: localhost:5432 (for GrowthBook SQL integration)
- Navigate: Home → Product → Cart → Checkout
- Complete purchases in different browsers/incognito tabs
- View event data in Umami (http://localhost:3002)
- View experiment results in GrowthBook (http://localhost:3100) if SQL integration is configured
Note: A/B test variants are assigned per session (page load). Reload to see different variants. This is GDPR/ekomloven compliant - no persistent tracking.
hero_click_control/hero_click_variant- Hero button clickedpage_view- Page viewsadd_to_cart- Add to cart clickedcheckout_start- Checkout initiatedpurchase_complete- Purchase completed
- GrowthBook Integration Guide - Complete guide to connect GrowthBook to Umami for automated A/B test analysis