2.0.3 • Published 6 months ago

@types/mta-h5-analysis v2.0.3

Weekly downloads
149
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/mta-h5-analysis

Summary

This package contains type definitions for mta-h5-analysis (https://www.npmjs.com/package/mta-h5-analysis).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mta-h5-analysis.

index.d.ts

// Type definitions for mta-h5-analysis 2.0
// Project: https://www.npmjs.com/package/mta-h5-analysis
// Definitions by: dusk_ <https://github.com/steady-join>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export const version: string;
export const conf: {
    autoReport: 0 | 1;
    cid: string;
    ignoreParams: string[];
    performanceMonitor: 0 | 1;
    senseHash: 0 | 1;
    senseQuery: 0 | 1;
    sid: string;
    userReport: 0 | 1;
};

export function init(params: {
    sid: string; // 必填,统计用的appid
    cid?: string | undefined; // 如果开启自定义事件,此项目为必填,否则不填
    autoReport?: 0 | 1 | undefined; // 是否开启自动上报(1:init完成则上报一次,0:使用pgv方法才上报)
    senseHash?: 0 | 1 | undefined; // hash锚点是否进入url统计
    senseQuery?: 0 | 1 | undefined; // url参数是否进入url统计
    performanceMonitor?: 0 | 1 | undefined; // 是否开启性能监控
    ignoreParams?: string | undefined; // 开启url参数上报时,可忽略部分参数拼接上报
}): void;

export function pgv(): void;

export function clickStat(
    type: string,
    params?: {
        [key: string]: any;
    },
): void;

export function clickShare(channelId: string): void;

Additional Details

  • Last updated: Thu, 08 Jul 2021 18:51:03 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by dusk_.

2.0.3

6 months ago

2.0.2

7 months ago

2.0.1

3 years ago

2.0.0

5 years ago