AnalyticsCAN I VIBECODE
Piwik PRO?
BUILD FIRST
- One specific customer type and one primary use case
- A vertical slice that completes the main job without manual workarounds
- Visible limits, review steps, and a fallback when an external dependency fails
LEAVE FOR LATER
- Broad third-party integrations
- High-scale collaboration, syncing, and permissions
- Automation that can cause harm without human review
RESEARCH NOTES
What this tool actually does.
Piwik PRO is a privacy-first web and product analytics platform combining behavioral analytics, consent management, and data activation. It captures complete visitor journeys without sampling, including events from visitors who decline cookies. Key features include real-time dashboards refreshed every 10 seconds, conversion funnels, multi-channel attribution reports, user flow analysis, product analytics for post-login behavior, and custom event tracking. Raw data access is provided via API, BigQuery, and CSV/JSON/XML exports. The platform emphasizes compliance with GDPR, CCPA/CPRA, HIPAA, and holds ISO 27001 and SOC 2 certifications, with 100% data ownership and hosting options on EU-owned and HIPAA-compliant servers. It includes a data activation module for personalized campaigns and integrations with BI tools, CRM, ecommerce, and email platforms. Pricing tiers mention CSV exports to B
RESEARCHED BUILD PROMPT
Give this to your coding agent.
Build a functional Piwik PRO-style privacy-first web analytics platform. Workflow: a site embeds a lightweight JS tracker sending pageviews and events to a backend collector; analysts view real-time dashboards and run funnel/attribution/user-flow reports; raw data is exportable via API or CSV.
User-facing requirements: live dashboard with visitor count refreshed ≤10 seconds; pageview/event reports with date filters; conversion funnel builder with step drop-off visualization; multi-channel attribution report; user flow diagram showing page sequences; product analytics view segmented by logged-in user; custom segment creation; CSV/JSON export buttons.
Technical requirements: vanilla JS tracker SDK (~5KB gzip) sending POST beacons to /collect; backend ingest API (Node.js/Express or Go) storing raw events in partitioned PostgreSQL; worker for sessionization; REST query API with pagination and date-range filtering; React or Vue dashboard SPA; anonymous tracking default for visitors declining cookies; consent state persisted in localStorage; configurable data retention window.
Implementation approach: compute funnels with SQL window functions; build user flow via per-session page adjacency aggregation; use Redis for real-time counters; serve dashboard behind a reverse proxy as static assets.
Do not copy the Piwik PRO brand, logo, or UI design. Out of scope: consent-banner UI, tag manager, cookie scanning, data activation/CRM integrations, multi-tenant billing, mobile SDKs, BigQuery/S3 exports.
Write a README covering setup via docker-compose with env vars, sample tracker snippet, API endpoint docs, and important limitations (single-region, approximate attribution, no sampling, max 30-day retention).