1.0.39 • Published 6 months ago

analytics-eu v1.0.39

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

安装

npm

npm install @blazes/analytics

yarn

yarn add @blazes/analytics

API

示例化参数

属性说明必填默认类型
bussiness平台名-string
batch_send批量发送时候的事件间隔和 ajax 超时事件{sendinterval: 30 1000, datasendtimeout: 8 1000}{send_interval?: number; datasend_timeout?: number}
server_url上报地址https://logstash-backup.pandadagames.com/apis/v1/web/analyticsstring
show_log是否打印上报的参数boolean
| appId数仓需要的业务名否 | ninja3string

方法

名称说明入参回参
track上报埋点eventName: string; attributes: Record<string, any>void

例子

const trackService = new TrackService({
  bussiness: "mycard",
  showLog: true,
});

trackService.track("BuyProduct", {
    ProductName: "大礼包",
});
1.0.39

6 months ago

1.0.38

6 months ago

1.0.37

7 months ago

1.0.36

7 months ago

1.0.35

7 months ago

1.0.34

7 months ago

1.0.33

7 months ago

1.0.32

7 months ago

1.0.31

7 months ago

1.0.30

7 months ago

1.0.29

7 months ago

1.0.28

7 months ago

1.0.27

7 months ago

1.0.26

7 months ago

1.0.25

7 months ago

1.0.24

7 months ago

1.0.23

7 months ago

1.0.22

7 months ago

1.0.21

7 months ago

1.0.20

7 months ago

1.0.19

7 months ago

1.0.18

7 months ago

1.0.17

7 months ago

1.0.16

7 months ago

1.0.15

7 months ago

1.0.14

7 months ago

1.0.13

7 months ago