@1d/analytics
TypeScript icon, indicating that this package has built-in type declarations

3.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @1d/analytics

Weekly Downloads

3

Version

3.0.4

License

MIT

Unpacked Size

12.1 kB

Total Files

11

Last publish

Collaborators

  • lowg6
  • sasurau4
  • naturalclar
  • kangyoosam