Sogo Consent
Sogo Consent adds a customisable cookie consent banner to your WordPress site. All settings are managed from the WordPress admin. No external services are used. No visitor data is sent anywhere. Consent modes Full consent mode — shows Accept All, Reject Non-Essential, and Preferences buttons. The Pr
Sogo Consent adds a customisable cookie consent banner to your WordPress site. All settings are managed from the WordPress admin. No external services are used. No visitor data is sent anywhere.
Consent modes
- Full consent mode — shows Accept All, Reject Non-Essential, and Preferences buttons. The Preferences button opens a modal where visitors can toggle Analytics and Marketing cookie categories individually.
- Simple notice mode — shows a single acknowledgement button. Clicking it records that the visitor saw the notice. It does not enable analytics or marketing cookies.
Layout options
Four layout options are available: bottom full-width strip, bottom centre card, bottom right card, bottom left card. On mobile and tablet (992px and below) all layouts automatically become a centred floating card.
Behaviour options
- Show or hide the banner without deactivating the plugin
- Auto-hide the banner after a configurable number of seconds (1–60)
- Set how long to remember the visitor’s choice (1–730 days)
- Bump the policy version to ask visitors to choose again after a policy change
Appearance options
Customise background colour, text colour, title colour, primary and secondary button colours, corner radius, and box shadow — all from the Appearance tab in admin.
Consent storage
Consent is stored as a first-party browser cookie named sogo_consent . It uses SameSite=Lax and Secure (HTTPS only). The cookie contains the consent status, timestamp, policy version, banner mode, and category choices. No consent data is stored in the WordPress database.
Developer integration
A public JavaScript API is available on every page after the plugin loads:
- window.SogoConsent.getConsent() — returns the current consent object or null
- window.SogoConsent.hasConsented() — returns true if valid consent exists
- window.SogoConsent.resetConsent() — clears the cookie and re-shows the banner