vite-plugin-ga
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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']
    }),
  ],
});

Dependencies (0)

    Dev Dependencies (16)

    Package Sidebar

    Install

    npm i vite-plugin-ga

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    4.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • yujinpan