Skip to content

Commit 9066b80

Browse files
authored
chore(google-tag-manager): switch to Docusaurus preset (#3280)
1 parent 96d7552 commit 9066b80

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

docusaurus.config.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = {
3030
'@docusaurus/preset-classic',
3131
/** @type {import('@docusaurus/preset-classic').Options} */
3232
{
33-
// Will be passed to @docusaurus/plugin-content-docs (false to disable)
33+
// Will be passed to @docusaurus/plugin-content-docs (false to disable).
3434
docs: {
3535
routeBasePath: '/',
3636
sidebarPath: require.resolve('./sidebars.js'),
@@ -60,6 +60,10 @@ module.exports = {
6060
},
6161
},
6262
},
63+
// Will be passed to @docusaurus/plugin-google-tag-manager.
64+
googleTagManager: {
65+
containerId: 'GTM-TKMGCBC',
66+
},
6367
// Will be passed to @docusaurus/theme-classic.
6468
theme: {
6569
customCss: [
@@ -269,9 +273,6 @@ module.exports = {
269273
},
270274
],
271275
},
272-
tagManager: {
273-
trackingID: 'GTM-TKMGCBC',
274-
},
275276
prism: {
276277
theme: { plain: {}, styles: [] },
277278
// https://github.com/FormidableLabs/prism-react-renderer/blob/5a1c93592c6475fb230bfcb8a9666b72b331638b/packages/generate-prism-languages/index.ts#L9-L24
@@ -297,7 +298,6 @@ module.exports = {
297298
},
298299
},
299300
],
300-
'@ionic-internal/docusaurus-plugin-tag-manager',
301301
function (context, options) {
302302
return {
303303
name: 'ionic-docs-ads',

package-lock.json

-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"@docusaurus/mdx-loader": "^2.4.3",
4242
"@docusaurus/plugin-client-redirects": "^2.4.3",
4343
"@docusaurus/preset-classic": "^2.4.3",
44-
"@ionic-internal/docusaurus-plugin-tag-manager": "^2.0.0",
4544
"@ionic-internal/ionic-ds": "^7.0.0",
4645
"@mdx-js/react": "^1.6.22",
4746
"@prismicio/client": "^6.4.2",

0 commit comments

Comments
 (0)