Consent boundary for the theme's explicitly classified analytics integrations.
- Source:
Methods
(inner) consentRuntime(type) → {string}
Build the idempotent browser-side consent controller. Info is deliberately not gated.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
type |
string
|
CookieConsent mode. |
Returns:
- Type:
-
string
Inline JavaScript.
(inner) gateMarkup(id, markup, type) → {string}
Defer all scripts (including inline SDK bootstrap code) until this integration is authorized.
Noscript pixels are intentionally not restored: without JavaScript consent cannot be obtained.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string
|
Stable integration ID, shared across PJAX navigations. |
markup |
string
|
Rendered integration markup containing scripts. |
type |
string
|
CookieConsent mode. |
Returns:
- Type:
-
string
Inline JavaScript without active external resources before permission.