Config Editor
The Config Editor provides direct access to your site's JSON configuration for advanced customization.
Accessing the editor
- Select your site from the site switcher
- Navigate to Config Editor in the sidebar
- The current configuration loads in the editor
Configuration structure
{
"siteKey": "my-site-prod",
"version": 2,
"banner": {
"position": "bottom",
"layout": "bar"
},
"categories": [
{
"id": "necessary",
"label": "Necessary",
"required": true
},
{
"id": "analytics",
"label": "Analytics",
"defaultState": false
}
],
"regionRules": [...],
"theme": {...}
}
Key configuration sections
Banner settings
| Property | Description |
|---|---|
position | top, bottom, center |
layout | bar, modal, corner |
showPreferences | Show preferences button |
blockingMode | Block page until consent |
Categories
Define consent categories:
{
"id": "marketing",
"label": "Marketing",
"description": "Cookies for advertising and retargeting",
"defaultState": false,
"vendors": ["google-ads", "facebook-pixel"]
}
Region rules
Customize behavior by region:
{
"region": "EU",
"defaultConsent": "opt-in",
"showBanner": true,
"blockingMode": true
}
Editing workflow
- Edit: Make changes in the editor
- Validate: Click Validate to check for errors
- Preview: Click Preview to see changes in a sandbox
- Save: Click Save to publish changes
Changes take effect within 60 seconds (CDN cache TTL).
Version history
The editor maintains a version history:
- View previous versions in the History tab
- Compare versions side-by-side
- Rollback to any previous version
Schema validation
The editor validates your configuration against the CMP schema:
- Errors: Must be fixed before saving (red)
- Warnings: Optional improvements (yellow)
- Info: Best practice suggestions (blue)
Import/Export
Export configuration
- Click Export (download icon)
- Choose format: JSON or YAML
- Save to your local machine
Import configuration
- Click Import (upload icon)
- Select a JSON or YAML file
- Review the diff
- Click Apply
Environment sync
Copy configuration between environments:
- Open the source site's config
- Click Copy to...
- Select target site key
- Review and confirm