Astro
1.Site analytics
- Open the site in Studio and copy the Embed snippet.
- Open your base layout (often
src/layouts/BaseLayout.astroor similar). - Paste the snippet immediately before
</body>. - Build and deploy.
- Load a public page and confirm a visit in Site Analytics.
Layouts shared by every page keep a single install for the whole site.
2.Blog
- Open the site in Studio and go to Settings β Domain.
- Connect
blog.yourdomain.com, add the CNAME Studio shows, then verify. - In the base layout header, link Blog to
https://blog.yourdomain.com. - Build and deploy.
- To render posts inside Astro instead, open Settings β API and use the public list and post endpoints.