
CMPly connects a WordPress site to CMPly.app.
The plugin prints the CMPly SDK in the public <head> at a very early priority and intentionally does not add defer or async, matching CMPly’s recommended integration for blocking third-party scripts before they execute.
Features:
This plugin requires an active CMPly.app site configuration. CMPly provides the consent banner, consent storage, cookie/provider metadata, and related consent-management functionality.
This plugin connects to CMPly.app, a third-party consent-management service, when CMPly is enabled and a Site ID is configured.
When an administrator chooses Connect or Verify, WordPress sends the site URL, connection identifiers, plugin version, and a short-lived connection code to CMPly. CMPly returns the Site ID and API key server-to-server. When an administrator opens, refreshes, or saves the Google Consent Mode screen, WordPress sends the site URL, Site ID, connection ID, API key, and GCM settings to CMPly. GCM responses are cached in WordPress for five minutes. The API key is stored as a non-autoloaded WordPress option, is never printed in public HTML, and is deleted on disconnect or uninstall.
The administrator-side connection and GCM requests use CMPly endpoints under https://cmply.app/api/integrations/wordpress/, including /sites/{siteId}/gcm. These requests are used only to authenticate the WordPress connection and read or save the connected site’s settings.
The plugin loads the CMPly JavaScript SDK from:
https://cmply.app/sdk/init.jsThe SDK may request these CMPly API endpoints in the visitor’s browser:
/api/sites/{siteId} to load banner settings./api/sites/{siteId}/cookies-list to load cookie details./api/sites/{siteId}/providers to load detected provider rules./api/sites/{siteId}/view to record a banner/site view./api/consent to record a consent choice.Data sent to CMPly may include the configured Site ID, consent categories selected by the visitor, consent metadata generated by the SDK, and standard request metadata such as IP address, user agent, referrer, and timestamp. CMPly uses this data to provide cookie consent functionality, consent records, analytics, and script-blocking configuration.
Service links: