Astro
Add Humblytics Analytics to an Astro Site
1 · Sign up (or log in)
2 · Add your website in Humblytics
<!-- Start Humblytics Tracking Code -->
<script async src="https://app.humblytics.com/hmbl.min.js?id=YOUR_ID_HERE"></script>
<!-- End Humblytics Tracking Code -->3 · Add the script to your Astro project
Option 1: Direct script tag (simplest)
Option 2: Using environment variables (recommended)
Option 3: Production-only tracking
Option 4: With View Transitions (if using Astro's SPA mode)
Multiple layouts
4 · Build and deploy
5 · Verify installation
6 · Explore & optimize
Last updated