{"repo":"aptabase/tauri-plugin-aptabase","free":true,"listed":false,"github":"https://github.com/aptabase/tauri-plugin-aptabase","clone":"git clone https://github.com/aptabase/tauri-plugin-aptabase.git","description":"Tauri Plugin for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps","language":"Rust","stars":152,"topics":["analytics","tauri","aptabase","privacy"],"license":"MIT","category":"analytics","readme_excerpt":"Tauri Plugin for Aptabase This plugin allows you to instrument your app with events that can be analyzed in Aptabase, an Open Source, Privacy-First, and Simple Analytics for Mobile, Desktop, and Web Apps. Install Install the Core plugin by adding the following to your Cargo.toml file: src-tauri/Cargo.toml You can install the JavaScript Guest bindings using your preferred JavaScript package manager Usage First, you need to get your App Key from Aptabase, you can find it in the Instructions menu on the left side menu. Then register the plugin with Tauri: src-tauri/src/main.rs And finally add aptabase:allow-track-event to your list Access Control List. You can then start sending events from Rust by importing the tauri plugin aptabase::EventTracker trait and calling the track event method on App , AppHandle or Window . As an example, you can add app started and app exited events like this: The trackEvent function is also available through the JavaScript guest bindings: A few important notes: 1. The plugin 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 plugin 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. You do not need to await for the trackEvent function, it'll run in the background. 3. Only strings and numbers values are allowed on custo","default_branch":null,"files":null,"tree":[],"storefront":"/r/aptabase","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aptabase/tauri-plugin-aptabase/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."}