Script Tag
The script tag is the simplest way to add the Angstroma widget to any website. One line of HTML — no build step, no framework, no dependencies.
The snippet
Paste before the closing </body> tag. Replace the key with yours.
Important
The attribute must be
data-key. Any other name (data-api-key, data-apikey, etc.) will prevent the widget from loading. No error is thrown — the widget simply does not appear.All data-* attributes
data-keyYour API key. Widget will not initialize without it.data-presetPre-apply a preset for first-time visitors.data-positionButton position. Values: left or right.data-student-idLoad a saved student accessibility profile by external ID.data-tenantTenant slug override. Only needed in rare multi-tenant setups.data-api-urlOverride the API endpoint. For Enterprise self-hosted only.Examples
Button on the left side
With a preset applied
Load a student profile (education use)
Important
K–12 student profiles require Schools / Enterprise + signed DPA. Setting
data-student-idfor any user under 18 in a U.S. K–12 context triggers FERPA and COPPA obligations — those deployments are gated to the Schools and Enterprise tiers and activate only after a signed Data Processing Agreement is on file. Angstroma stores only the opaque ID you provide; no name, email, or course metadata is persisted. See the Schools overview and FERPA page.Verification
After adding the snippet:
- Open the page in a browser
- Look for a circular floating button (bottom-right or bottom-left)
- Click it — the accessibility panel should open
- Open DevTools → Console — look for
[Angstroma A11y] Widget initialized
Content Security Policy
If your site uses a Content Security Policy, add these directives to allow the widget to load:
Platform-specific guides
Need help with a specific platform? Next.js · React · WordPress · Shopify · Webflow · Angular · Vue.js