import 'package:flutter_estatisticas/umami_service.dart'; import 'package:flutter_estatisticas/umami_navigation_observer.dart'; /// Umami analytics singleton. Configured once at app startup. /// /// Reuses the same `website` ID as the web app (re-quest.com) so all traffic /// (web + mobile) aggregates under one dashboard. `hostname` differentiates /// mobile vs. web inside Umami. class UmamiAnalytics { UmamiAnalytics._(); static const _endpoint = 'https://analytics.superlabs.co'; // Mobile-specific Umami website (separate from web) so traffic can be // analyzed independently. static const _websiteId = '3b292b24-a48e-41e7-a0a0-012515ed2653'; static const _hostname = 're-quest.app'; static final UmamiService service = UmamiService( endpoint: _endpoint, website: _websiteId, hostname: _hostname, ); /// Navigator observer that auto-tracks screen transitions in GoRouter. static final UmamiNavigationObserver navigationObserver = UmamiNavigationObserver(service); }