From 0ea44a8c719fb9b8fe2cd87a3357aa06b6bacd06 Mon Sep 17 00:00:00 2001 From: Adriaan Knapen Date: Mon, 30 Jan 2023 10:23:55 +0200 Subject: [PATCH] fix(preset-classic): Pass Google Tag Manager configuration to correct plugin The current implementation of the plugin configuration builder of preset-classic incorrectly sets the configuration for the `googleTagManager`-tag. It tries to pass the Google Tag Manager configuration to the legacy GTag plugin, instead of the new Google Tag Manager plugin. This change routes the configuration to the correct plugin. --- packages/docusaurus-preset-classic/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus-preset-classic/src/index.ts b/packages/docusaurus-preset-classic/src/index.ts index c1cc099c39bd..6bcd3a56033a 100644 --- a/packages/docusaurus-preset-classic/src/index.ts +++ b/packages/docusaurus-preset-classic/src/index.ts @@ -83,7 +83,7 @@ export default function preset( } if (googleTagManager) { plugins.push( - makePluginConfig('@docusaurus/plugin-google-gtag', googleTagManager), + makePluginConfig('@docusaurus/plugin-google-tag-manager', googleTagManager), ); } if (isProd && sitemap !== false) {