Global Settings Reference
This page lists every plugin-wide setting, with its default value and what it does. Settings for individual CRMs, checkouts, forms and webhooks are summarized at the end and covered in detail on their own pages.
Where settings live#
All settings are on the WP Smart Consent dashboard and are stored together in one WordPress option, wpsmartconsent_settings. Click Save changes at the top, or any Save button in a card, to save them all.
Secrets are never sent back to your browser once saved. API keys, geo provider keys, webhook secret keys, webhook auth tokens and custom header values show as masked. Leave a masked field as it is to keep the saved value, or paste a new value to replace it.
General tab#

| Setting | Default | What it does |
|---|---|---|
| Label text | “Subscribe to the newsletter” (translated into the site language) | The text next to the checkbox on every checkout and form that WP Smart Consent renders. You can include links and simple formatting: <a>, <strong>, <b>, <em>, <i>, <br> and <span>. Other HTML is removed. With WPML or Polylang it can be translated per language. See The Opt-In Checkbox. |
| Pre-checked by default | Off | Master switch for pre-ticking. When off, the box always starts unticked. When on, it starts ticked only for visitors whose country is on Geo rules → Pre-checked countries, unless the country is on Force unchecked or the visitor’s US state is on US states. Unknown locations stay unticked. Geo lookups only run while this is on. |
| Log every submission | On | Writes an entry to the Customers Log for every submission, ticked or not. Turning it off stops new entries but doesn’t delete existing ones. CRM and webhook forwarding continue either way. |
| Log retention (days) | 0 (keep forever) |
Deletes log entries older than this many days, once a day. Age is measured with your database server’s own clock, the same one that stamps each entry. Deletions are recorded, so the Audit Trail stays verifiable. |
| Checkbox color | Empty (browser default) | A hex color such as #2563eb for the ticked checkbox. Use #rgb or #rrggbb. Anything else is ignored. |
Data fields tab#
Global data fields is the list of contact fields you can map in each CRM’s Field mapping tab and each webhook’s Fields tab.

| Field | Default | Notes |
|---|---|---|
email |
Always on | Required for every contact. |
first_name, last_name |
Always on | Always sent to CRMs. |
consented_at |
Always on | Time of consent, filled in when the contact is sent. |
phone |
On | From the billing phone or the mapped form field. |
country |
On | From the billing country or the mapped form field, as a two-letter code. |
company |
Off | From the billing company or the mapped form field. |
order_total |
On | Checkouts only. |
source_url |
On | The page URL, where the source provides it. |
The built-in fields are always available to map, whatever their Active switch shows. Choosing whether a destination receives them, and under which key, is done in that CRM’s Field mapping or that webhook’s Fields. The CRM key column is for your reference only, as the note under the table says: the key actually sent is set per CRM in its Field mapping tab (and per webhook in its Fields tab).
Custom data fields#
Add field or Add custom field adds your own field. Give it a WPSC slug, choose a Source and enter the Source key:
| Source | Where the value comes from (Source key) |
|---|---|
| Form input | A submitted value with this key, for example an extra field you mapped in a form’s WP Smart Consent settings. |
| Order meta | Order meta with this key, on WooCommerce, FluentCart, SureCart, Easy Digital Downloads and GiveWP orders. |
| ACF field | An Advanced Custom Fields field with this name, read from the logged-in user first and then from the current page. |
| User meta | User meta with this key, for logged-in visitors. |
| Cookie | A cookie with this name on the visitor’s request. |
| PHP hook | Your own code, through the wpsc_field_{slug} filter (see For developers). |
The Active switch turns collection on or off. Values are read on every submission, saved with the log entry, and can be mapped in CRM cards and webhooks under the field’s slug. Empty values are left out. Click Save data fields to keep your changes.
Geo rules tab#
| Setting | Default | What it does |
|---|---|---|
| Behind a trusted proxy | Off | Read the visitor’s IP address from CF-Connecting-IP, True-Client-IP, X-Real-IP or X-Forwarded-For (last public hop). Off uses the server connection address only. Turn it on if your site is behind Cloudflare, a load balancer or a reverse proxy. It affects geo lookups and the IP stored by the Audit Trail. |
| Provider | freeipapi.com (API only) | How the country and US state are found when no CDN country header is present. See GDPR Geo-Detection. |
| freeipapi.com API key | Empty | Optional. Leave blank for the free tier. |
| IP2Location.io API key | Empty | Required for the IP2Location.io providers. |
| Pre-checked countries | 76 countries | Countries where the box starts ticked, when Pre-checked by default is on. |
| US states | 25 states | US states where the box is forced unticked. |
| Force unchecked | 173 countries | Countries where the box always starts unticked. |
| Reset to defaults / Reset all to defaults | — | Restore the default lists on screen. Click Save geo rules to keep them. |
The full default lists are on Geo Rules: Default Country List.
Audit trail tab (Beta)#
| Setting | Default | What it does |
|---|---|---|
| Store IP address & browser | On for new installs. Off for sites that were upgraded from a version before 1.5.0. | Records the visitor’s IP address and browser (user-agent string) with each log entry as proof of consent. When off, neither is stored. |
| Verify now | — | Checks the whole log immediately. The check also runs once a day. |
See Audit Trail (Beta).
Integration settings (summary)#
These are stored in the same option, under integrations. Each has its own documentation page.
| Group | Defaults |
|---|---|
| Checkouts | WooCommerce Checkout Block: on. WooCommerce classic checkout, FluentCart, SureCart, Easy Digital Downloads and GiveWP: off. On the Collect fields tab, Collect phone number and Collect company name are on, with no custom order-meta fields. No CRM overrides. |
| Forms | All form plugins off. Each form starts in Contact mode when you turn it on in the form’s settings. |
| CRMs & ESPs | All off. When you turn one on: Update existing contacts on, Send on unchecked off, Double opt-in off, no tags, all sources. Send on unchecked is only offered on Mailchimp and the WordPress CRMs, applies to checkouts only, and never subscribes anyone: see The Opt-In Checkbox. |
| Webhooks | None. A new webhook starts disabled, with email, first_name and last_name turned on. |
Per-form settings are saved by each form plugin’s own WP Smart Consent panel, not in this option.
wp-config.php constants (optional)#
| Constant | What it does |
|---|---|
WPSC_LOG_HMAC_KEY |
Keeps the Audit Trail signing key in wp-config.php instead of the database. Copy the exact line shown in the Audit trail tab’s guide. Changing the key later invalidates existing signatures. |
WPSC_FLAG_BASE_URL |
Loads Geo rules flag images from your own URL instead of the files bundled with the plugin. Include a trailing slash. |
Other settings stored outside the main option#
| Option | What it holds |
|---|---|
wpsmartconsent_version |
The installed plugin version, used to run upgrades. |
wpsc_log_hmac_key |
The Audit Trail signing key, unless you define WPSC_LOG_HMAC_KEY. |
wpsc_log_integrity |
The result of the latest Audit Trail check. |
wpsc_webhook_log |
The last 50 webhook deliveries. |
wpsmartconsent_license_options |
Your license key and activation. |
For developers#
wpsc_menu_namefilters the admin menu label.wpsc_optin_label_allowed_htmlfilters the HTML allowed in the checkbox label.wpsc_flag_base_urlfilters the flag image URL.wpsc_debug_logturns on diagnostic logging withoutWP_DEBUG:add_filter( 'wpsc_debug_log', '__return_true' );wpsc_field_{slug}( $value, $billing, $order )supplies the value of a custom data field whose source is PHP hook.$orderis the order object on checkouts, otherwisenull. Example:add_filter( 'wpsc_field_plan', fn() => 'pro' );wpsc_checkout_collected_data( $billing, $slug, $order )filters a checkout’s data after Collect fields is applied.
See the Developer API for the full list.