{"repo":"aptabase/aptabase-maui","free":true,"listed":false,"github":"https://github.com/aptabase/aptabase-maui","clone":"git clone https://github.com/aptabase/aptabase-maui.git","description":"MAUI SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps","language":"C#","stars":16,"topics":["analytics","maui","privacy","net8","sdk"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"MAUI SDK for Aptabase Instrument your apps with Aptabase, an Open Source, Privacy-First and, Simple Analytics for Mobile, Desktop and, Web Apps. Install Start by adding the Aptabase NuGet package to your .csproj: Usage First, you need to get your App Key from Aptabase, you can find it in the Instructions menu on the left side menu. Change your MauiProgram.cs to add Aptabase to the build pipeline: The UseAptabase method will add the IAptabaseClient to your dependency injection container, allowing you to use it in your pages and view models. As an example, to track events in your MainPage , you first need to add it to the DI Container in MauiProgram.cs : And then inject and use it on your MainPage.xaml.cs : The TrackEvent method also supports custom properties: A few important notes: 1. The SDK will automatically enhance the event with some useful information, like the OS, the app version, and other things. 2. You're in control of what gets sent to Aptabase. This SDK does not automatically track any events, you need to call TrackEvent manually. - Because of this, it's generally recommended to at least track an event at startup 3. The TrackEvent function is a non-blocking operation as it runs in the background. 4. Only strings and numbers values are allowed on custom properties Error Tracking Error reporting is in beta. Reports appear on the Errors page of your Aptabase dashboard. Use TrackError to report errors you've caught and handled: For errors your app can't recover from, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/aptabase","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aptabase/aptabase-maui/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}