Sidebar and section headers use brand SVG marks (BunnyCDN, Google Maps, GA4, GTM, Clarity, Plausible, Fathom, Matomo, Meta Pixel) with the same currentColor treatment as Integrations; Privacy keeps a dashicon.

Sections

Aegis → Connectors and its sections.

SectionAnchorPurpose
BunnyCDN#bunnycdnStream hosting, CDN credentials, and Pro video extras. Appears when the Aegis Video add-on is active.
Google Maps#mapsBrowser and server API keys for the Map block
Google Analytics#ga4GA4 measurement ID, IP anonymization
Tag Manager#gtmGTM container ID, Data Layer (Pro)
Clarity#clarityProject ID ([a-z0-9]{6,16}); official async snippet in head
Plausible#plausibleDomain (+ optional script URL); per-host URL strip; defer snippet in head
Fathom#fathomSite ID (+ optional script URL); defer snippet in head
Matomo#matomoInstance URL (http(s) / // / bare host), Site ID, Privacy Mode; head bootstrap
Meta Pixel#meta-pixelPixel ID (numeric), WooCommerce events (Pro); head base code
Privacy#privacyConsent Mode v2 (Pro), Require Consent, DNT/GPC, Complianz, local scripts, debug (Pro)

Option keys are unchanged: aegis_integrations (toggles), aegis_bunnycdn, aegis_google_maps, aegis_analytics.

Export and import on this screen use the global settings bundle (including analytics). Tools → Reset defaults uses the connectors group: it turns off BunnyCDN / Google Maps toggles (and BunnyCDN extras), clears aegis_bunnycdn and aegis_google_maps credentials, clears aegis_analytics, and removes locally proxied analytics scripts. Other Integrations dashboard toggles and aegis_pattern_control are left unchanged.

BunnyCDN

The BunnyCDN section is drawn by the Aegis Video add-on (hooks aegis_connectors_nav_items and aegis_connectors_sections). The settings are still stored by this plugin in the options below, where Aegis Pro reads them. Without Aegis Video the section is not shown, the BunnyCDN keys read as off, and the screen opens on the first remaining connector. The parent BunnyCDN toggle needs only Aegis Video; API fields and Pro extras require Aegis Pro. Helper: Integrations\BunnyCDN (is_plugin_active(), is_enabled(), is_extra_enabled()). Theme Stream player CSS loads when the parent toggle is on.

BunnyCDN settings.

Pro extras (parent-gated)

ExtraKeyBehavior
Stream Librarybunny_cdn_stream_libraryBrowse/select Stream library videos in the block editor
Direct Uploadbunny_cdn_direct_uploadUpload to Stream from the editor (proxied through WordPress)
HLS Streamingbunny_cdn_hls_streamingHLS.js + quality switcher; off → iframe embed
AI Transcriptionbunny_cdn_ai_transcriptionTranscribe/captions REST + webhook auto-transcribe
Video Thumbnailsbunny_cdn_video_thumbnailsStream thumbnail.jpg poster on HLS players

Credentials (aegis_bunnycdn)

FieldRole
Account API KeyConnection test against api.bunny.net; Stream REST fallback AccessKey
Pull Zone NameBunny pull-zone slug for *.b-cdn.net playback
CDN HostnameOptional custom CDN host (preferred over pull-zone slug when set)
Token Authentication KeyPull-zone URL token key for private HLS signing
Stream Library IDDefault library for editor + API lock
Stream API KeyLibrary AccessKey for video.bunnycdn.com (preferred over Account key)
Webhook Signing SecretLibrary Read-Only API key for X-BunnyStream-Signature HMAC

Legacy Storage Zone fields have no UI; keys remain in sanitize for backward compatibility.

Saving and testing credentials

Save API Settings and Test Connection stay disabled until the Account API Key field has a value (including a masked stored key). Both actions require Aegis Pro; they do not require the parent BunnyCDN toggle to be on first — you can save and verify keys, then enable the connector. Without Pro, the API panel shows a lock notice instead of the action buttons.

Security and Pro REST

Migrations

Maps

The Google Maps panel always loads on Connectors so you can enable the provider and save keys.

FieldRole
Browser API KeyStatic Maps facade, Maps JavaScript, editor preview (HTTP referrer restriction)
Server API KeyEditor geocode REST + Test Connection (IP restriction)

Save API Settings enables when either key has a value (including a fully masked stored key); Test Connection requires the Server API Key. Save/Test do not require the Google Maps toggle to be on first — enable the connector separately with Save Settings. Partial saves keep unchanged masked secrets. Frontend Google playback still needs the toggle on plus a browser key. OpenStreetMap is always available as an explicit Map block provider. Automatic OSM fallback when Google has no key is the OpenStreetMap Fallback extra at Aegis → Blocks → Map.

Maps security

ControlBehavior
Key rolesBrowser: HTTP referrer; Maps JS + Static Maps (+ Directions API only if you use Pro Directions). Server: IP; Geocoding only. Identical browser/server keys are rejected on save.
Editor geocodeGET aegis/v1/map/geocode — edit_posts only, address max 200 chars, 20 requests/min per user. Server key never localized to the browser.
DirectionsFree-text origins/destinations resolve server-side (cached) to lat,lng before the public map loads — no browser Geocoder.
Store LocatorMatches existing markers by title or accepts lat,lng; no public Geocoder.
Dynamic markers (Pro)Public CPTs only; safe meta keys; REST rate-limited for editors.
Maps JS librariesPage-level union so heatmap/drawing siblings load the libraries they need.

Legacy single api_key values and the old Pro Fieldify aegis[googleMaps] field migrate once into browser_api_key (aegis_google_maps_migrated_v1).

Analytics

