https://github.com/destiner/astro-analytics
Astro components for site analytics
https://github.com/destiner/astro-analytics
analytics astro google-analytics javascript
Last synced: 19 days ago
JSON representation
Astro components for site analytics
- Host: GitHub
- URL: https://github.com/destiner/astro-analytics
- Owner: Destiner
- License: mit
- Created: 2021-12-05T07:37:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-26T19:39:49.000Z (over 1 year ago)
- Last Synced: 2025-04-06T20:09:37.798Z (19 days ago)
- Topics: analytics, astro, google-analytics, javascript
- Language: Astro
- Homepage:
- Size: 50.8 KB
- Stars: 126
- Watchers: 2
- Forks: 12
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Astro Analytics 📈
_A collection of Astro components for popular web analytics tools_
Supported services:
* [x]  Fathom
* [Website](https://usefathom.com)
* [Live Demo](https://app.usefathom.com/demo)
* script.js · 5,95 KB
* [x]  Google Analytics
* [Website](https://developers.google.com/analytics)
* [x]  Metrical
* [Website](https://metrical.xyz)
* [Live Demo](https://app.metrical.xyz/demo)
* script.js · 2,48 KB
* [x]  Plausible
* [Website](https://plausible.io)
* [Live Demo](https://plausible.io/plausible.io)
* [GitHub](https://github.com/plausible/analytics)
* plausible.js · 1,30 KB · 🥇
* [x]  Simple Analytics
* [Website](https://simpleanalytics.com)
* [Live Demo](https://simpleanalytics.com/simpleanalytics.com)
* [x]  Umami
* [Website](https://umami.is)
* [Live Demo](https://app.umami.is/share/8rmHaheU/umami.is)
* [GitHub](https://github.com/umami-software/umami)
* umami.js · 2,75 KB
* [x]  Amplitude
* [Website](https://amplitude.com)
* [Live Demo](https://analytics.amplitude.com/login/my-demo)
* [GitHub](https://github.com/amplitude)
* [x]  Matomo
* [Website](https://matomo.org)
* [X] 🌱 Minimalanalytics
* [Website](https://minimalanalytics.com)
* [Gist](https://gist.github.com/DavidKuennen/443121e692175d6fc145e1efb0284ec9)
* script.js · 1.56 KB · 🥈
## Installation```bash
npm install astro-analytics
# or
pnpm install astro-analytics
# or
yarn add astro-analytics
```## Usage
```js
import { Fathom } from 'astro-analytics';
``````html
(if no src is set it will fallback to https://cdn.usefathom.com/script.js)(if no src is set it will fallback to https://plausible.io/js/script.js)
```