Umami Analytics load for vite, includes the Umami Tag in the production build.
Inspired by vite-plugin-radar
npm i --save-dev vite-plugin-umami # yarn add -D vite-plugin-umami
// vite.config.js
import ViteUmami from 'vite-plugin-umami'
export default {
plugins: [
ViteUmami({
// Umami script injection
umami: {
id: "x-y-z",
src: "url",
},
})
],
}