Version: 2.0.0-alpha.70
π¦ plugin-google-gtag
The default Global Site Tag (gtag.js) plugin. It is a JavaScript tagging framework and API that allows you to send event data to Google Analytics, Google Ads, and Google Marketing Platform. This section describes how to configure a Docusaurus site to enable global site tag for Google Analytics.
#
Installation- npm
- Yarn
tip
If you have installed @docusaurus/preset-classic
, you don't need to install it as a dependency.
#
Configurationdocusaurus.config.js