JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q54170F
  • License MIT

rspress plugin for google analytics

Package Exports

  • rspress-plugin-google-analytics
  • rspress-plugin-google-analytics/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rspress-plugin-google-analytics) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

rspress-plugin-google-analytics NPM Version

简体中文

Rspress plugin for Google Analytics integration.

Usage

npm i rspress-plugin-google-analytics
pnpm add rspress-plugin-google-analytics
import * as path from 'path';
import { defineConfig } from 'rspress/config';
import ga from 'rspress-plugin-google-analytics';

export default defineConfig({
  root: path.join(__dirname, 'docs'),
  plugins: [
    ga({
      id: 'UA-123456789-0',
    }),
  ],
});

Configure

id

Google Analytics tracking ID.

  • Type: string | string[]
  • Required

anonymizeIp

Anonymize IP addresses for Google Analytics.

  • Type: boolean
  • Default: false