---
title: "Astro — install the widget"
description: "Where the Guuey widget tag goes in an Astro site: the shared layout, before </body>, as a script with the is:inline directive so Astro emits it as written."
---

import InstallSnippet from "../../../components/InstallSnippet.astro";
import PlatformSteps from "../../../components/PlatformSteps.astro";
import AgentPrompt from "../../../components/AgentPrompt.astro";

In an Astro site the tag goes into the layout every page uses, marked is:inline. The tag is the same on every platform — [Install the widget](/install-widget/) has the general picture; this page has the exact place on **Astro**.

## The tag

<InstallSnippet />

## Where it goes

<PlatformSteps platform="astro" />

## Before it shows

Allow your site's origin (console → Embed → **Allowed origins**, or `guuey apps update <appId> --domains <origin>`; about 15 seconds to apply), add the CSP allowances if your site sets a policy, then verify with `guuey apps check <appId> --origin <origin>` — the steps are on [Install the widget](/install-widget/#before-it-shows).

## Give this to your coding agent

<AgentPrompt platform="astro" />