3.0.4 • Published 1 year ago

@1d/analytics v3.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

1D-Analytics

1D プロダクトの Analytics を行うラッパーです。

Install

yarn add @1d/analytics

Usage

import { Analytics } from "@1d/analytics";
import { amplitudeApiKey } from "../config/consts";

const analytics = new Analytics(amplitudeApiKey);

export const { identify, track, trackScreenView } = analytics;

identify("dummyUserHash", {
  // Any properties you want
  occupation: dummyOccupation,
  email: dummyEmail,
  os: Platform.OS,
})

track("yourEvent", {
  // Any properties you want
  isLikeTea: true,
  isLikeCoffee: true
})

trackScreenView("prevScreen", "currentScreen", {
  // Any properties you want
  postHash: "dummyPostHash"
})

How to release

This package is automatically released via GitHub Actions after PR is merged into master.

All you need is just to modify the version property in package.json when you submit PR.

3.0.4

1 year ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

3 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago