Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Googleアナリティクスを組み込む #16

Open
jacoyutorius opened this issue Dec 13, 2021 · 3 comments
Open

Googleアナリティクスを組み込む #16

jacoyutorius opened this issue Dec 13, 2021 · 3 comments

Comments

@jacoyutorius
Copy link
Member

jacoyutorius commented Dec 13, 2021

改善詳細 / Details of Improvement

期待する見せ方・挙動 / Expected behavior

  • Googleアナリティクスのコンソールからページビュー等が見れるようになる

動作環境・ブラウザ / Environment

  • macOS / Windows / Linux / iOS / Android
  • Chrome / Safari / Firefox / Edge / Internet Explorer
@hmatsu47
Copy link
Collaborator

hmatsu47 commented Dec 13, 2021

GA を入れる場合は、↓のようなページも別途必要になりますね。そして「誰が確認するのか」のルールも。
https://www.mhlw.go.jp/kojinjouhouhogo/index.html
内容はこちらで勝手に用意するのではなくデジ庁経由で作成依頼&受け取るか、「本体」(主管する省庁?)側の個人情報保護方針ページへの外部リンクにするか、でしょうね。

(本当はこれだけでは GDPR 等への対応は不十分なはずなのですが、実質的には気にしなくてもよいのかな、と個人的には思います…あくまでも「個人的に」ですが)

@ww2or3ww
Copy link
Member

ビルド時に環境変数で上書きする感じですね。

- hugo --minify --baseURL=$URL --googleAnalytics=$GOOGLE_ANA_ID

なので、このリポジトリへの変更は発生しないかなと思いますが、
事前にちゃんと取れることくらいは確認しておいたほうが良さそうですね。(確認しておきます)

@jacoyutorius
Copy link
Member Author

jacoyutorius commented Dec 13, 2021

なるほど。
自分で書いといてあれですが、GAじゃなくて CloudWatch Rumのほうがいいかもと思いました(その場合でも個人情報保護方針のページは必要でしょうけど)

https://aws.amazon.com/jp/blogs/news/cloudwatch-rum/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants