Skip to content

Commit

Permalink
add :::danger admonition
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Dec 29, 2022
1 parent 8d6c7dc commit 414a61a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions website/docs/api/plugins/plugin-google-analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ slug: /api/plugins/@docusaurus/plugin-google-analytics

# 📦 plugin-google-analytics

:::caution Deprecated
import APITable from '@site/src/components/APITable';

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.

:::danger Deprecated

This plugin is deprecated, and will become useless on July 1, 2023.
This plugin is **deprecated**, and will become useless on July 1, 2023.

Google is [moving away from Universal Analytics](https://blog.google/products/marketingplatform/analytics/prepare-for-future-with-google-analytics-4/).

If you are still using this plugin with a `UA-*` tracking id, you should create a Google Analytics 4 account as soon as possible, and use [`@docusaurus/plugin-google-gtag`](./plugin-google-gtag.md) instead of this plugin. More details [here](https://github.com/facebook/docusaurus/issues/7221).

:::

import APITable from '@site/src/components/APITable';

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.

:::caution production only

This plugin is always inactive in development and **only active in production** to avoid polluting the analytics statistics.
Expand Down

0 comments on commit 414a61a

Please sign in to comment.