Skip to content

Commit

Permalink
Replace deprecated Google Analytics property with GA4
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim committed Jul 7, 2023
1 parent 8641e8a commit 868c07b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ module.exports = {
redirects: [
{ to: '/spicedb-dedicated/overview', from: '/products/dedicated' },
{ to: '/spicedb-self-hosted/overview', from: '/products/enterprise' },
{ to: '/spicedb-self-hosted/overview', from: '/spicedb-enterprise/overview' },
{ to: '/spicedb-self-hosted/overview', from: '/spicedb-enterprise/overview' },
{ to: '/spicedb-serverless/overview', from: '/products/serverless' },
{ to: '/reference/clients', from: '/reference/zed' },
{
Expand All @@ -112,6 +112,13 @@ module.exports = {
],
},
],
[
'@docusaurus/plugin-google-gtag',
{
trackingID: env('GOOGLE_ANALYTICS_GA4', 'G-faketest'),
anonymizeIP: false,
},
],
],
presets: [
[
Expand All @@ -125,9 +132,6 @@ module.exports = {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/authzed/docs/edit/main',
},
googleAnalytics: {
trackingID: env('GOOGLE_ANALYTICS_UA', 'UA-faketest'),
},
sitemap: { changefreq: 'daily' },
blog: false,
pages: false,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@docusaurus/core": "^2.0.1",
"@docusaurus/module-type-aliases": "^2.0.1",
"@docusaurus/plugin-client-redirects": "^2.0.1",
"@docusaurus/plugin-google-gtag": "2.0.1",
"@docusaurus/preset-classic": "^2.0.1",
"@mdx-js/react": "^1.6.21",
"amplitude-js": "^8.9.1",
Expand Down

0 comments on commit 868c07b

Please sign in to comment.