diff --git a/.ga b/.ga deleted file mode 100644 index ac35de79389b27705e3f7136c8ee59df9516f081..0000000000000000000000000000000000000000 --- a/.ga +++ /dev/null @@ -1,3 +0,0 @@ -{ - "code":"UA-72788897-6" -} diff --git a/config/config.js b/config/config.js index 978ee3e98ea65874cc04c856f2dc929d0176b6d9..3e2dfa472ea653292c40919f1e4fb60b8e31ccc4 100644 --- a/config/config.js +++ b/config/config.js @@ -34,6 +34,12 @@ export default { : {}), }, ], + [ + 'umi-plugin-ga', + { + code: 'UA-72788897-6', + }, + ], ], define: { APP_TYPE: process.env.APP_TYPE || '', diff --git a/package.json b/package.json index a096033f86c4922f26fffb06cb25cd4717030947..0f856a8f5dec4b767b572c9e66fb3e27d5abf57f 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,8 @@ "stylelint-config-prettier": "^4.0.0", "stylelint-config-standard": "^18.0.0", "umi": "^2.0.1", - "umi-plugin-react": "^1.0.1" + "umi-plugin-react": "^1.0.1", + "umi-plugin-ga": "^1.0.2" }, "optionalDependencies": { "puppeteer": "^1.6.0"