Merge pull request #8027 from ToolJet/docs/gtm

[docs] updated preset from ga_mid to gtm
This commit is contained in:
Adish M 2023-10-26 14:38:42 +05:30 committed by GitHub
commit 2c687cfc54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -127,11 +127,9 @@ module.exports = {
customCss: require.resolve('./src/css/custom.css'),
},
sitemap: {},
gtag: isProd
googleTagManager: isProd
? {
trackingID: process.env.GA_MID,
// Optional fields.
anonymizeIP: true, // Should IPs be anonymized?
containerId: process.env.GTM,
}
: undefined,
},

View file

@ -1,7 +1,7 @@
[build]
base = "docs/"
publish = "build"
command = "GA_MID=$GA_MID ALGOLIA_API_KEY=$ALGOLIA_API_KEY npm run build"
command = "GTM=$GTM ALGOLIA_API_KEY=$ALGOLIA_API_KEY npm run build"
[template.environment]
NODE_ENV = "production"