Skip to content

Commit

Permalink
Add GTAG to Docs website (#1292)
Browse files Browse the repository at this point in the history
* Add GTAG to Docs website

* Update lockfile

* Removing dotenv from 🦖.
  • Loading branch information
carloskelly13 committed Jul 26, 2023
1 parent e5142ca commit 24800c9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 31 deletions.
59 changes: 30 additions & 29 deletions pnpm-lock.yaml

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

13 changes: 11 additions & 2 deletions website/docusaurus.config.js
Expand Up @@ -21,7 +21,7 @@ async function createConfig() {

presets: [
[
'classic',
'@docusaurus/preset-classic',
/** @type {import("@docusaurus/preset-classic").Options} */
({
docs: {
Expand All @@ -45,7 +45,16 @@ async function createConfig() {
},
theme: {
customCss: [require.resolve('./src/css/custom.scss')]
}
},
...(process.env.VERCEL_ENV === 'production' && {
gtag: {
trackingID: process.env.GTAG_TRACKING_ID,
anonymizeIP: true
},
googleTagManager: {
containerId: process.env.GTM_CONTAINER_ID
}
})
})
]
],
Expand Down

1 comment on commit 24800c9

@vercel
Copy link

@vercel vercel bot commented on 24800c9 Jul 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.