Skip to content

Commit 9a7fee9

Browse files
committed
Add gogle tag manager plugin and setup google tag account
1 parent 68ae63b commit 9a7fee9

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

docs/docusaurus.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ const config = {
6262
indexDocs: true
6363
}
6464
],
65+
[
66+
'@docusaurus/plugin-google-gtag',
67+
{
68+
trackingID: 'G-92CWLXVKWL',
69+
anonymizeIP: true
70+
}
71+
],
6572
'./src/plugins/docusaurus-link-library-plugin'
6673
],
6774

docs/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"dependencies": {
1919
"@cmfcmf/docusaurus-search-local": "^0.11.0",
2020
"@docusaurus/core": "2.2.0",
21+
"@docusaurus/plugin-google-gtag": "^2.2.0",
2122
"@docusaurus/preset-classic": "2.2.0",
2223
"@mdx-js/react": "^1.6.22",
2324
"clsx": "^1.2.0",

docs/yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@
15581558
"@docusaurus/utils-validation" "2.2.0"
15591559
tslib "^2.4.0"
15601560

1561-
"@docusaurus/[email protected]":
1561+
"@docusaurus/[email protected]", "@docusaurus/plugin-google-gtag@^2.2.0":
15621562
version "2.2.0"
15631563
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-2.2.0.tgz#7b086d169ac5fe9a88aca10ab0fd2bf00c6c6b12"
15641564
integrity sha512-6SOgczP/dYdkqUMGTRqgxAS1eTp6MnJDAQMy8VCF1QKbWZmlkx4agHDexihqmYyCujTYHqDAhm1hV26EET54NQ==

0 commit comments

Comments
 (0)