Skip to content

Commit

Permalink
ga を設定
Browse files Browse the repository at this point in the history
  • Loading branch information
Takeno-hito committed Apr 30, 2024
1 parent 762f997 commit 8554bf0
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 1 deletion.
20 changes: 19 additions & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const containerMdExtend = require('./detail-plugin.js');
const markdowinItCharts = require('markdown-it-charts');
//import markdownItMermaid from 'markdown-it-mermaid'
import { withMermaid } from "vitepress-plugin-mermaid";
import { head } from './ga-plugin';


// https://vitepress.dev/reference/site-config
Expand Down Expand Up @@ -138,6 +139,9 @@ export default withMermaid({
// { text: 'Chapter 5', link: '/guide/chapter-5' },
// { text: 'Chapter 6', link: '/guide/chapter-6' },
]
},
{
text: 'プライバシーポリシー', link: '/privacy-policy'
}
],

Expand All @@ -149,5 +153,19 @@ export default withMermaid({
link: 'https://trap.jp'
}
]
}
},
head: [
[
'script',
{
async: true,
src: 'https://www.googletagmanager.com/gtag/js?id=G-977V87X2CQ',
},
],
[
'script',
{},
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-977V87X2CQ');",
],
],
})
16 changes: 16 additions & 0 deletions docs/.vitepress/ga-plugin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
head: [
[
'script',
{
async: true,
src: 'https://www.googletagmanager.com/gtag/js?id=G-977V87X2CQ',
},
],
[
'script',
{},
"window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-977V87X2CQ');",
],
],
}
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ hero:
- theme: alt
text: このテキストについて
link: /about
- theme: alt
text: プライバシーポリシー
link: /privacy-policy

features:
- title: 0. はじめに
Expand Down
13 changes: 13 additions & 0 deletions docs/privacy-policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: プライバシーポリシー
prev: false
next: false
---

# プライバシーポリシー

当サイトでは、Google によるアクセス解析ツール「Googleアナリティクス」を使用しています。
Google アナリティクスはデータの収集のためにCookieを使用しています。
このデータは匿名で収集されており、個人を特定するものではありません。

この機能は Cookie を無効にすることで収集を拒否することが出来ますので、お使いのブラウザの設定をご確認ください。この規約に関しての詳細は [Google アナリティクスサービス利用規約](https://marketingplatform.google.com/about/analytics/terms/jp/) や、[Google ポリシーと規約](https://policies.google.com/technologies/ads?hl=ja) をご覧ください。

0 comments on commit 8554bf0

Please sign in to comment.