-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: google analytics #15451
feat: google analytics #15451
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #15451 +/- ##
===========================================
+ Coverage 40.86% 44.15% +3.28%
===========================================
Files 1609 1614 +5
Lines 161806 167904 +6098
Branches 3786 4075 +289
===========================================
+ Hits 66119 74134 +8015
+ Misses 95239 93299 -1940
- Partials 448 471 +23 ☔ View full report in Codecov by Sentry. |
このPRによるapi.jsonの差分 差分はこちら--- base
+++ head
@@ -9499,6 +9499,12 @@
"enableTestcaptcha": {
"type": "boolean"
},
+ "googleAnalyticsMeasurementId": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
"swPublickey": {
"type": [
"string",
@@ -10006,6 +10012,7 @@
"enableTurnstile",
"turnstileSiteKey",
"enableTestcaptcha",
+ "googleAnalyticsMeasurementId",
"swPublickey",
"mascotImageUrl",
"bannerUrl",
@@ -17359,6 +17366,12 @@
"enableTestcaptcha": {
"type": "boolean"
},
+ "googleAnalyticsMeasurementId": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
"sensitiveMediaDetection": {
"type": "string",
"enum": [
@@ -83243,6 +83256,12 @@
"enableTestcaptcha": {
"type": "boolean"
},
+ "googleAnalyticsMeasurementId": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
"swPublickey": {
"type": [
"string",
@@ -83436,6 +83455,7 @@
"enableTurnstile",
"turnstileSiteKey",
"enableTestcaptcha",
+ "googleAnalyticsMeasurementId",
"swPublickey",
"mascotImageUrl",
"bannerUrl", |
packages/frontend/src/router/main.ts
Outdated
|
||
analytics.page({ | ||
path: ctx.path, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replaceに反応しないのでchangeイベントで取ったほうがいいかも
(ページタイトルの切り替わりがrouterのイベントのタイミングと一致しないのでpageMetadataとタイミングを合わせて送信する必要がありそう) |
issueの流れ見てない人にとってタイトルで把握しづらいと思ったのでタイトル変えました |
最低限の動作はできた |
Thank you 🙏 |
What
Resolve #15426
Why
Additional info (optional)
Checklist