Astro
For Astro projects, the widget script goes in your shared layout component (e.g. src/layouts/Layout.astro).
Install#
No package install needed. Replace YOUR_PROJECT_ID with the value from /v1/projects.
Add the script#
In your layout's <head> or before the closing </body>:
The is:inline directive prevents Astro from processing the script as a module — important because the widget loader expects a global window property.
Add the container#
In any .astro page or component: