Skip to content

Commit

Permalink
Add Google Tag Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
ltm committed Dec 7, 2021
1 parent ab6ba5a commit 2b70768
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
11 changes: 4 additions & 7 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ module.exports = {
},
],
},
tagManager: {
trackingID: 'GTM-TKMGCBC',
},
prism: {
theme: { plain: {}, styles: [] },
// https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/vendor/prism/includeLangs.js
Expand Down Expand Up @@ -251,14 +254,8 @@ module.exports = {
],
'@docusaurus/plugin-content-pages',
'@docusaurus/plugin-debug',
// '@docusaurus/plugin-google-analytics'
[
'@docusaurus/plugin-google-gtag',
{
trackingID: 'UA-44023830-8',
},
],
'@docusaurus/plugin-sitemap',
'@ionic-internal/docusaurus-plugin-tag-manager',
],
themes: [
[
Expand Down
23 changes: 14 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@docusaurus/preset-classic": "^0.0.0-4192",
"@docusaurus/theme-classic": "^0.0.0-4192",
"@docusaurus/theme-search-algolia": "^0.0.0-4192",
"@ionic-internal/docusaurus-plugin-tag-manager": "^2.0.0",
"@ionic-internal/ionic-ds": "^7.0.0",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.1.1",
Expand Down

0 comments on commit 2b70768

Please sign in to comment.