which analytics provider are you using?
Install the package:
pnpm add @astroutils/analytics
yarn add @astroutils/analytics
npm install @astroutils/analytics
bun add @astroutils/analytics
Add the <Analytics /> component to your layout file:
<Analytics />
---import { Analytics } from "@astroutils/analytics/umami";--- ...<Analytics host="the url to the tracker script" websiteId="the website id from umami"/> {/* add this before the end of your <head> tag */}
don’t see your analytics provider? submit a new one!