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 
Rspress plugin for Google Analytics integration.
Usage
npm i rspress-plugin-google-analytics
pnpm add rspress-plugin-google-analyticsimport * 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