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

Simple Plugin for Google Analytics

描述

Simple Plugin for Google Analytics is an unofficial WordPress plugin for Google Analytics, with Cookiebot integration.

Settings

Even though this is a really simple plugin, there are settings to:

  • Anonymize IPs
  • Force SSL
  • Ignore administrators
  • Choose the location of the script tag (either in <head> or <body>)

Cookiebot integration

If you have installed (and activated) the Cookiebot WordPress plugin, then “Simple Plugin for Google Analytics” will automatically include the Google Analytics code only if the user has given consent for “statistics” cookies. Also, it will disable advertising features (the allow_ad_personalization_signals option of gtag.js) unless the user has given consent for “marketing” cookies.

屏幕截图

安装

Automatic installation

Automatic installation is the easiest option — WordPress will handle the file transfer, and you won’t need to leave your web browser.

  1. Log in to your WordPress dashboard
  2. Navigate to the “Plugins” menu
  3. Search for “Simple Plugin for Google Analytics”
  4. Click “Install Now” and WordPress will take it from there
  5. Activate the plugin through the “Plugins” menu in WordPress

Manual installation

  1. Upload the entire overengineer-gasp folder to the wp-content/plugins/ directory
  2. Activate the plugin through the “Plugins” menu in WordPress

After activation

  1. In your WordPress dashboard, under “Settings”, you will find the “Google Analytics” menu
  2. Copy-paste your Google Analytics ID
  3. Change any other options
  4. Click “Save Changes”

To find your Google Analytics ID:

  1. Sign in to your Analytics account
  2. Click Admin
  3. Select an account from the menu in the ACCOUNT column
  4. Select a property from the menu in the PROPERTY column.
  5. Under PROPERTY, click Tracking Info > Tracking Code. Your Google Analytics ID is displayed at the top of the page.

The tracking ID is a string like UA-000000-2. It must be included in your tracking code to tell Analytics which account and property to send data to.

Refer to the official Analytics Help for more.

常见问题

How is this different from all the other Google Analytics plugins?

It’s really simple and I mean really simple. Oh, and it works with Cookiebot.

Is this GDPR compliant?

While no single plugin can guarantee 100% GDPR compliance in WordPress, here’s what I did with this plugin:

  • There is a setting to anonymize IPs
  • There is a setting to force SSL
  • There is an integration with Cookiebot

Other than that, IANAL (I am not a lawyer) and I cannot guarantee 100% GDPR compliance.

How to anonymize IPs?
  1. Log in to your WordPress dashboard
  2. Under “Settings”, select “Google Analytics”
  3. Enable the “Anonymize IPs” option
  4. Click “Save Changes”
How to force SSL?
  1. Log in to your WordPress dashboard
  2. Under “Settings”, select “Google Analytics”
  3. Enable the “Force SSL” option
  4. Click “Save Changes”
How to prevent tracking of administrators?
  1. Log in to your WordPress dashboard
  2. Under “Settings”, select “Google Analytics”
  3. Enable the “Ignore administrators” option
  4. Click “Save Changes”
Where can I report any bugs and/or request additional features?

If you have spotted any bugs, or would like to request additional features from the plugin, please file an issue.

评价

此插件暂无评价。

贡献者及开发者

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

贡献者

「Simple Plugin for Google Analytics」插件已被翻译至 6 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Simple Plugin for Google Analytics」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.1: September 3, 2019

  • Internationalize plugin.

1.0: September 2, 2019

  • Initial version.