Skip to content

Commit

Permalink
feat(sendsay-docs): add google analytics (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lullabyq committed Dec 27, 2022
1 parent 1bf073a commit 2aaf23b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
env:
NODE_ENV: CI
FORCE_COLOR: 1
GOOGLE_TAG_MANAGER_ID: ${{ secrets.GOOGLE_TAG_MANAGER_ID }}

steps:
- name: Checkout
Expand Down
4 changes: 4 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ const config = {
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
gtag: {
trackingID: process.env.GOOGLE_TAG_MANAGER_ID,
anonymizeIP: true,
},
sitemap: {
ignorePatterns: require('./config/sitemapIgnorePatterns'),
},
Expand Down

0 comments on commit 2aaf23b

Please sign in to comment.