@aidc/log
TypeScript icon, indicating that this package has built-in type declarations

0.1.62 • Public • Published

前端日志(埋点 + 监控)

快速开始

import { initLog, EventType } from '@aidc/log';

// 初始化
initLog({
  // AEM 配置项
  aesConfig: {
    autoPV: true,
  },
  // GTM 配置项 (todo)
  gtmConfig: {
    autoPV: true,
  },
});

// 发送事件
sendEvent('click-xxx', {
  type: EventType.click,
  data: {
    // 自定义字段
  },
});

相关文档

AEM(阿里内部)

GTM

  • todo

Readme

Keywords

none

Package Sidebar

Install

npm i @aidc/log

Weekly Downloads

0

Version

0.1.62

License

none

Unpacked Size

162 kB

Total Files

8

Last publish

Collaborators

  • akirakai
  • crypto-bear