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

GoogleAnalytics対応 #15426

Open
1 task
syuilo opened this issue Feb 8, 2025 · 9 comments · May be fixed by #15451
Open
1 task

GoogleAnalytics対応 #15426

syuilo opened this issue Feb 8, 2025 · 9 comments · May be fixed by #15451
Labels
✨Feature This adds/improves/enhances a feature 🔥high priority

Comments

@syuilo
Copy link
Member

syuilo commented Feb 8, 2025

Summary

GoogleAnalytics対応

Purpose

要望がある

Do you want to implement this feature yourself?

  • Yes, I will implement this by myself and send a pull request
@syuilo syuilo added the ✨Feature This adds/improves/enhances a feature label Feb 8, 2025
@syuilo
Copy link
Member Author

syuilo commented Feb 8, 2025

GAのSDKってこれかしら
https://www.npmjs.com/package/@analytics/google-analytics

@syuilo
Copy link
Member Author

syuilo commented Feb 8, 2025

リポジトリが個人っぽいから公式ではなさそう

@samunohito
Copy link
Member

公式はなさそうです。
ただ、上記パッケージでも良いかと思います。老舗だし、スター多いし、メンテ継続されてるし…

@u1-liquid
Copy link
Contributor

公式のガイドはhtmlにgaのidを含むコードスニペットを載せろで終わるので、配布のSDKはありません
https://developers.google.com/analytics/devguides/collection/ga4/tag-options
https://support.google.com/tagmanager/answer/14847097

@anatawa12
Copy link
Member

MisskeyのGoogle Analytics、 ノートの詳細ページに行くことなんかはあんまり多くない(TL pageで済ますことも多い)だろうためpage view数も正しく計測できないと思うし、deck ui だとユーザページの計測も難しいので、有効性あんまり高くない気もしている。

要望してる人、ちゃんと計測できない可能性をどのくらい認知してるかもわからないと思うので調査してからにしたい気持ち

@syuilo
Copy link
Member Author

syuilo commented Feb 9, 2025

ほむん

@syuilo
Copy link
Member Author

syuilo commented Feb 9, 2025

deck ui だとユーザページの計測も難しい

これは難しいと考える理由は何かしら?

@anatawa12
Copy link
Member

deck uiだとウィンドウ表示になるから、viewカウント等難しいと認識した(google analysisがページ内ウィンドウを正しく扱う仕組みがあると認識してないだけなのであったらごめんなさい

@u1-liquid
Copy link
Contributor

https://developers.google.com/analytics/devguides/collection/ga4/views?hl=ja&client_type=gtag

MisskeyIO#793

@kakkokari-gtyih kakkokari-gtyih linked a pull request Feb 11, 2025 that will close this issue
5 tasks
@syuilo syuilo linked a pull request Feb 11, 2025 that will close this issue
5 tasks
@kakkokari-gtyih kakkokari-gtyih removed this from the v2025.2.1 milestone Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨Feature This adds/improves/enhances a feature 🔥high priority
Projects
Development

Successfully merging a pull request may close this issue.

5 participants