Gravito CMP

外掛說明

Gravito is a Google and IAB TCF v2.4 certified Consent Management Platform. This plugin lets you deploy your Gravito CMP banner on a WordPress site without editing theme files.

How it works

  1. Design and deploy your CMP in the Gravito portal.
  2. Copy the WordPress token the portal gives you.
  3. Paste it into the plugin’s settings page, click Validate, then click Deploy.

The plugin injects the Gravito CMP script into the <head> of every page. Republishes in the portal are picked up automatically — no re-paste needed.

Features

  • Single-field token-based setup
  • Token validation (checks the Gravito CDN responds)
  • One-click deploy / undeploy
  • [gravito_preferences] shortcode to open the preferences dialog from anywhere
  • Gutenberg block for the preferences link
  • Optional auto-injected “Cookie preferences” link in the footer
  • Multisite friendly (per-site configuration)

Requirements

  • A Gravito account and a deployed CMP configuration in the Gravito portal
  • Domain validation, done by adding DNS entries to the domain where the Gravito CMP will be deployed

Remote services

This plugin loads one JavaScript file from the Gravito CDN (cdn.gravito.net) when the CMP is deployed. The URL is derived from the token you paste. No visitor data is sent by the plugin itself — the CMP handles consent collection according to IAB TCF v2.4.

Terms: https://www.gravito.net/terms
Privacy: https://www.gravito.net/privacy

螢幕擷圖

適用於區塊編輯器

這個外掛提供 1 個可供區塊編輯器使用的區塊。

  • Preferences Link

安裝方式

  1. Upload the gravito-cmp folder to /wp-content/plugins/, or install through the WordPress plugin directory.
  2. Activate the plugin.
  3. In WordPress admin, go to Gravito CMP in the sidebar.
  4. Paste your token from the Gravito portal, click Validate Token, then Deploy CMP.

常見問題集

Where do I get a token?

Log in to the Gravito portal, design your CMP, deploy it, and copy the WordPress token.

Do I need to re-paste the token after republishing in the portal?

No. The token encodes a stable path, and the CDN serves the latest version automatically.

Can I open the preferences dialog from a link in my own menu?

Yes. Add onclick="window.gravito.cmp.openPreferences(); return false;" to any link, or use the [gravito_preferences] shortcode.

Does the plugin work on multisite?

Yes. Each site in a network configures its own token independently.

Where does the CMP script load from?

https://cdn.gravito.net/cmpconfigs/gravitocmp/{your-uuid}/{build}/latest.js

使用者評論

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

參與者及開發者

以下人員參與了開源軟體〈Gravito CMP〉的開發相關工作。

參與者

將〈Gravito CMP〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0.12

  • Updated description to IAB TCF v2.4.
  • Clarified requirements: Gravito portal link and DNS-based domain validation.

1.0.11

  • Initial public release.