You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> This feature is disabled by default. To enable it, you need to pass the `enableWeb` option when initializing the SDK.
29
+
30
+
```js
31
+
Aptabase.init("<YOUR_APP_KEY>", {
32
+
enableWeb:true,
33
+
appVersion:"1.0.0", // required on web — no native module provides it
34
+
});
35
+
```
36
+
37
+
When enabled, the SDK will track events in web environments using the same behavior as the web SDKs. Which means that events will be sent immediately to the `/event` endpoint instead of grouped to the `/events` endpoint.
38
+
23
39
## Usage
24
40
25
41
First, you need to get your `App Key` from Aptabase, you can find it in the `Instructions` menu on the left side menu.
@@ -64,7 +80,9 @@ export function Counter() {
64
80
);
65
81
}
66
82
```
67
-
To disable tracking events, you can call the `dispose` function. This will stop and deinitalize the SDK.
83
+
84
+
To disable tracking events, you can call the `dispose` function. This will stop and deinitialize the SDK.
0 commit comments