diff --git a/packages/docs/docs/miscellaneous/migration-guide.md b/packages/docs/docs/miscellaneous/migration-guide.md index 3997ee6531..8ca7e9cfc0 100644 --- a/packages/docs/docs/miscellaneous/migration-guide.md +++ b/packages/docs/docs/miscellaneous/migration-guide.md @@ -8,24 +8,26 @@ sidebar: auto ### ga -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' ++ } } ``` :::