3.9.0 • Published 10 months ago

@leather.io/analytics v3.9.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@leather/analytics

This package provides a client for sending analytics events to various analytics services. Currently, it supports Segment but could be extended to support other services in the future.

Installation

pnpm install @leather/analytics

Usage

Before making any analytics calls, you must configure the analytics client with your write key.

import { AnalyticsClientType, configureAnalyticsClient } from '@leather.io/analytics';

export const analytics: AnalyticsClientType = configureAnalyticsClient({
  client: segmentClient,
  defaultProperties: {
    platform: 'mobile',
  },
});

Now you can make analytics calls with your configured client.

import { analytics } from 'path/to/analytics';

analytics.track('My Event', {
  property: 'value',
});

Development

pnpm build

or

pnpm build:watch
3.9.0

10 months ago

2.0.1

1 year ago

2.0.0

1 year ago

3.4.0

1 year ago

3.3.1

1 year ago

3.2.2

1 year ago

3.1.3

1 year ago

3.0.4

1 year ago

3.3.0

1 year ago

3.2.1

1 year ago

3.1.2

1 year ago

3.0.3

1 year ago

3.2.0

1 year ago

3.1.1

1 year ago

3.0.2

1 year ago

3.1.0

1 year ago

3.0.1

1 year ago

3.8.0

10 months ago

3.7.1

10 months ago

3.6.2

10 months ago

3.7.0

10 months ago

3.6.1

11 months ago

3.6.0

11 months ago

3.5.1

11 months ago

3.4.2

1 year ago

3.3.3

1 year ago

3.2.4

1 year ago

3.5.0

11 months ago

3.4.1

1 year ago

3.3.2

1 year ago

3.2.3

1 year ago

3.0.0

1 year ago

1.0.0

1 year ago

0.0.1

1 year ago