Skip to content

Commit ab9b871

Browse files
committed
feat(gitbook): add Google Analytics
1 parent 40444ac commit ab9b871

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

book.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"include-codeblock",
1515
"richquotes",
1616
"edit-link",
17-
"japanese-support"
17+
"japanese-support",
18+
"ga"
1819
],
1920
"pluginsConfig": {
2021
"github-buttons": {
@@ -26,6 +27,9 @@
2627
"edit-link": {
2728
"base": "https://github.com/azu/JavaScript-Plugin-Architecture/edit/master/",
2829
"label": "Edit This Page"
30+
},
31+
"ga": {
32+
"token": "UA-2184335-16"
2933
}
3034
}
3135
}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"espower-babel": "^3.3.0",
4242
"gitbook-cli": "^0.3.6",
4343
"gitbook-plugin-edit-link": "^1.4.1",
44+
"gitbook-plugin-ga": "^0.2.1",
4445
"gitbook-plugin-github-buttons": "^1.2.2",
4546
"gitbook-plugin-include-codeblock": "^1.4.0",
4647
"gitbook-plugin-japanese-support": "0.0.1",

0 commit comments

Comments
 (0)