Skip to content

Commit

Permalink
📈 (ContentKit): Add screen_view to Cur, Acts & Strs DetailsViews
Browse files Browse the repository at this point in the history
  • Loading branch information
macteuts committed Nov 2, 2024
1 parent ca4955f commit 73f7f90
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Modules/ContentKit/Sources/Views/ActivityDetailsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ public struct ActivityDetailsView: View {
.markdownTheme(.gitHub)
}
}
.onAppear {
AnalyticsManager.shared.logScreenView(screenName: "view_activity_details_view")
}
.toolbar {
#if DEVELOPER_MODE || TESTFLIGHT_BUILD
if let currentCaregiverID = self.caregiverManagerViewModel.currentCaregiver?.id {
Expand Down
3 changes: 3 additions & 0 deletions Modules/ContentKit/Sources/Views/CurriculumDetailsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ public struct CurriculumDetailsView: View {
}
}
}
.onAppear {
AnalyticsManager.shared.logScreenView(screenName: "view_curriculum_details_view")
}
.toolbar {
#if DEVELOPER_MODE || TESTFLIGHT_BUILD
if let currentCaregiverID = self.caregiverManagerViewModel.currentCaregiver?.id {
Expand Down
3 changes: 3 additions & 0 deletions Modules/ContentKit/Sources/Views/StoryDetailsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ public struct StoryDetailsView: View {
.markdownTheme(.gitHub)
}
}
.onAppear {
AnalyticsManager.shared.logScreenView(screenName: "view_story_details_view")
}
.toolbar {
#if DEVELOPER_MODE || TESTFLIGHT_BUILD
if let currentCaregiverID = self.caregiverManagerViewModel.currentCaregiver?.id {
Expand Down

0 comments on commit 73f7f90

Please sign in to comment.