3.4.17 • Published 11 months ago

@duicorn/nativescript-posthog v3.4.17

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 months ago

@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

11 months ago

3.4.15

11 months ago

3.4.16

11 months ago

3.4.17

11 months ago

3.4.4

11 months ago

3.4.3

12 months ago

3.4.2

12 months ago

3.4.10

11 months ago

3.4.11

11 months ago

3.4.12

11 months ago

3.4.13

11 months ago

3.4.8

11 months ago

3.4.7

11 months ago

3.4.6

11 months ago

3.4.5

11 months ago

3.4.9

11 months 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