Title: Technicality Google Analytics
Author: jefftrotman
Published: <strong>2019 年 6 月 15 日</strong>
Last modified: 2021 年 5 月 7 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/technicality-google-analytics/assets/icon-128x128.jpg?rev=2106527)

# Technicality Google Analytics

 作者：[jefftrotman](https://profiles.wordpress.org/jefftrotman/)

[下载](https://downloads.wordpress.org/plugin/technicality-google-analytics.zip)

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

 [支持](https://wordpress.org/support/plugin/technicality-google-analytics/)

## 描述

This is a very simple WordPress plugin that adds the code needed for Google Analytics
to your page. You just need to install the plugin, activate it, and enter your Tracking
ID.

Technical Details (in case you are curious, the plugin takes care of this for you)

If your Google Analytics Tracking ID is UA-XXXXXXXX-1, this code needs to be added
to your page headers for tracking to occur:

 window.dataLayer = window.dataLayer || [];
 function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());

 gtag(‘config’, ‘UA-XXXXXXXX-1’);

The plugin adds a field to the General Settings page for you to enter your Tracking
ID. Activate the plugin, enter your Tracking ID – that’s all you have to do. The
code above (with your Tracking ID) will automatically be inserted into the header
of each page your readers view.

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/technicality-google-analytics`
    directory, or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Use the Settings->General screen to enter your Google Tracking ID.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Technicality Google Analytics」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ jefftrotman ](https://profiles.wordpress.org/jefftrotman/)

[帮助将「Technicality Google Analytics」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/technicality-google-analytics)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.2

 * Tested with WordPress 5.7.1. No code changes.

#### 1.0

 * Initial version.

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**5 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.6 或更高版本 **
 *  已测试的最高版本为 **5.7.15**
 *  PHP 版本 ** 5.2.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/technicality-google-analytics/)
 * 标签
 * [google analytics](https://cn.wordpress.org/plugins/tags/google-analytics/)
 *  [高级视图](https://cn.wordpress.org/plugins/technicality-google-analytics/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ jefftrotman ](https://profiles.wordpress.org/jefftrotman/)

## 支持

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

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