Skip to content

Commit

Permalink
docs: fix for Google Analytics instructions (vuejs#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
markhoney authored and ulivz committed Dec 25, 2018
1 parent 78f24f3 commit fd09bad
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/docs/docs/miscellaneous/migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,26 @@ sidebar: auto

### ga <Badge text="replaced"/>

GA has been separated into a standalone plugin [@vuepress/google-analytics](../plugin/official/plugin-google-analytics.md).
GA has been separated into a standalone plugin [@vuepress/plugin-google-analytics](../plugin/official/plugin-google-analytics.md).

::: upgrade

1. Install `@vuepress/google-analytics`:
1. Install `@vuepress/plugin-google-analytics`:

```bash
yarn add @vuepress/google-analytics -D
yarn add -D @vuepress/plugin-google-analytics
```

2. Update `vuepress/config.js`:

```diff
module.exports = {
- markdown: {
- config(md) { /* ... */ }
- },
+ extendMarkdown(md) { /* ... */ }
- ga: 'UA-12345678-9'
},
plugins: {
+ '@vuepress/google-analytics': {
+ ga: 'UA-12345678-9'
+ }
}
```
:::
Expand Down

0 comments on commit fd09bad

Please sign in to comment.