0.1.1 • Published yesterday
@antlytics/astro
Licence
MIT
Version
0.1.1
Deps
0
Size
6 kB
Vulns
0
Weekly
0
@antlytics/astro
Privacy-first analytics for Astro — by Antlytics.
Install
npm install @antlytics/astro
Usage
// astro.config.mjs
import { defineConfig } from 'astro/config'
import { antlytics } from '@antlytics/astro'
export default defineConfig({
integrations: [
antlytics({ trackingId: 'your-tracking-id' }),
],
})
The integration injects a loader for the hosted tracker.js (SPA navigations, 30-minute idle visits, sticky UTMs, engagement) via astro:config:setup.
Options
| Option | Required | Default | Description |
|---|---|---|---|
trackingId |
Yes | — | UUID from Antlytics → Sites |
apiHost |
No | https://www.antlytics.com |
Custom ingest host (first-party proxy) |