Linux 软件免费装
Banner图

Lightweight Google Analytics

开发者 someguy9
更新时间 2026年1月18日 11:16
捐献地址: 去捐款
PHP版本: 7.0 及以上
WordPress版本: 6.9
版权: GPLv3
版权网址: 版权信息

标签

Google Analytics GA4 Analytics GDPR Consent Mode

下载

1.4.0 1.4.2 1.4.1 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.0.0 1.3.0 1.4.3 1.5.0

详情介绍:

This simple plugin adds Google Analytics 4 (GA4) to your WordPress site using your Measurement ID. Additional features include the ability to change the tracking code position, disabling display features, anonymize IP, and excluding roles from tracking. Note: Universal Analytics (UA-) was discontinued by Google on July 1, 2023. This plugin still supports UA tracking IDs for backwards compatibility, but we recommend migrating to Google Analytics 4 (G-XXXXXXXX) for active tracking. Features This plugin uses Google Analytics 4 (gtag.js) tracking code by default. Universal Analytics (analytics.js) is still supported for backwards compatibility. It does not include any built in reporting — to view your site statistics, visit Google Analytics after installing.

安装:

To install this plugin:
  1. Download the plugin
  2. Upload the plugin to the wp-content/plugins directory,
  3. Go to "plugins" in your WordPress admin, then click activate.
  4. You'll see a new option for Lightweight Google Analytics in your settings tab.

常见问题:

How do I find my Google Analytics 4 Measurement ID?

In Google Analytics, go to Admin > Data Streams > select your stream > copy the Measurement ID (starts with G-).

What is Consent Mode and do I need it?

Google Consent Mode v2 helps you comply with GDPR/CCPA by denying analytics storage until users consent. Enable it if you use a cookie consent plugin and need to comply with privacy regulations.

How do I test if tracking is working?

Enable Debug Mode in the plugin settings, then go to Google Analytics > Admin > DebugView to see real-time hits from your site. Remember to disable Debug Mode when done testing.

Is Universal Analytics (UA-) still supported?

Yes, for backwards compatibility. However, Google discontinued UA on July 1, 2023, so data may no longer be processed. We recommend migrating to GA4.

更新日志:

1.5.0 1.4.3 1.4.2 1.4.1 1.4 1.3 1.2.2 1.2.1 1.2.0 1.1.1 1.1.0 1.0.0