Skip to content

Commit 990e553

Browse files
Josh-Cenaslorber
authored andcommitted
fix(preset-classic): install the right plugin for googleTagManager (#8597)
1 parent 4cd2c65 commit 990e553

File tree

1 file changed

+5
-2
lines changed
  • packages/docusaurus-preset-classic/src

1 file changed

+5
-2
lines changed

packages/docusaurus-preset-classic/src/index.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ export default function preset(
8383
}
8484
if (googleTagManager) {
8585
plugins.push(
86-
makePluginConfig('@docusaurus/plugin-google-gtag', googleTagManager),
86+
makePluginConfig(
87+
'@docusaurus/plugin-google-tag-manager',
88+
googleTagManager,
89+
),
8790
);
8891
}
8992
if (isProd && sitemap !== false) {
@@ -93,7 +96,7 @@ export default function preset(
9396
throw new Error(
9497
`Unrecognized keys ${Object.keys(rest).join(
9598
', ',
96-
)} found in preset-classic configuration. The allowed keys are debug, docs, blog, pages, sitemap, theme, googleAnalytics, gtag. Check the documentation: https://docusaurus.io/docs/using-plugins#docusauruspreset-classic for more information on how to configure individual plugins.`,
99+
)} found in preset-classic configuration. The allowed keys are debug, docs, blog, pages, sitemap, theme, googleAnalytics, gtag, and googleTagManager. Check the documentation: https://docusaurus.io/docs/using-plugins#docusauruspreset-classic for more information on how to configure individual plugins.`,
97100
);
98101
}
99102

0 commit comments

Comments
 (0)