rspress-plugin-google-analytics
v0.3.0
Published
rspress plugin for google analytics
Downloads
40
Maintainers
Readme
rspress-plugin-google-analytics
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