所有行为追踪事件的集合

Export

Remarks

title字段均为pageview的标题; 为方便统计 source字段均为固定链接,取源链接或者预览链接; 使用remark来区分同一微站下同种事件的不同主题,也为了语义化,方便进行数据分析; 注意事项见:https://www.tapd.cn/55958943/markdown_wikis/show/#1155958943001000377; ActionView

Hierarchy

  • ActionView

Properties

answerview: {
    remark: string;
    right: number;
    wrong: number;
}

答题结果

Deprecated

非标准事件,考虑使用别的方法代替

Description

完成问答时抛出

Type declaration

  • remark: string

    事件主题,区分不同答题

  • right: number

    正确个数

  • wrong: number

    错误个数

clickview: {
    remark: string;
    to: string;
}

点击

Description

点击按钮时抛出

Type declaration

  • remark: string

    事件主题,区分不同点击行为

  • to: string

    点击后去往的链接

collectview: {
    name: string;
    url: string;
}

收藏

Description

会员中心收藏时可抛出收藏事件

Type declaration

  • name: string

    收藏的物料名称

  • url: string

    查看收藏物料的链接

customrecord: {
    key?: string;
    remark?: string;
}

自定义事件

Description

非标准事件,可以抛出一些特殊的行为,通常用于与系统的某些模块作通信(eg.workflow事件)

Type declaration

  • Optional key?: string

    可用于区分事件

  • Optional remark?: string

    写明使用的场景

documentview: {
    name: string;
    source: string;
}

文档预览

Description

浏览文档时抛出

Type declaration

  • name: string

    文档名称

  • source: string

    文档源链接

downloadview: {
    name: string;
    source: string;
}

下载资源

Description

点击下载资源后抛出,一般用于文档下载

Type declaration

  • name: string

    资料名称

  • source: string
likeview: {
    active: boolean;
    remark: string;
}

点赞

Deprecated

使用会员的行为记录:https://www.tapd.cn/55958943/markdown_wikis/show/#1155958943001000566

Description

点赞某样产品时抛出

Type declaration

  • active: boolean

    点赞/取消点赞

  • remark: string

    区分不同主题的点赞

mailDoc: {
    mail: string;
    name: string;
    source: string;
}

发送文档至邮箱

Description

发送文档至邮箱后抛出

Type declaration

  • mail: string

    邮箱

  • name: string

    文档名称

  • source: string

    文档源链接

pageview: {
    productBu?: string;
    title: string;
}

页面统计

Description

在页面路径发生改变时抛出

Remaks

用于数据追踪,详细规范见:https://www.tapd.cn/55958943/markdown_wikis/show/#1155958943001000563

Type declaration

  • Optional productBu?: string

    统计的时候区分不同bu

  • title: string

    区分不同页面的追踪标题

pre-videoview: {
    currentTime: number;
    duration: number;
    event: string;
    name: string;
    source: string;
}

试看视频

Description

试看视频时抛出,供资源管理视频预览模块使用

Type declaration

  • currentTime: number

    对应event.currentTime 事件发生的时间

  • duration: number

    对应event.duration 视频时长

  • event: string

    对应event.type play/pause/ended

  • name: string
  • source: string

    视频源链接

recommendview: {
    recommenderOpenid: string;
    remark: string;
}

推荐

Deprecated

仅仅是作为分享打开页面的记录的话不太需要这个事件了,action事件都会带上originOpenId来记录分享人

Description

A将页面分享给B(链接中记录A的身份,一般为openid),B打开链接时抛出事件

Type declaration

  • recommenderOpenid: string

    推荐人(A)的openid

  • remark: string

    区分不同主题的推荐

scoreview: {
    remark: string;
    score: number;
}

互动分数

Deprecated

非标准事件,考虑使用别的方法代替

Description

需要记录分数时抛出

Type declaration

  • remark: string

    事件主题,区分不同主题的得分

  • score: number

    分数

searchview: {
    searchFor: string;
    searchVal: string;
}

搜索内容

Description

搜索内容时抛出,一般用于搜索组件

Example

//查询产品名称
//...查询逻辑
searchview({title:{pageTitle},searchVal:{查询的值},searchFor:'产品名称'})

Type declaration

  • searchFor: string

    查询范围

  • searchVal: string

    查询关键词

shareview: {
    remark?: string;
}

分享

Description

进行分享行为时抛出的事件

Type declaration

  • Optional remark?: string

    备注

signInview: {
    remark: string;
}

签到

Description

成功签到时抛出

Type declaration

  • remark: string

    事件主题,区分不同签到

uncollectview: {
    name: string;
    url: string;
}

取消收藏

Description

会员中心取消收藏时可抛出取消收藏事件

Type declaration

  • name: string

    收藏的物料名称

  • url: string

    查看收藏物料的链接

videorecord: {
    duration: number;
    name: string;
    source: string;
}

观看视频记录

Description

用作视频观看时长的统计

Type declaration

  • duration: number

    观看时长

  • name: string
  • source: string

    视频源链接

videoview: {
    currentTime: number;
    duration: number;
    event: string;
    name: string;
    source: string;
}

观看视频

Description

观看视频时抛出

Type declaration

  • currentTime: number

    对应event.currentTime 事件发生的时间

  • duration: number

    对应event.duration 视频时长

  • event: string

    对应event.type play/pause/ended

  • name: string
  • source: string

    视频源链接

webinarview: {
    name: string;
    relatedId: string;
}

观看直播

Description

观看直播时抛出

Type declaration

  • name: string

    直播名称

  • relatedId: string

    相关直播的id,从后台获取

Generated using TypeDoc