Commit ebc23423 authored by 陈帅's avatar 陈帅

add ga when deploying site

parent d762d1d7
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
'umi-plugin-ga', 'umi-plugin-ga',
{ {
code: 'UA-72788897-6', code: 'UA-72788897-6',
judge: () => window.location.hostname === 'preview.pro.ant.design', judge: () => process.env.APP_TYPE === 'site',
}, },
], ],
], ],
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
"stylelint-config-standard": "^18.0.0", "stylelint-config-standard": "^18.0.0",
"umi": "^2.1.1", "umi": "^2.1.1",
"umi-plugin-react": "^1.1.1", "umi-plugin-react": "^1.1.1",
"umi-plugin-ga": "^1.1.1" "umi-plugin-ga": "^1.1.2"
}, },
"optionalDependencies": { "optionalDependencies": {
"puppeteer": "^1.9.0" "puppeteer": "^1.9.0"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment