Title: Tiny gtag.js Analytics
Author: Roy Orbitson
Published: <strong>2018 年 11 月 22 日</strong>
Last modified: 2025 年 10 月 29 日

---

搜索插件

![](https://ps.w.org/tiny-gtag-js-analytics/assets/icon-256x256.png?rev=2178931)

# Tiny gtag.js Analytics

 作者：[Roy Orbitson](https://profiles.wordpress.org/lev0/)

[下载](https://downloads.wordpress.org/plugin/tiny-gtag-js-analytics.3.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/tiny-gtag-js-analytics/#description)
 * [评价](https://cn.wordpress.org/plugins/tiny-gtag-js-analytics/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/tiny-gtag-js-analytics/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/tiny-gtag-js-analytics/#developers)

 [支持](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/)

## 描述

A simple, light, ad-free plugin to enable Google’s global site tag. This enables
analytics and conversion tracking via **gtag.js** on your WordPress site. You can
customise it by adding extra JavaScript, and further extend the plugin’s functionality
using the provided `tiny_gtag_js_analytics_output` hook.

## 安装

 1. Upload the entire, extracted plugin directory to the `wp-content/plugins/` directory,
    or install the plugin through the WordPress Plugins screen directly.
 2. Activate the plugin through the Plugins screen.
 3. Go to _Settings > gtag.js_, add your Analyics and/or AdWords IDs, and save.
 4. Clear caches of any optimisation plugins, or CDNs you use on your site, if any.

## 评价

![](https://secure.gravatar.com/avatar/4c76d9f6d43ca0d7f8b1f74e5f9574b3068c222281ed6e56a679049c7e7f37e0?
s=60&d=retro&r=g)

### 󠀁[awesome，helped me a lot](https://wordpress.org/support/topic/awesome%ef%bc%8chelped-me-a-lot/)󠁿

 [zengxiaoluan](https://profiles.wordpress.org/zengxiaoluan/) 2023 年 6 月 14 日

That plugin has saved my life

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/)

## 贡献者及开发者

「Tiny gtag.js Analytics」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Roy Orbitson ](https://profiles.wordpress.org/lev0/)

[帮助将「Tiny gtag.js Analytics」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/tiny-gtag-js-analytics)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/tiny-gtag-js-analytics/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/tiny-gtag-js-analytics/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/tiny-gtag-js-analytics/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/tiny-gtag-js-analytics/)。

## 更新日志

#### 3.1.0

 * Added option to limit tracking to visitors and selected roles.
 * Added option to delay main script output until `</body>`.
 * Higher min. required versions of WP and PHP.

#### 3.0.1

 * Fixed crash on first settings save.

#### 3.0.0

 * Support for GA4 IDs.
 * Changed inputs to `tiny_gtag_js_analytics_output` filter hook, update any integration
   accordingly. (Does not affect typical plugin usage.)

#### 2.0.0

 * Support for AdWords IDs.
 * Made tracking ID(s) available to other scripts via `tinyGtagJsOptions` global
   variable.
 * Link to settings from Plugins page.
 * Support output after `<body>` as recommended by Google.
 * Fixed filter hook.
 * Fixed i18n.

#### 1.0.1

 * Better form validation.

## 额外信息

 *  版本 **3.1.0**
 *  最后更新：**7 月前**
 *  活跃安装数量 **400+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.3 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/tiny-gtag-js-analytics/)
 * 标签
 * [analytics](https://cn.wordpress.org/plugins/tags/analytics/)[google](https://cn.wordpress.org/plugins/tags/google/)
 *  [高级视图](https://cn.wordpress.org/plugins/tiny-gtag-js-analytics/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/)

## 贡献者

 *   [ Roy Orbitson ](https://profiles.wordpress.org/lev0/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/)