Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richardstrnad/vite-plugin-umami
Umami Analytics loader for Vite
https://github.com/richardstrnad/vite-plugin-umami
umami umami-analytics umamijs vite vitejs
Last synced: about 1 month ago
JSON representation
Umami Analytics loader for Vite
- Host: GitHub
- URL: https://github.com/richardstrnad/vite-plugin-umami
- Owner: richardstrnad
- License: mit
- Created: 2022-11-07T07:18:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-18T20:08:35.000Z (almost 2 years ago)
- Last Synced: 2024-09-28T23:03:00.597Z (about 2 months ago)
- Topics: umami, umami-analytics, umamijs, vite, vitejs
- Language: TypeScript
- Homepage:
- Size: 82 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-plugin-umami
[Umami](https://umami.is/) Analytics load for vite, includes the Umami Tag in the production build.
Inspired by [vite-plugin-radar](https://github.com/stafyniaksacha/vite-plugin-radar)
### Install
```sh
npm i --save-dev vite-plugin-umami # yarn add -D vite-plugin-umami
```### Add it to your vite.config.js
```ts
// vite.config.js
import ViteUmami from 'vite-plugin-umami'export default {
plugins: [
ViteUmami({
// Umami script injection
umami: {
id: "x-y-z",
src: "url",
},
})
],
}
```