2
2
3
3
# MAUI SDK for Aptabase
4
4
5
- Instrument your apps with Aptabase, an Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps.
5
+ Instrument your apps with Aptabase, an Open Source, Privacy-First and, Simple Analytics for Mobile, Desktop and, Web Apps.
6
6
7
7
## Install
8
8
@@ -14,7 +14,7 @@ Start by adding the Aptabase NuGet package to your .csproj:
14
14
15
15
## Usage
16
16
17
- First you need to get your ` App Key ` from Aptabase, you can find it in the ` Instructions ` menu on the left side menu.
17
+ First, you need to get your ` App Key ` from Aptabase, you can find it in the ` Instructions ` menu on the left side menu.
18
18
19
19
Change your ` MauiProgram.cs ` to add Aptabase to the build pipeline:
20
20
@@ -63,9 +63,9 @@ public partial class MainPage : ContentPage
63
63
The ` TrackEvent ` method also supports custom properties:
64
64
65
65
``` csharp
66
- _aptabase .TrackEvent (" connect_click " ); // An event with no properties
67
- _aptabase .TrackEvent (" play_music " , new () { // An event with a custom property
68
- { " name" , " Here comes the sun " }
66
+ _aptabase .TrackEvent (" app_started " ); // An event with no properties
67
+ _aptabase .TrackEvent (" screen_view " , new () { // An event with a custom property
68
+ { " name" , Settings " }
69
69
});
70
70
```
71
71
@@ -74,5 +74,5 @@ A few important notes:
74
74
1 . The SDK will automatically enhance the event with some useful information , like the OS , the app version , and other things .
75
75
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.
76
76
- Because of this , it 's generally recommended to at least track an event at startup
77
- 3 . The ` TrackEvent ` function is a non-blocking operation as it runs on the background.
77
+ 3 . The `TrackEvent ` function is a non -blocking operation as it runs in the background .
78
78
4. Only strings and numbers values are allowed on custom properties
0 commit comments