oli217/enhanced-analytics — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Statamic analytics addon that site owners can install and use without needing Google Analytics or any outside dashboard. It should automatically track page views, visitors, sessions, referrers, devices, browsers, entry pages, exit pages, bounce rate, and basic user flow.

I want a clean control panel dashboard under Tools where admins can see traffic for the last 24 hours, 7 days, 30 days, or a custom range. Include charts, comparison to the previous period, dark mode support, automatic refresh, and a CSV export.

Please include IP based country and city lookup with caching and rate limiting, but make it optional. Add privacy controls like excluded paths, excluded IPs, bot filtering, whether to track logged in users, and a consent banner that can be turned on or off. Visitors should be able to accept, decline, or customize geolocation tracking.

Make sure it processes data efficiently on a schedule, supports manual processing with an artisan command, cleans up old cached data, includes migrations, config publishing, views, routes, and tests.

Want more depth? Deep Reverse