# @types/mta-h5-analysis

> TypeScript definitions for mta-h5-analysis

Latest version **2.0.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/mta-h5-analysis
pnpm add @types/mta-h5-analysis
yarn add @types/mta-h5-analysis
bun add @types/mta-h5-analysis
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2023-11-07 |
| First published | 2019-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51436 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/mta-h5-analysis
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mta-h5-analysis
- npm.io page: https://npm.io/package/@types/mta-h5-analysis

## Recent versions

- 2.0.3 (latest) — 2023-11-07
- 2.0.1 (ts3.6) — 2021-07-08
- 2.0.0 (ts2.0) — 2019-09-10
- 2.0.2 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mta-h5-analysis/index.d.ts)
````ts
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: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [dusk_](https://github.com/steady-join).

---
_Source: https://npm.io/package/@types/mta-h5-analysis · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
