vite-plugin-ga
v1.0.2
Published
Vite Plugin GA.
Downloads
16
Readme
Vite Plugin GA
Append GoogleAnalytics html code to your entry template.
Usage
npm i -D vite-plugin-ga
import vitePluginGA from 'vite-plugin-ga';
import { defineConfig } from 'vite';
export default defineConfig({
base: './',
plugins: [
vitePluginGA({
id: 'G-xxx',
entryNames: ['index.html']
}),
],
});