Skip to main content

Google Analytics in Docusaurus

Docusaurus can manage multiple versions of your docs.

Install & Configure the Gtag Plugin

plugin-google-gtag

Generate trackingID

Goto google-analytics -> Admin -> Data Streams -> Add Stream -> Web Site

  1. Stream Name: Name to identify the stream
  2. Stream URL: Your website: https://example.com

Copy the MEASUREMENT ID and use it as trackingID to configure the plugin