Pro-Link Cookie Consent

外掛說明

Pro-Link Cookie Consent is a lightweight WordPress plugin for displaying a cookie consent banner and managing user consent according to Google Consent Mode v2 requirements.

The plugin allows visitors to:

  • accept all consents,
  • reject analytics and marketing consents,
  • save selected consent preferences.

User consent is stored in the browser cookie and automatically updates Google Consent Mode settings.

Features

  • Google Consent Mode v2 support,
  • modern cookie consent popup,
  • accept all consents,
  • reject selected consents,
  • save selected consent preferences,
  • lightweight architecture without external libraries,
  • JSON-based consent storage,
  • cookie settings popup,
  • analytics_storage support,
  • ad_storage support,
  • ad_user_data support,
  • ad_personalization support,
  • compatible with Google Analytics and Google Ads,
  • no jQuery dependency.

Supported Consent Types

  • Necessary
  • Analytics
  • Marketing

Google Consent Mode v2

The plugin supports:

  • analytics_storage
  • ad_storage
  • ad_user_data
  • ad_personalization

After saving consent preferences, the plugin updates Google Consent Mode using:

gtag(‘consent’, ‘update’, …)

Lightweight Architecture

The plugin is written in pure JavaScript without jQuery to ensure fast performance and minimal overhead.

External services

This plugin can optionally connect to Google Analytics and Google Tag Manager services to provide website traffic statistics and consent management functionality.

It loads external JavaScript files from:

https://www.googletagmanager.com/

When enabled and after the visitor grants consent, the plugin may send anonymous visitor data to Google services according to the website owner’s configuration.

These services are provided by Google:

Terms of Service:
https://policies.google.com/terms

Privacy Policy:
https://policies.google.com/privacy

安裝方式

  1. Upload the plugin folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the WordPress admin panel
  3. Configure the cookie consent popup
  4. Add your Google Analytics or Google Tag Manager ID

常見問題集

Does the plugin require jQuery?

No. The plugin is written in pure JavaScript.

Does the plugin support Google Consent Mode v2?

Yes.

Can visitors reject marketing cookies?

Yes.

Does the plugin block Google scripts before consent?

The plugin updates Google Consent Mode settings and can be used together with Google Tag Manager.

Are consent preferences stored in the database?

No. Consent preferences are stored in the visitor’s browser cookie.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Pro-Link Cookie Consent〉的開發相關工作。

參與者

將〈Pro-Link Cookie Consent〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • initial release,
  • cookie consent popup,
  • Google Consent Mode v2 support,
  • analytics and marketing consent support,
  • JSON consent storage,
  • cookie settings popup.