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

Adds tracking when expanding items on the Stats: Post Stats view #17552

Merged
merged 4 commits into from
Nov 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ workspace 'WordPress.xcworkspace'
## ===================================
##
def wordpress_shared
pod 'WordPressShared', '~> 1.16.2'
pod 'WordPressShared', '~> 1.17.0-beta.1'
#pod 'WordPressShared', :git => 'https://github.com/wordpress-mobile/WordPress-iOS-Shared.git', :tag => ''
#pod 'WordPressShared', :git => 'https://github.com/wordpress-mobile/WordPress-iOS-Shared.git', :branch => ''
#pod 'WordPressShared', :git => 'https://github.com/wordpress-mobile/WordPress-iOS-Shared.git', :commit => ''
Expand Down
10 changes: 5 additions & 5 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ PODS:
- WordPressShared (~> 1.15-beta)
- wpxmlrpc (~> 0.9)
- WordPressMocks (0.0.15)
- WordPressShared (1.16.2):
- WordPressShared (1.17.0-beta.1):
- CocoaLumberjack (~> 3.4)
- FormatterKit/TimeIntervalFormatter (~> 1.8)
- WordPressUI (1.12.2)
Expand Down Expand Up @@ -555,7 +555,7 @@ DEPENDENCIES:
- WordPressAuthenticator (~> 1.42.1)
- WordPressKit (~> 4.44.0-beta)
- WordPressMocks (~> 0.0.15)
- WordPressShared (~> 1.16.2)
- WordPressShared (~> 1.17.0-beta.1)
- WordPressUI (~> 1.12.2)
- WPMediaPicker (~> 1.7.2)
- Yoga (from `https://raw.githubusercontent.com/wordpress-mobile/gutenberg-mobile/v1.66.0/third-party-podspecs/Yoga.podspec.json`)
Expand All @@ -566,6 +566,7 @@ SPEC REPOS:
https://github.com/wordpress-mobile/cocoapods-specs.git:
- WordPressAuthenticator
- WordPressKit
- WordPressShared
- WordPressUI
trunk:
- 1PasswordExtension
Expand Down Expand Up @@ -607,7 +608,6 @@ SPEC REPOS:
- WordPress-Aztec-iOS
- WordPress-Editor-iOS
- WordPressMocks
- WordPressShared
- WPMediaPicker
- wpxmlrpc
- ZendeskCommonUISDK
Expand Down Expand Up @@ -812,7 +812,7 @@ SPEC CHECKSUMS:
WordPressAuthenticator: 111793c08fa8e9d9a72aed5b33a094c91ff4fd82
WordPressKit: 7fe46752fe65808f80163ae135bb5c3f081d108b
WordPressMocks: 6b52b0764d9939408151367dd9c6e8a910877f4d
WordPressShared: 6f4d949aa3ec8c3b9c24f5aa601473f087badd24
WordPressShared: 3f365c6d5ae8fc1615f7f30aac7f9f78f1dd70fb
WordPressUI: c573f4b5c2e5d0ffcebe69ecf86ae75ab7b6ff4d
WPMediaPicker: d5ae9a83cd5cc0e4de46bfc1c59120aa86658bc3
wpxmlrpc: bf55a43a7e710bd2a4fb8c02dfe83b1246f14f13
Expand All @@ -826,6 +826,6 @@ SPEC CHECKSUMS:
ZendeskSupportSDK: 3a8e508ab1d9dd22dc038df6c694466414e037ba
ZIPFoundation: e27423c004a5a1410c15933407747374e7c6cb6e

PODFILE CHECKSUM: 70e2c1b2bb057852c4af271041294e98678f6963
PODFILE CHECKSUM: 20da29455383f5750e70430df408221693ac799b

COCOAPODS: 1.10.1
Original file line number Diff line number Diff line change
Expand Up @@ -1748,6 +1748,12 @@ + (TracksEventPair *)eventPairForStat:(WPAnalyticsStat)stat
case WPAnalyticsStatStatsItemTappedInsightsAddStat:
eventName = @"stats_add_insight_item_tapped";
break;
case WPAnalyticsStatStatsItemTappedPostStatsMonthsYears:
eventName = @"stats_posts_and_pages_months_years_item_tapped";
break;
case WPAnalyticsStatStatsItemTappedPostStatsRecentWeeks:
eventName = @"stats_posts_and_pages_recent_weeks_item_tapped";
break;
case WPAnalyticsStatStatsItemTappedInsightsCustomizeDismiss:
eventName = @"stats_customize_insights_dismiss_item_tapped";
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,10 @@ private extension StatSection {
return .statsItemTappedVideoTapped
case .insightsAddInsight:
return .statsItemTappedInsightsAddStat
case .postStatsMonthsYears:
return .statsItemTappedPostStatsMonthsYears
case .postStatsRecentWeeks:
return .statsItemTappedPostStatsRecentWeeks
default:
return nil
}
Expand Down