mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-08 05:42:34 +02:00
fix(preset-classic): install the right plugin for googleTagManager (#8597)
This commit is contained in:
parent
847a401669
commit
0425917a50
1 changed files with 5 additions and 2 deletions
|
@ -83,7 +83,10 @@ export default function preset(
|
||||||
}
|
}
|
||||||
if (googleTagManager) {
|
if (googleTagManager) {
|
||||||
plugins.push(
|
plugins.push(
|
||||||
makePluginConfig('@docusaurus/plugin-google-gtag', googleTagManager),
|
makePluginConfig(
|
||||||
|
'@docusaurus/plugin-google-tag-manager',
|
||||||
|
googleTagManager,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (isProd && sitemap !== false) {
|
if (isProd && sitemap !== false) {
|
||||||
|
@ -93,7 +96,7 @@ export default function preset(
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Unrecognized keys ${Object.keys(rest).join(
|
`Unrecognized keys ${Object.keys(rest).join(
|
||||||
', ',
|
', ',
|
||||||
)} 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.`,
|
)} 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.`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue