telemetric 0.0.6
telemetric: ^0.0.6 copied to clipboard
The official Flutter Package for Telemetric. Gather insights, send events and track your revenue.
Official Telemetric Flutter & Dart Package #
Installation #
Add the following dependency to your pubspec.yaml file:
dependencies:
telemetric: ^0.0.6
Then, run flutter pub get to install the package.
OR run this in your terminal
flutter pub add telemetric
Usage #
Initialization #
Initialize the Telemetric package with your project ID. This should be done once, typically in the main method of your app.
import 'package:telemetric/telemetric.dart';
void main() async {
// This must be awaited as it's a future
await Telemetric.init('your_project_id');
runApp(MyApp());
}
Event Tracking #
You can use emojis here and white space. E.g "App Launched ✨"
Telemetric.event('event_name');
Revenue Tracking #
Track revenue by calling the revenue method with the amount as a double. E.g 0.99$ = 0.99, 5.49$ = 5.49
Telemetric.revenue(9.99);
Support #
If you have any questions or need help, feel free to open an issue on GitHub, contact team@untitledapps.net or join the X Community