littlequicktest
测试包
Last updated 2 years ago by lighter_k .
GPL · Original npm · Tarball · package.json
$ cnpm install littlequicktest 
SYNC missed versions from official npm registry.

快应用埋点接口组件

安装

npm install --save-dev quickappstat

使用

import {sendTrackLog, sendClickLog} from '../utils/referrer_quickapp.js'

/**
 * 快应用流量统计接口
 * @param  {String} appid     快应用id
 * @param  {String} uid       用户id
 * @param  {String} _trackURL 页面基本参数 
 * "{'cate':'表现类别全路径','area':'表现地域全路径','pagetype':'页面类型,如list','page':'二级页面类型',
 * 'brand':'设备品牌。见Tips1','model':'设备型号。见Tips1','os':'操作系统:android。见Tips1','osVersion':'操作系统版本:7.1.2。见Tips1'}"
 * @param  {String} protocol  协议:http 或者 https。默认https
 * Tips:
 * 1. 设备信息
 * device.getInfo({
        success: function (ret) {
          console.log(`brand = ${ret.brand}`)
          console.log(`model = ${ret.model}`)
          console.log(`os = ${ret.osType}`)
          console.log(`osVersion = ${ret.osVersionName}`)
        }
      })
 */
sendTrackLog(appid, uid, _trackURL, protocol)

/**
 * 快应用点击统计接口
 * @param  {String} appid     快应用id
 * @param  {String} uid       用户id
 * @param  {String} _trackURL 页面基本参数,同sendTrackLog
 * @param  {String} clickTag  点击标记
 * @param  {String} protocol  协议:http 或者 https。默认https
 * Tips:
 * 同一页面上发生的点击,_trackURL变量须与流量日志中_trackURL相同
 */
sendClickLog(appid, uid, _trackURL, clickTag, protocol)

Current Tags

  • 1.1.0                                ...           latest (2 years ago)

9 Versions

  • 1.1.0                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 2
Dependencies (35)
Dev Dependencies (29)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |