@teamsparta/cross-platform-logger
TypeScript icon, indicating that this package has built-in type declarations

1.5.1 • Public • Published

사용법

import * as CPL from "@teamsparta/cross-platform-logger";

CPL.initCPLog(
  process.env.FLOUNDER_KEY,
  process.env.AMPLITUDE_KEY,
  process.env.HACKLE_SDK_KEY,
  !JSON.parse(process.env.IS_PROD)
);

로그 전송

CPL.sendCPLog(key, data, is_gtm = false);

노션 문서


Page Unload 시 데이터 잘 전송되었는지 확인하는 법:

  • 네트워크 탭에 a6wkbhd6x8 친 다음
  • PUT 요청 메서드에 status 200 확인

*mixpanel은 amplitude로 교체되었습니다.

Package Sidebar

Install

npm i @teamsparta/cross-platform-logger

Weekly Downloads

433

Version

1.5.1

License

MIT

Unpacked Size

42 kB

Total Files

29

Last publish

Collaborators

  • hysng
  • yoojinoh
  • dy.jeong
  • bangminseok
  • jung-eun
  • junan
  • jihee_park
  • sparta-sj
  • ganguklee
  • mj.jung
  • heo-wonyoung
  • eonthespartan
  • santoryu
  • seongtaek
  • jhyeon-kim
  • spartaheonil
  • hyunwooo
  • dh.lee
  • bknam-teamsparta