Skip to content

Commit 1192725

Browse files
correct GTM
1 parent b24b99c commit 1192725

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

docusaurus-docs/docusaurus.config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ const config: Config = {
4646
},
4747

4848
plugins: [
49+
[
50+
require.resolve('docusaurus-gtm-plugin'),
51+
{
52+
id: 'GTM-TZTPBZBZ',
53+
}
54+
],
4955
[
5056
'@docusaurus/plugin-content-docs',
5157
{
@@ -222,12 +228,6 @@ const config: Config = {
222228
darkTheme: prismThemes.dracula,
223229
},
224230
} satisfies Preset.ThemeConfig,
225-
scripts: [
226-
{
227-
src: 'https://www.googletagmanager.com/gtag/js?id=GTM-TZTPBZBZ',
228-
async: true,
229-
},
230-
],
231231
};
232232

233233
export default config;

docusaurus-docs/package-lock.json

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docusaurus-docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@easyops-cn/docusaurus-search-local": "^0.52.1",
2121
"@mdx-js/react": "^3.0.0",
2222
"clsx": "^2.0.0",
23+
"docusaurus-gtm-plugin": "^0.0.2",
2324
"prism-react-renderer": "^2.3.0",
2425
"react": "^19.0.0",
2526
"react-dom": "^19.0.0",

0 commit comments

Comments
 (0)