3.4.17 • Published 1 year ago
@duicorn/nativescript-posthog v3.4.17
@duicorn/nativescript-posthog
npm install @duicorn/nativescript-posthog
Usage
// posthog.ts
import { PostHog } from "@duicorn/nativescript-posthog"
export const posthog = new PostHog('<ph_project_api_key>', {
// usually 'https://app.posthog.com' or 'https://eu.posthog.com'
host: '<ph_instance_address>',
autocapture: false
})
import { posthog } from 'posthog.ts';
posthog.capture('something clicked');
posthog.identify({
userProperties: { email: "mail@address.com" }
});
posthog.isFeatureEnabled('myfeature');
Autocapture
This plugin implements a simple auto-capture feature for NativeScript apps. To enable it set up the PostHog object with autocapture: true
.
To opt out tap-elements you can add the attribute posthogAutoCapture="false"
to that element
3.4.14
1 year ago
3.4.15
1 year ago
3.4.16
1 year ago
3.4.17
1 year ago
3.4.4
1 year ago
3.4.3
1 year ago
3.4.2
1 year ago
3.4.10
1 year ago
3.4.11
1 year ago
3.4.12
1 year ago
3.4.13
1 year ago
3.4.8
1 year ago
3.4.7
1 year ago
3.4.6
1 year ago
3.4.5
1 year ago
3.4.9
1 year ago
0.2.2
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.1
2 years ago