{"id":28907844,"url":"https://github.com/solvro/lib-mobile-flutter-umami","last_synced_at":"2026-05-18T06:13:50.368Z","repository":{"id":298969677,"uuid":"1001704265","full_name":"Solvro/lib-mobile-flutter-umami","owner":"Solvro","description":"Simple Umami Analytics Flutter SDK made by Solvro Team","archived":false,"fork":false,"pushed_at":"2025-06-14T14:46:13.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-21T16:06:17.741Z","etag":null,"topics":["analytics","flutter","solvro","umami","umami-analytics"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_umami","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Solvro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-13T21:16:09.000Z","updated_at":"2025-06-16T21:57:09.000Z","dependencies_parsed_at":"2025-06-13T22:31:32.406Z","dependency_job_id":"9e087fb5-76e8-4af6-a8d5-310c59fc841e","html_url":"https://github.com/Solvro/lib-mobile-flutter-umami","commit_stats":null,"previous_names":["solvro/lib-mobile-flutter-umami"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Solvro/lib-mobile-flutter-umami","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvro%2Flib-mobile-flutter-umami","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvro%2Flib-mobile-flutter-umami/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvro%2Flib-mobile-flutter-umami/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvro%2Flib-mobile-flutter-umami/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Solvro","download_url":"https://codeload.github.com/Solvro/lib-mobile-flutter-umami/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvro%2Flib-mobile-flutter-umami/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261153586,"owners_count":23116916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","flutter","solvro","umami","umami-analytics"],"created_at":"2025-06-21T16:06:19.199Z","updated_at":"2026-05-18T06:13:50.328Z","avatar_url":"https://github.com/Solvro.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter Umami\n\n[![License: MIT][license_badge]][license_link]\n\nSimple Umami Analytics Flutter SDK made by [Solvro Team][solvro_link]\n\n## Installation 💻\n\n**❗ In order to start using Flutter Umami you must have the [Flutter SDK][flutter_install_link] installed on your machine.**\n\nInstall via `flutter pub add`:\n\n```sh\nflutter pub add flutter_umami\n```\n\n## Usage 🚀\n\n### Initialize Flutter Umami\n\nFirst, create an instance of `FlutterUmami` by calling the `create` method:\n\n```dart\nWidgetsFlutterBinding.ensureInitialized();\nfinal umami = await FlutterUmami.create(\n  url: 'https://my.analytics.server', // Your Umami instance URL\n  id: '9f65dd3f-f2be-4b27-8b58-d76f83510beb', // Your site ID from Umami dashboard\n  hostname: 'com.my.app', // Your app's hostname\n  locale: 'en-US', // User's locale or get from the context or somewhere\n  isEnabled: kIsRelease // recommended\n);\n```\n\n### Track Screen Views\n\nYou can track screen views in two ways:\n\n#### Using the `UmamiNavigationObserver` (recommended)\n\n```dart\nMaterialApp(\n  navigatorObservers: [\n    UmamiNavigationObserver(umami),\n  ],\n  // ... rest of your app configuration\n);\n```\n\n#### Manually tracking screen views (usually not recommended)\n\n```dart\nawait umami.trackScreenView(\n  'home_screen',\n  referrer: 'previous_screen', // Optional\n);\n```\n\n### Track Events\n\nTrack custom events with optional values:\n\n```dart\nawait umami.trackEvent(\n  eventType: 'button_click',\n  eventValue: 'sign_up', // Optional\n  screenName: 'home_screen', // Optional\n);\n```\n\n## Credits\n\nBased on some discontinued package: [https://pub.dev/packages/umami_tracker](https://pub.dev/packages/umami_tracker)\n\n---\n\n[flutter_install_link]: https://docs.flutter.dev/get-started/install\n[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[license_link]: https://opensource.org/licenses/MIT\n[solvro_link]: https://solvro.pwr.edu.pl\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolvro%2Flib-mobile-flutter-umami","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolvro%2Flib-mobile-flutter-umami","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolvro%2Flib-mobile-flutter-umami/lists"}