Options
All
  • Public
  • Public/Protected
  • All
Menu

所有行为追踪事件的集合

export
remarks

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

interface

ActionView

Hierarchy

  • ActionView

Index

Properties

answerview

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

答题结果

deprecated

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

description

完成问答时抛出

Type declaration

  • remark: string

    事件主题,区分不同答题

  • right: number

    正确个数

  • wrong: number

    错误个数

clickview

clickview: { remark: string; to: string }

点击

description

点击按钮时抛出

Type declaration

  • remark: string

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

  • to: string

    点击后去往的链接

collectview

collectview: { name: string; url: string }

收藏

description

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

Type declaration

  • name: string

    收藏的物料名称

  • url: string

    查看收藏物料的链接

documentview

documentview: { name: string; source: string }

文档预览

description

浏览文档时抛出

Type declaration

  • name: string

    文档名称

  • source: string

    文档源链接

downloadview

downloadview: { name: string; source: string }

下载资源

description

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

Type declaration

  • name: string

    资料名称

  • source: string

likeview

likeview: { active: boolean; remark: string }

点赞

deprecated

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

description

点赞某样产品时抛出

Type declaration

  • active: boolean

    点赞/取消点赞

  • remark: string

    区分不同主题的点赞

mailDoc

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

发送文档至邮箱

description

发送文档至邮箱后抛出

Type declaration

  • mail: string

    邮箱

  • name: string

    文档名称

  • source: string

    文档源链接

pageview

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

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

recommendview: { recommenderOpenid: string; remark: string }

推荐

description

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

Type declaration

  • recommenderOpenid: string

    推荐人(A)的openid

  • remark: string

    区分不同主题的推荐

scoreview

scoreview: { remark: string; score: number }

互动分数

deprecated

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

description

需要记录分数时抛出

Type declaration

  • remark: string

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

  • score: number

    分数

searchview

searchview: { searchFor: string; searchVal: string }

搜索内容

description

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

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

Type declaration

  • searchFor: string

    搜索范围(一般是placeholder)

  • searchVal: string

    查询值

shareview

shareview: { remark?: string }

分享

description

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

Type declaration

  • Optional remark?: string

    备注

signInview

signInview: { remark: string }

签到

description

成功签到时抛出

Type declaration

  • remark: string

    事件主题,区分不同签到

uncollectview

uncollectview: { name: string; url: string }

取消收藏

description

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

Type declaration

  • name: string

    收藏的物料名称

  • url: string

    查看收藏物料的链接

videorecord

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

观看视频记录

description

用作视频观看时长的统计

Type declaration

  • duration: number

    观看时长

  • name: string
  • source: string

    视频源链接

videoview

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

webinarview: { name: string; relatedId: string }

观看直播

description

观看直播时抛出

Type declaration

  • name: string

    直播名称

  • relatedId: string

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

Generated using TypeDoc