Skip to content
AnalyticsService

服务 / AnalyticsService

AnalyticsService Class

分析服务

Table of contents

Methods

googleEventTracking(eventName: string, eventParams?: Object): void
埋点
googleInit(mId: string): void
谷歌分析工具 (Initialize Google Analytics client)

Methods

googleEventTracking

Static googleEventTracking(eventName, eventParams?): void

埋点

Parameters

eventName string埋点名 range: 不做限制,合理即可
eventParams? Object埋点参数 default:null range: 不做限制,合理即可

googleInit

Static googleInit(mId): void

谷歌分析工具 (Initialize Google Analytics client)

Parameters

mId string谷歌分析 ID (Google Analytics measurement ID) range:字符串长度谷歌注册的账号 ID 而定