Astro Install Guide
Statcounter provides customisable hit counters, visitor tracking, web analytics and website stats for Astro.
- Sign up for an account at Statcounter to get your code. Package npmjs page : npmjs.com/package/@statcounter/astro
- Installation
npm install @statcounter/astro
- Update your Layout.astro file and add this at the top with your other imports
import { Statcounter } from '@statcounter/astro';
then add the <Statcounter /> component inside your layout just before the closing
Video install guide : youtube.com/watch?v=pguTbTRWLqk