Skip to content

Commit

Permalink
Fixing duplicate gtag events (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
robot-ux authored Jan 8, 2024
1 parent f05040e commit a302f1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
18 changes: 4 additions & 14 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ const config = {

plugins: [
require.resolve("docusaurus-plugin-image-zoom"),

[require.resolve('docusaurus-gtm-plugin'),
{
id: 'GTM-W9BVQXM', // GTM Container ID
preview: 'live',
}],

],

presets: [
Expand All @@ -57,15 +50,12 @@ const config = {
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
gtag: {
trackingID: 'G-LSRFL0KHRR',
anonymizeIP: true,
},
}),
],
[
'@docusaurus/plugin-google-gtag',
{
trackingID: 'G-LSRFL0KHRR',
anonymizeIP: true,
},
],
],

themeConfig:
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",
"clsx": "^1.1.1",
"docusaurus-gtm-plugin": "^0.0.2",
"docusaurus-plugin-image-zoom": "^0.1.1",
"file-loader": "^6.2.0",
"prism-react-renderer": "^1.2.1",
Expand Down

0 comments on commit a302f1a

Please sign in to comment.