Each provider has its own Connectors tab. Nothing is sent until you enable a provider and save credentials. Shared consent settings are on Privacy. Video performance reports stay on Aegis → Analytics (Pro, aegis-video-analytics) and are separate from these measurement IDs.

Saving analytics settings

Footer Save Settings on Connectors posts provider fields via aegis_save_analytics into aegis_analytics. Fields missing from the request (for example Meta Pixel ID when Pro is inactive, or disabled Pro toggles) keep their stored values. Invalid GA4 (G-…), GTM (GTM-…), Clarity ([a-z0-9]{6,16}), Plausible domain/script URL, Fathom Site ID/script URL ([A-Z0-9]{5,10}), Matomo URL/Site ID, or Meta Pixel ID (\d{5,20}) values are ignored and surfaced as save warnings. For Clarity, Plausible, Fathom, Matomo, and Meta Pixel, a typo keeps a previously valid credential; if the stored value is also invalid it is cleared. Enabling GA4, GTM, Clarity, Plausible, Fathom, Matomo, or Meta Pixel without usable credentials (normalized where applicable), enabling both GA4 and GTM with IDs set, or Privacy misconfigurations (Consent Mode without GA4/GTM, Require Consent without Complianz Integration, Complianz Integration and/or Require Consent without the plugin, Local Script Loading without GA4/GTM) also surfaces warnings.

All of these live on the Privacy tab (#privacy), not on the GA4 or Tag Manager tabs:

Privacy options for analytics.

SettingBehavior
Consent Mode v2 (Pro)Emits denied Consent Mode defaults (wait_for_update: 500) before gtag/GTM when GA4 and/or GTM are enabled (stored as ga4_consent_mode). With Complianz Integration on, Aegis listens for cmplz_fire_categories / cmplz_revoke (detail as a category array or { categories }). Other CMPs can dispatch aegis_analytics_consent with { analytics, marketing } or { categories: ['statistics','marketing'] }.
Require ConsentMarks scripts as text/plain with Complianz data attributes so Complianz can unblock them. Needs Complianz Integration and the Complianz plugin (cannot enable when Complianz is missing; can still turn off if previously enabled). Skips GTM and Meta Pixel <noscript> fallbacks (they cannot be consent-gated).
Respect DNT / GPCSkips all providers when the request has DNT: 1 or Sec-GPC: 1 (gdpr_respect_dnt).
Complianz IntegrationAdds Complianz script attributes and drives Consent Mode updates when that option is on.
Local Script LoadingProxies GA4/GTM scripts through uploads when supported (other providers are not proxied). The GTM head loader always appends the container id to the script URL (CDN or local).
Debug Mode (Pro)Loads tracking for admins (bypasses DNT/GPC for that admin) and shows diagnostics. Console lists valid providers plus Consent Mode, Require Consent, Complianz, DNT/GPC, and local scripts.

Saving Privacy misconfigurations (Consent Mode without GA4/GTM, Require Consent without Complianz Integration, Complianz Integration and/or Require Consent without the plugin, Local Script Loading without GA4/GTM) surfaces warnings.

Admin users do not load tracking scripts unless Debug Mode (Pro) is on.

Tag Manager injection

With Tag Manager enabled and a valid GTM-… ID, Aegis prints the official head bootstrap (Consent Mode / Data Layer first when configured), then the container loader. Locally proxied gtm.js has no ID in the file URL; the loader adds id= at runtime. The noscript iframe uses ns.html?id=… on wp_body_open (footer fallback if needed).

Clarity injection

With Clarity enabled and a normalized Project ID ([a-z0-9]{6,16}), Aegis prints the official async snippet in wp_head and DNS-prefetches clarity.ms. Invalid stored IDs never reach the page. Complianz/Require Consent uses data-service="clarity".

Plausible injection

With Plausible enabled and a normalized domain, Aegis prints the official defer snippet in wp_head. Domain normalization strips scheme/www./paths on each comma-separated host. DNS prefetch uses plausible.io or the host of a custom script URL. Invalid stored domains never reach the page; an invalid custom URL falls back to the cloud script until corrected. Use Custom Script URL for self-hosted or first-party proxy setups (Local Script Loading does not proxy Plausible). Complianz/Require Consent uses data-service="plausible".

Fathom injection

With Fathom enabled and a normalized Site ID ([A-Z0-9]{5,10}), Aegis prints the official defer snippet in wp_head. DNS prefetch uses cdn.usefathom.com or the host of a custom script URL. Invalid stored IDs never reach the page; an invalid custom URL falls back to the cloud script until corrected. Complianz/Require Consent uses data-service="fathom". Advanced SPA attributes (data-spa, etc.) are not exposed in Connectors.

Matomo injection

With Matomo enabled and a normalized URL + Site ID, Aegis prints the official tracking bootstrap in wp_head and DNS-prefetches the Matomo host. URLs may be pasted as http(s)://…, //…, or bare host/path (https assumed); non-http schemes are rejected and a host is required. Invalid stored credentials never reach the page. Privacy Mode pushes Matomo setDoNotTrack + disableCookies before pageview. Complianz/Require Consent uses data-service="matomo". The one-time aegis_matomo_privacy_mode_v1 migration renames legacy matomo_anonymize_ip — not dead code.

Meta Pixel injection

With Pro active, Meta Pixel enabled, and a normalized Pixel ID (\d{5,20}), Aegis prints the official base code + PageView in wp_head and DNS-prefetches connect.facebook.net. Invalid stored IDs never reach the page. Optional WooCommerce events fire ViewContent, AddToCart (session after add), InitiateCheckout (cart value/IDs), and Purchase (order value/IDs; deduped via _aegis_meta_pixel_purchase_tracked). Complianz/Require Consent uses data-service="facebook" and data-category="marketing", and skips the noscript image.

See Analytics.

Next Steps