chore: prepare v2.0.0-beta.7 release (#5713)

* chore: prepare v2.0.0-beta.7 release

* v2.0.0-beta.7
This commit is contained in:
Alexey Pyltsyn 2021-10-15 16:31:01 +03:00 committed by GitHub
parent 1361a5a38e
commit 877373e108
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
103 changed files with 13646 additions and 134 deletions

View file

@ -0,0 +1,34 @@
---
id: plugin-google-analytics
title: '📦 plugin-google-analytics'
slug: '/api/plugins/@docusaurus/plugin-google-analytics'
---
The default [Google Analytics](https://developers.google.com/analytics/devguides/collection/analyticsjs/) plugin. It is a JavaScript library for measuring how users interact with your website **in the production build**. If you are using Google Analytics 4 you might need to consider using [plugin-google-gtag](./plugin-google-gtag.md) instead.
## Installation {#installation}
```bash npm2yarn
npm install --save @docusaurus/plugin-google-analytics
```
:::tip
If you have installed `@docusaurus/preset-classic`, you don't need to install it as a dependency.
:::
## Configuration {#configuration}
```js title="docusaurus.config.js"
module.exports = {
plugins: ['@docusaurus/plugin-google-analytics'],
themeConfig: {
googleAnalytics: {
trackingID: 'UA-141789564-1',
// Optional fields.
anonymizeIP: true, // Should IPs be anonymized?
},
},
};
```