Browser integration runtime and consent
Audience: Developer and Integrator.
Browser integrations send application events to analytics services through an API that requires consent.
To manage integrations, users require at least the MANAGER role and both CONTENT_ACCESS and ADMIN_ANALYTICS permissions.
These users can save trusted JavaScript that runs in the storefront window. CodeBanner markup
and local JavaScript run in an isolated frame. Built-in realtime
analytics uses the resolved ANALYTICS_STORAGE grant from the active CMS consent
configuration.
Application and vendor responsibilities
The application supplies consent state, subscriptions, scope validation, cleanup, and diagnostics. A trusted script loads its vendor SDK and forwards events and consent changes. The application can stop its own event delivery. A loaded vendor SDK can keep its own listeners and requests. This is why each script must update vendor consent and register cleanup.
The configuration reference defines when integrations run. The event reference defines replay and action delivery.
CodeBanner
CodeBanner HTML, CSS, and local JavaScript run in an isolated frame. They do not select browser integrations or receive the storefront event API. Select analytics scripts through Settings, Local Settings, Website-Domains, or Pages. Banner content renders independently of integration consent and loading.
Vendor scripts
All browser integrations run trusted CMS JavaScript. There is no vendor type selector or built-in SDK loader. The application supplies subscriptions, current consent, scope checks, cleanup, and diagnostics. Source must not be empty when you enable it.
The Google examples supply CMS source for GTM and direct GA4. This source loads SDKs, maps events, and forwards consent. Shopify uses the same script API after its documented host setup. Use one installation per destination.
Loaded vendor SDKs can retain their own listeners and requests. The host removes API subscriptions and runs registered cleanup. Each script must also update its vendor consent state and disable its destination where supported. Test vendor behavior after withdrawal. Reload the page when complete removal requires it.
Checkout boundary
Shopify checkout opens in another tab. The runtime reports the checkout-link action, not checkout start, completion, or payment success. Configure Shopify pixels separately for checkout surfaces. The runtime does not deliver server-side conversions or expose general plugin action APIs.
Script trust and security
Integration URLs are public. Keep secrets out of the source. CMS scripts run as
trusted storefront code; they are not sandboxed by the script response’s CSP.
The storefront document’s CSP must permit the API and vendor resources. This
loader does not need unsafe-eval. See CSP
and HTTP caching .
A script response’s CSP does not sandbox code that runs in the storefront. The API reference defines script response and cache behavior. The integration procedure contains production preparation steps.