Catalog npm
Back to packageRELEASE DETAILS

3.3.0

npm

456data-miniprogram

456数据 小程序数据采集 SDK(微信原生 / uniapp / taro / wepy)

456456数据analyticsminiprogramtarouniappwechatwepy埋点
Published24 Sept 2026
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

456data-miniprogram

456数据 小程序数据采集 SDK。完整文档:https://www.456.cn/docs/2

安装

npm install 456data-miniprogram

引入

SDK 会改写全局 App / Page / Component,务必在 App() 调用之前引入。

框架引入位置写法
微信原生小程序app.jsconst yhxwfx456 = require('456data-miniprogram')
uniappmain.jsimport yhxwfx456 from '456data-miniprogram/uniapp'
taroapp.jsimport yhxwfx456 from '456data-miniprogram/uniapp'
wepyapp.wpyimport yhxwfx456 from '456data-miniprogram/uniapp'

微信原生小程序安装后需在开发者工具中执行「工具 → 构建 npm」。

初始化

yhxwfx456.setPara({
  server_url: 'https://cdn.456.com/logcount.html', // 打点地址
  website: '1000000X',                             // 站点编号
  package: 'wx456.wxapp',                          // 应用包名
  version: '2.0',                                  // 应用版本号
  performance_percent: 0,
  logflag: false,
  clickflag: false,
  custom_page: []
});

用户属性

两个版本方法名不同,参数一致:

var user_arr = { 'userid': '321', 'username': 'Leo', '性别': '男' }; // userid、username 为保留字段

// 微信原生小程序
getApp().yhxwfx456.setUserSet(user_arr);

// uniapp / taro / wepy
getApp().yhxwfx456.setUserMsg(user_arr);

自定义事件、App 与 H5 打通等进阶用法见官方文档。

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-e7Ud+zzGB0UQo+C47Sihf3F8JyfYLRCKZIisXccvleGLwyqqomXAx2CMKrAfZ1pjXRpn5U+ai461nFNLmCPoaQ==",
  "shasum": "4e3cf9d9e08f439fdb34d1d5e9c27f8106f75766",
  "tarball": "https://registry.npmjs.org/456data-miniprogram/-/456data-miniprogram-3.3.0.tgz",
  "fileCount": 5,
  "unpackedSize": 131191,
  "signatures": [
    {
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
      "sig": "MEYCIQCyUmkmdKv2gQxyZ7jPxTxrZoAEk7S8/paGQaahHh7qiwIhAKOPaWhL3qG8TpQIrW5C7jfrJWqdqfhAhdMl6Dlo/Xso"
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:03 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:ca8edbf2756dbe3a2588b27a1192bf9b9ba7c4fa4ad79df52a8fc3e8db42280a

Other collected versions

View all collected versions →