This is an automated email from the ASF dual-hosted git repository.

linhill pushed a commit to branch new-official-website
in repository https://gitbox.apache.org/repos/asf/rocketmq-site.git


The following commit(s) were added to refs/heads/new-official-website by this 
push:
     new df104d8d5 [ISSUE #303] Add google and baidu analytics
     new 625af003a Merge pull request #350 from zhouxinyu/new-official-website
df104d8d5 is described below

commit df104d8d57f45c4b858b7d2bcce52cb8bfaa65f8
Author: 尘央 <[email protected]>
AuthorDate: Thu Oct 20 13:00:26 2022 +0800

    [ISSUE #303] Add google and baidu analytics
---
 docusaurus.config.js | 9 +++++++++
 package.json         | 2 ++
 2 files changed, 11 insertions(+)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index e283f421d..2e6ad33de 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -64,8 +64,17 @@ const darkCodeTheme = 
require("prism-react-renderer/themes/dracula");
           },
         }),
       ],
+      [
+        '@docusaurus/plugin-google-analytics',
+        {
+          trackingID: 'UA-89603173-1',
+        },
+      ],
     ],
     plugins: [
+      [require.resolve('docusaurus-plugin-baidu-tongji'), {
+        token: '36428f2b841d08e7405724cbf7f860d2'
+      }],
       [
         "@docusaurus/plugin-content-blog",
         {
diff --git a/package.json b/package.json
index 85a8b6300..21b00bbac 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
   "dependencies": {
     "@docusaurus/core": "^2.1.0",
     "@docusaurus/plugin-client-redirects": "^2.1.0",
+    "@docusaurus/plugin-google-analytics": "^2.1.0",
     "@docusaurus/preset-classic": "^2.1.0",
     "@emotion/react": "^11.9.3",
     "@emotion/styled": "^11.9.3",
@@ -27,6 +28,7 @@
     "animate.css": "^4.1.1",
     "clsx": "^1.1.1",
     "docusaurus": "^1.14.7",
+    "docusaurus-plugin-baidu-tongji": "^0.0.0-beta.4",
     "file-loader": "^6.2.0",
     "prism-react-renderer": "^1.2.1",
     "react": "^17.0.1",

Reply via email to