diff --git a/docusaurus.config.js b/docusaurus.config.js index ff21f9d..ff003d5 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -80,6 +80,14 @@ const config = { require.resolve("./src/css/custom.css"), ], }, + ...(process.env.GTAG + ? { + gtag: { + trackingID: process.env.GTAG, + anonymizeIP: true, + }, + } + : {}), }), ], ],