承接 automattic/jetpack-a8c-mc-stats 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

automattic/jetpack-a8c-mc-stats

最新稳定版本:v3.0.5

Composer 安装命令:

composer require automattic/jetpack-a8c-mc-stats

包简介

Used to record internal usage stats for Automattic. Not visible to site owners.

README 文档

README

Used to record internal usage stats for Automattic. Not visible to site owners.

Usage

$stats = new Automattic\Jetpack\A8c_Mc_Stats();

$stats->add( 'group', 'name' );

$stats->do_stats();

// or

$stats->do_server_side_stats();

Create an instance of the class and use the add() method to store stats that will be processed later with do_stats() or do_server_side_stats();

do_stats() will output one img tag with the tracking gif for each group stored using add().

do_server_side_stats() will directly ping the server, with no output, for each group stored using add().

Options

By default, this uses b.gif, which is a transparent pixel. If you want to use a tiny little smiley icon instead, initialize the class with false.

$stats = new Automattic\Jetpack\A8c_Mc_Stats( false );

or set the property at any time:

$stats->use_transparent_pixel = false;

Using this package in your WordPress plugin

If you plan on using this package in your WordPress plugin, we would recommend that you use Jetpack Autoloader as your autoloader. This will allow for maximum interoperability with other plugins that use this package as well.

Security

Need to report a security vulnerability? Go to https://automattic.com/security/ or directly to our security bug bounty site https://hackerone.com/automattic.

License

jetpack-a8c-mc-stats is licensed under GNU General Public License v2 (or later)

统计信息

  • 总下载量: 3.3M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-01-04