---
title: 百度统计
author: pengzhanbo
createTime: 2024/03/06 12:22:57
permalink: /config/plugins/baidu-tongji/
---

## 概述

为站点添加 百度统计。该插件默认不启用。

关联插件： [@vuepress-plume/plugin-baidu-tongji](https://github.com/pengzhanbo/vuepress-theme-plume/tree/main/plugins/plugin-baidu-tongji)

## 配置

### key

- 类型：`string`
- 默认值：`''`

配置百度统计的key

### 启用

```ts{7-9}
import { plumeTheme } from 'vuepress-theme-plume'
import { defineUserConfig } from 'vuepress'

export default defineUserConfig({
  theme: plumeTheme({
    plugins: {
      baiduTongji: {
        key: '你的百度统计key'
      }
    }
  }),
})
```
