Title: Integrate GA4 Google Analytics
Author: Obadiah
Published: <strong>2023 年 4 月 19 日</strong>
Last modified: 2024 年 6 月 10 日

---

搜索插件

![](https://ps.w.org/integrate-ga4-google-analytics/assets/banner-772x250.jpg?rev
=2901009)

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

![](https://ps.w.org/integrate-ga4-google-analytics/assets/icon-256x256.png?rev=
2901009)

# Integrate GA4 Google Analytics

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

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

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

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

## 描述

The “Integrate GA4 Google Analytics” plugin is a simple, lightweight, and fast plugin
that enables Google Analytics tracking for your WordPress site. It supports Google
Analytics 4, and allows you to easily integrate the latest Google Analytics code
into your site properly.

### Simple to Use

To use the plugin, simply enter your GA4 Measurement ID into the plugin settings
page. Press the “Save Changes” button. Once the GA4 Measurement ID is entered, the
plugin will insert the appropriate script into your site, allowing Google Analytics
to access user activity on the site. It’s important to note that it can take up 
to 24-48 hours after adding your GA4 ID before any analytical data appears in your
Google Analytics account.

To disable tracking for User roles, select the roles you wish to disable. Press 
the “Save Changes” button.

### Automatic Installation

 * Login to your WordPress Dashboard.
 * Visit Plugins > Add New.
 * Search for Integrate GA4 Google Analytics.
 * Install and activate the Integrate GA4 Google Analytics plugin.

### Manual installation

 * Upload the entire integrate-ga4-google-analytics folder to the /wp-content/plugins/
   directory.
 * Visit Plugins.
 * Activate the Integrate GA4 Google Analytics plugin.

### Other Projects

I also have other plugins that might interest you.

[Super Custom Login](https://wordpress.org/plugins/super-custom-login/)

The Super Custom Login plugin offers customization options for the WordPress login
screen, including the ability to replace the default WordPress logo with a custom
logo that links to the user’s homepage. There are custom color settings for all 
elements on login page. Additionally, the plugin improves login security by removing
error messages upon failed login attempts.

## 屏幕截图

 * [[

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.3.2

 * Update Tested up to tag to 6.5.4. 06/10/2024

#### 1.3.1

 * Update Tested up to tag to 6.2.4. 06/10/2024

#### 1.3

 * Update tags and description in readme file. 06/09/2024
 * Update plugin short description. 06/09/2024
 * Make the plugin translation ready by using the __() and _e() functions for all
   text strings. 06/02/2024
 * Update validation callback signature: The validate_callback iga_validate_gtag_id
   now accepts the input value and an array of additional arguments. 06/01/2024
 * Add feature to disable tracking for user roles. 05/23/2024
 * Add asynchronous loading of GA4 Script to improve page load performance. 05/17/
   2024

#### 1.2

 * Update tags and description in readme file. 06/09/2023
 * Update plugin short description. 06/09/2023
 * Add instructions on how to find GA4 Measurement ID. 06/09/2023

#### 1.1

 * Update readme file. 04/13/2023
 * Update screenshot image. 04/13/2023
 * Retain plugin data upon Plugin deactivation. Remove plugin data upon Plugin uninstall.
   04/13/2023
 * Escape all output. 04/13/2023
 * Use wp_add_inline_script to insert GA4 tracking script. 04/12/2023
 * Use wp_enqueue_script to link to Google Tag Manager. 04/12/2023
 * Validate the input. If empty, give error. If formatted incorrectly, give error.
   04/12/2023
 * Reformat the code to be easier to read. 04/12/2023
 * Remove redundancies. 04/11/2023
 * Sanitize input. 04/11/2023
 * Submit plugin to official WordPress plugin directory. 04/07/2023
 * Create banner. Create icon. 04/07/2023
 * Test plugin with WordPress 6.2. 04/07/2023
 * Update readme file. 04/07/2023
 * Update plugin description. 04/07/2023
 * Add section header and additional instructions. 04/07/2023
 * Define settings page with one input, type text for the GA4 ID. Also a Save Changes
   button. 04/07/2023
 * Register settings and sanitize the inputs for security. 04/07/2023
 * Add link to the settings page in the plugin list. 04/07/2023
 * Add custom settings page to WordPress Dashboard under the Settings submenu. 04/
   07/2023
 * Add code to abort if the plugin file is called directly, as a security measure.
   04/07/2023

#### 1.0

 * Update plugin description. 05/29/2017
 * Create readme file. 05/29/2017
 * Create plugin file. Requires the user to manually install and manually add tracking
   script to plugin file. 05/29/2017

## 额外信息

 *  版本 **1.3.2**
 *  最后更新：**2 年前**
 *  活跃安装数量 **600+**
 *  已测试的最高版本为 **6.5.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/integrate-ga4-google-analytics/)
 * 标签
 * [analytics](https://cn.wordpress.org/plugins/tags/analytics/)[ga4](https://cn.wordpress.org/plugins/tags/ga4/)
   [google analytics plugin](https://cn.wordpress.org/plugins/tags/google-analytics-plugin/)
   [tracking](https://cn.wordpress.org/plugins/tags/tracking/)
 *  [高级视图](https://cn.wordpress.org/plugins/integrate-ga4-google-analytics/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://middleearmedia.com/)