Astro makes it easy to add analytics scripts to your site. Here are the recommended approaches for integrating Visitors.
Replace YOUR_TOKEN with your project token.
Add the script to your base layout component that wraps all pages.
Astro provides a <script> component for adding external scripts:
For dynamic loading after the page has loaded: