Skip to content

Commit

Permalink
fix: Move Google Analytics out of theme config
Browse files Browse the repository at this point in the history
Docusaurus has issued a breaking change in which both `googleAnalytics`
and `gtag` plugins should be moved out of the `themeConfig`. This commit
does just that.

See: facebook/docusaurus#5832
  • Loading branch information
rscarrasco committed Nov 1, 2022
1 parent 25d71b2 commit f5f94dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ module.exports = {
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/dracula'),
},
googleAnalytics: {
trackingID: 'UA-37514928-10',
anonymizeIP: true,
},
algolia: {
// Apiato DocSearch Config File @ https://github.com/algolia/docsearch-configs/blob/master/configs/apiato.json
apiKey: '5a14b34a43f1bba00c8f096d48577fa8',
Expand All @@ -151,6 +147,10 @@ module.exports = {
},
}
},
googleAnalytics: {
trackingID: 'UA-37514928-10',
anonymizeIP: true,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
Expand Down

0 comments on commit f5f94dc

Please sign in to comment.