Skip to content

Commit

Permalink
Merge pull request #232 from yktakaha4/disable-gtag
Browse files Browse the repository at this point in the history
disable gtag
  • Loading branch information
yktakaha4 authored Jan 4, 2024
2 parents 6308958 + 35d62d8 commit 3c248b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:

jobs:
lint:
name: lint
name: Lint
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
Expand All @@ -19,7 +19,7 @@ jobs:
- run: yarn lint

build:
name: build
name: Build
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
Expand All @@ -31,7 +31,7 @@ jobs:
- run: yarn build

test:
name: test
name: Test
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
Expand Down
12 changes: 7 additions & 5 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const metaUrl = 'https://yktakaha4.github.io/';
const metaDescription = 'yktakaha4のポートフォリオサイト';
const metaAuthor = 'yktakaha4';

// https://tagmanager.google.com/?pli=1&authuser=1#/container/accounts/6041789682/containers/85065748/workspaces/0/config
const enableGoogleAnalytics = false;
const gtagTrackingId = 'G-0BP6MEDMHQ';

const repositoryUrl = 'https://github.com/yktakaha4/yktakaha4.github.io';
Expand Down Expand Up @@ -62,10 +62,12 @@ const config: Config = {
theme: {
customCss: ['src/css/custom.css'],
},
gtag: {
trackingID: gtagTrackingId,
anonymizeIP: true,
},
gtag: enableGoogleAnalytics
? {
trackingID: gtagTrackingId,
anonymizeIP: true,
}
: undefined,
} satisfies Preset.Options,
],
],
Expand Down

0 comments on commit 3c248b3

Please sign in to comment.