From 68b71102514bb9462ed06f167719c94ff8c11062 Mon Sep 17 00:00:00 2001 From: Momo Ozawa Date: Wed, 13 Oct 2021 17:02:25 +0100 Subject: [PATCH 01/15] Add: events for publicize nudge, blogging reminders nudge, and customize card --- .../Utility/Analytics/WPAnalyticsEvent.swift | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/WordPress/Classes/Utility/Analytics/WPAnalyticsEvent.swift b/WordPress/Classes/Utility/Analytics/WPAnalyticsEvent.swift index 03c717f51a63..c0c97470f2e8 100644 --- a/WordPress/Classes/Utility/Analytics/WPAnalyticsEvent.swift +++ b/WordPress/Classes/Utility/Analytics/WPAnalyticsEvent.swift @@ -89,6 +89,19 @@ import Foundation case readerRelatedPostFromOtherSiteClicked case readerRelatedPostFromSameSiteClicked + // Stats - Empty Stats nudges + case statsPublicizeNudgeShown + case statsPublicizeNudgeTapped + case statsPublicizeNudgeDismissed + case statsPublicizeNudgeCompleted + case statsBloggingRemindersNudgeShown + case statsBloggingRemindersNudgeTapped + case statsBloggingRemindersNudgeDismissed + case statsBloggingRemindersNudgeCompleted + + // Stats - Customize card + case statsCustomizeInsightsShown + // What's New - Feature announcements case featureAnnouncementShown case featureAnnouncementButtonTapped @@ -333,6 +346,28 @@ import Foundation case .readerRelatedPostFromSameSiteClicked: return "reader_related_post_from_same_site_clicked" + // Stats - Empty Stats nudges + case .statsPublicizeNudgeShown: + return "stats_publicize_nudge_shown" + case .statsPublicizeNudgeTapped: + return "stats_publicize_nudge_tapped" + case .statsPublicizeNudgeDismissed: + return "stats_publicize_nudge_dismissed" + case .statsPublicizeNudgeCompleted: + return "stats_publicize_nudge_completed" + case .statsBloggingRemindersNudgeShown: + return "stats_blogging_reminders_nudge_shown" + case .statsBloggingRemindersNudgeTapped: + return "stats_blogging_reminders_nudge_tapped" + case .statsBloggingRemindersNudgeDismissed: + return "stats_blogging_reminders_nudge_dismissed" + case .statsBloggingRemindersNudgeCompleted: + return "stats_blogging_reminders_nudge_completed" + + // Stats - Customize card + case .statsCustomizeInsightsShown: + return "stats_customize_insights_shown" + // What's New - Feature announcements case .featureAnnouncementShown: return "feature_announcement_shown" From 7c3148a1e2f2ea77459364915f77672a9ff02b37 Mon Sep 17 00:00:00 2001 From: Momo Ozawa Date: Thu, 14 Oct 2021 10:02:25 +0100 Subject: [PATCH 02/15] Add: extension method to track nudge event --- .../SiteStatsInsightsTableViewController.swift | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift index 8a9c29191e7d..b92b1101084e 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift @@ -622,3 +622,17 @@ extension SiteStatsInsightsTableViewController: NoResultsViewHost { static let manageInsightsButtonTitle = NSLocalizedString("Add stats card", comment: "Button title displayed when the user has removed all Insights from display.") } } + +// MARK: - Tracks Support + +private extension SiteStatsInsightsTableViewController { + + func trackNudgeEvent(_ event: WPAnalyticsEvent) { + if let blogId = SiteStatsInformation.sharedInstance.siteID, + let blog = Blog.lookup(withID: blogId, in: mainContext) { + WPAnalytics.track(event, properties: [:], blog: blog) + } else { + WPAnalytics.track(event) + } + } +} From 80dc1e3568dbc72ea4408b20a39d97df0f1c3f09 Mon Sep 17 00:00:00 2001 From: Momo Ozawa Date: Thu, 14 Oct 2021 10:04:01 +0100 Subject: [PATCH 03/15] Add: track nudge tapped for publicize --- .../Stats/Insights/SiteStatsInsightsTableViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift index b92b1101084e..11fd3195871c 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift @@ -466,6 +466,8 @@ extension SiteStatsInsightsTableViewController: SiteStatsInsightsDelegate { present(navigationController, animated: true) applyTableUpdates() + + trackNudgeEvent(.statsPublicizeNudgeTapped) } func growAudienceBloggingRemindersButtonTapped() { From 32434b52de0e7eb3200374f74fd0ccbfce4cd242 Mon Sep 17 00:00:00 2001 From: Momo Ozawa Date: Thu, 14 Oct 2021 10:04:29 +0100 Subject: [PATCH 04/15] Add: track nudge tapped for blogging reminders --- .../Stats/Insights/SiteStatsInsightsTableViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift index 11fd3195871c..43d07db5b202 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift @@ -483,6 +483,8 @@ extension SiteStatsInsightsTableViewController: SiteStatsInsightsDelegate { delegate: self) applyTableUpdates() + + trackNudgeEvent(.statsBloggingRemindersNudgeTapped) } func showAddInsight() { From 941d7c5c5deca947a1c5336aec07b5fbe5e46d10 Mon Sep 17 00:00:00 2001 From: Momo Ozawa Date: Thu, 14 Oct 2021 10:08:50 +0100 Subject: [PATCH 05/15] Add: track nudge completed for publicize --- .../Stats/Insights/SiteStatsInsightsTableViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift index 43d07db5b202..9344993fea85 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift @@ -554,6 +554,8 @@ extension SiteStatsInsightsTableViewController: SharingViewControllerDelegate { func didChangePublicizeServices() { viewModel?.markEmptyStatsNudgeAsCompleted() refreshTableView() + + trackNudgeEvent(.statsPublicizeNudgeCompleted) } } From d75d3dbfc1fdda18f149fda851c8ca30f6b98254 Mon Sep 17 00:00:00 2001 From: Momo Ozawa Date: Thu, 14 Oct 2021 10:09:04 +0100 Subject: [PATCH 06/15] Add: track nudge completed for blogging reminders --- .../Stats/Insights/SiteStatsInsightsTableViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift index 9344993fea85..ff097ef9fbc8 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift @@ -565,6 +565,8 @@ extension SiteStatsInsightsTableViewController: BloggingRemindersFlowDelegate { func didSetUpBloggingReminders() { viewModel?.markEmptyStatsNudgeAsCompleted() refreshTableView() + + trackNudgeEvent(.statsBloggingRemindersNudgeCompleted) } } From 1907b9c3c76c136a6cf5eb5d418a284a77552b33 Mon Sep 17 00:00:00 2001 From: Momo Ozawa Date: Fri, 15 Oct 2021 09:15:18 +0100 Subject: [PATCH 07/15] Add: track card shown for customize insights --- .../Stats/Insights/SiteStatsInsightsTableViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift index ff097ef9fbc8..74f568bf7bbb 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift @@ -223,6 +223,7 @@ private extension SiteStatsInsightsTableViewController { case InsightType.customize where !insightsToShow.contains(.customize): insightsToShow = insightsToShow.filter { $0 != .growAudience } insightsToShow.insert(.customize, at: 0) + WPAnalytics.trackEvent(.statsCustomizeInsightsShown) default: break } From abffcf1591a586ca20f5ae422f342035b5c19d19 Mon Sep 17 00:00:00 2001 From: Momo Ozawa Date: Fri, 15 Oct 2021 09:39:27 +0100 Subject: [PATCH 08/15] Add: track nudge shown for publicize and blogging reminders --- .../SiteStatsInsightsTableViewController.swift | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift index 74f568bf7bbb..8afb03af01f9 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift @@ -217,9 +217,10 @@ private extension SiteStatsInsightsTableViewController { insightsToShow = insightsToShow.filter { $0 != .growAudience || $0 != .customize } case .some(let item): switch item { - case is GrowAudienceCell.HintType where !insightsToShow.contains(.growAudience): + case let hintType as GrowAudienceCell.HintType where !insightsToShow.contains(.growAudience): insightsToShow = insightsToShow.filter { $0 != .customize } insightsToShow.insert(.growAudience, at: 0) + trackNudgeShown(for: hintType) case InsightType.customize where !insightsToShow.contains(.customize): insightsToShow = insightsToShow.filter { $0 != .growAudience } insightsToShow.insert(.customize, at: 0) @@ -644,4 +645,13 @@ private extension SiteStatsInsightsTableViewController { WPAnalytics.track(event) } } + + func trackNudgeShown(for hintType: GrowAudienceCell.HintType) { + switch hintType { + case .social: + trackNudgeEvent(.statsPublicizeNudgeShown) + case .bloggingReminders: + trackNudgeEvent(.statsBloggingRemindersNudgeShown) + } + } } From c887490904883d3863ba44d49bb2f7b1f8974ad9 Mon Sep 17 00:00:00 2001 From: Momo Ozawa Date: Fri, 15 Oct 2021 09:56:00 +0100 Subject: [PATCH 09/15] Add: track nudge dismissed for publicize and blogging reminders --- .../SiteStatsInsightsTableViewController.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift index 8afb03af01f9..1397a6130e4c 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift @@ -248,6 +248,8 @@ private extension SiteStatsInsightsTableViewController { } insightsToShow = insightsToShow.filter { $0 != .growAudience } pinnedItemStore?.markPinnedItemAsHidden(item) + + trackNudgeDismissed(for: item) } func refreshGrowAudienceCardIfNecessary() { @@ -654,4 +656,13 @@ private extension SiteStatsInsightsTableViewController { trackNudgeEvent(.statsBloggingRemindersNudgeShown) } } + + func trackNudgeDismissed(for hintType: GrowAudienceCell.HintType) { + switch hintType { + case .social: + trackNudgeEvent(.statsPublicizeNudgeDismissed) + case .bloggingReminders: + trackNudgeEvent(.statsBloggingRemindersNudgeDismissed) + } + } } From b4fb243fe419db5cf8b771d11b14d2799123b244 Mon Sep 17 00:00:00 2001 From: Momo Ozawa Date: Fri, 15 Oct 2021 10:17:27 +0100 Subject: [PATCH 10/15] Fix: return nil for itemToDisplay if view count is also nil The default view count 0 was being supplied to itemToDisplay, which was causing .social to be returned when it should have been returning nil. --- .../Insights/SiteStatsInsightsTableViewController.swift | 2 +- .../Stats/Insights/SiteStatsInsightsViewModel.swift | 2 +- .../Stats/Insights/SiteStatsPinnedItemStore.swift | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift index 1397a6130e4c..cbb03883d12d 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift @@ -211,7 +211,7 @@ private extension SiteStatsInsightsTableViewController { } func loadPinnedCards() { - let viewsCount = insightsStore.getAllTimeStats()?.viewsCount ?? 0 + let viewsCount = insightsStore.getAllTimeStats()?.viewsCount switch pinnedItemStore?.itemToDisplay(for: viewsCount) { case .none: insightsToShow = insightsToShow.filter { $0 != .growAudience || $0 != .customize } diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsViewModel.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsViewModel.swift index 864b3d39b3c7..87c9e137ca4d 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsViewModel.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsViewModel.swift @@ -39,7 +39,7 @@ class SiteStatsInsightsViewModel: Observable { self.insightsToShow = insightsToShow self.insightsStore = insightsStore self.pinnedItemStore = pinnedItemStore - let viewsCount = insightsStore.getAllTimeStats()?.viewsCount ?? 0 + let viewsCount = insightsStore.getAllTimeStats()?.viewsCount self.itemToDisplay = pinnedItemStore?.itemToDisplay(for: viewsCount) insightsChangeReceipt = self.insightsStore.onChange { [weak self] in diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsPinnedItemStore.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsPinnedItemStore.swift index 2aa8acee7781..3a91159cfce0 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsPinnedItemStore.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsPinnedItemStore.swift @@ -16,7 +16,11 @@ final class SiteStatsPinnedItemStore { self.siteId = siteId } - func itemToDisplay(for siteViewsCount: Int) -> SiteStatsPinnable? { + func itemToDisplay(for siteViewsCount: Int?) -> SiteStatsPinnable? { + guard let siteViewsCount = siteViewsCount else { + return nil + } + if siteViewsCount < lowSiteViewsCountTreshold { return nudgeToDisplay ?? customizeToDisplay } else { From 64d12ac3da912432cfe058f6f5d00f7a19ce7834 Mon Sep 17 00:00:00 2001 From: Momo Ozawa Date: Fri, 15 Oct 2021 12:33:59 +0100 Subject: [PATCH 11/15] Revert "Fix: return nil for itemToDisplay if view count is also nil" This reverts commit b4fb243fe419db5cf8b771d11b14d2799123b244. --- .../Insights/SiteStatsInsightsTableViewController.swift | 2 +- .../Stats/Insights/SiteStatsInsightsViewModel.swift | 2 +- .../Stats/Insights/SiteStatsPinnedItemStore.swift | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift index cbb03883d12d..1397a6130e4c 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift @@ -211,7 +211,7 @@ private extension SiteStatsInsightsTableViewController { } func loadPinnedCards() { - let viewsCount = insightsStore.getAllTimeStats()?.viewsCount + let viewsCount = insightsStore.getAllTimeStats()?.viewsCount ?? 0 switch pinnedItemStore?.itemToDisplay(for: viewsCount) { case .none: insightsToShow = insightsToShow.filter { $0 != .growAudience || $0 != .customize } diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsViewModel.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsViewModel.swift index 87c9e137ca4d..864b3d39b3c7 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsViewModel.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsViewModel.swift @@ -39,7 +39,7 @@ class SiteStatsInsightsViewModel: Observable { self.insightsToShow = insightsToShow self.insightsStore = insightsStore self.pinnedItemStore = pinnedItemStore - let viewsCount = insightsStore.getAllTimeStats()?.viewsCount + let viewsCount = insightsStore.getAllTimeStats()?.viewsCount ?? 0 self.itemToDisplay = pinnedItemStore?.itemToDisplay(for: viewsCount) insightsChangeReceipt = self.insightsStore.onChange { [weak self] in diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsPinnedItemStore.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsPinnedItemStore.swift index 3a91159cfce0..2aa8acee7781 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsPinnedItemStore.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsPinnedItemStore.swift @@ -16,11 +16,7 @@ final class SiteStatsPinnedItemStore { self.siteId = siteId } - func itemToDisplay(for siteViewsCount: Int?) -> SiteStatsPinnable? { - guard let siteViewsCount = siteViewsCount else { - return nil - } - + func itemToDisplay(for siteViewsCount: Int) -> SiteStatsPinnable? { if siteViewsCount < lowSiteViewsCountTreshold { return nudgeToDisplay ?? customizeToDisplay } else { From c74d496c9dbfb1c2a25b1a5f882104923b70a9a7 Mon Sep 17 00:00:00 2001 From: Momo Ozawa Date: Fri, 15 Oct 2021 12:36:16 +0100 Subject: [PATCH 12/15] Fix: workaround to make sure shown events are fired only once --- .../SiteStatsInsightsTableViewController.swift | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift index 1397a6130e4c..f30ee2804a0e 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift @@ -211,8 +211,8 @@ private extension SiteStatsInsightsTableViewController { } func loadPinnedCards() { - let viewsCount = insightsStore.getAllTimeStats()?.viewsCount ?? 0 - switch pinnedItemStore?.itemToDisplay(for: viewsCount) { + let viewsCount = insightsStore.getAllTimeStats()?.viewsCount + switch pinnedItemStore?.itemToDisplay(for: viewsCount ?? 0) { case .none: insightsToShow = insightsToShow.filter { $0 != .growAudience || $0 != .customize } case .some(let item): @@ -220,11 +220,21 @@ private extension SiteStatsInsightsTableViewController { case let hintType as GrowAudienceCell.HintType where !insightsToShow.contains(.growAudience): insightsToShow = insightsToShow.filter { $0 != .customize } insightsToShow.insert(.growAudience, at: 0) - trackNudgeShown(for: hintType) + + // Work around to make sure nudge shown is tracked only once + if viewsCount != nil { + trackNudgeShown(for: hintType) + } + case InsightType.customize where !insightsToShow.contains(.customize): insightsToShow = insightsToShow.filter { $0 != .growAudience } insightsToShow.insert(.customize, at: 0) - WPAnalytics.trackEvent(.statsCustomizeInsightsShown) + + // Work around to make sure customize insights shown is tracked only once + if viewsCount != nil { + WPAnalytics.trackEvent(.statsCustomizeInsightsShown) + } + default: break } From 74e47ecd8dd2ebda1479b01ec566cfd141f377c4 Mon Sep 17 00:00:00 2001 From: Nikola Milicevic Date: Fri, 15 Oct 2021 16:58:40 +0200 Subject: [PATCH 13/15] Change RELEASE-NOTES --- RELEASE-NOTES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 8f27904763cf..71a4800e725b 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -1,7 +1,7 @@ 18.5 ----- * [**] Block editor: Embed block: Include Jetpack embed variants. [https://github.com/wordpress-mobile/gutenberg-mobile/pull/4008] - +* [**] Stats: added Publicize and Blogging Reminders nudges for sites with low traffic in order to increase it. 18.4 ----- From 94d4b9e064b59a87869ce0174a989a94acd25a52 Mon Sep 17 00:00:00 2001 From: Momo Ozawa Date: Fri, 15 Oct 2021 16:00:37 +0100 Subject: [PATCH 14/15] Fix: remove growAudience from insightsToShow if nudge is completed This fixes an issue where the following condition was failing: where !insightsToShow.contains(.growAudience) --- .../Stats/Insights/SiteStatsInsightsTableViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift index f30ee2804a0e..279b425ec368 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/SiteStatsInsightsTableViewController.swift @@ -567,6 +567,7 @@ extension SiteStatsInsightsTableViewController: SiteStatsInsightsDelegate { extension SiteStatsInsightsTableViewController: SharingViewControllerDelegate { func didChangePublicizeServices() { viewModel?.markEmptyStatsNudgeAsCompleted() + insightsToShow = insightsToShow.filter { $0 != .growAudience } refreshTableView() trackNudgeEvent(.statsPublicizeNudgeCompleted) @@ -578,6 +579,7 @@ extension SiteStatsInsightsTableViewController: SharingViewControllerDelegate { extension SiteStatsInsightsTableViewController: BloggingRemindersFlowDelegate { func didSetUpBloggingReminders() { viewModel?.markEmptyStatsNudgeAsCompleted() + insightsToShow = insightsToShow.filter { $0 != .growAudience } refreshTableView() trackNudgeEvent(.statsBloggingRemindersNudgeCompleted) From 9f6da61df9656b7f5abbdbb8e2751cee7b35bffc Mon Sep 17 00:00:00 2001 From: Momo Ozawa Date: Fri, 15 Oct 2021 16:10:16 +0100 Subject: [PATCH 15/15] Update: add relevant PRs to release notes --- RELEASE-NOTES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 71a4800e725b..abfa5ad6aa23 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -1,7 +1,7 @@ 18.5 ----- * [**] Block editor: Embed block: Include Jetpack embed variants. [https://github.com/wordpress-mobile/gutenberg-mobile/pull/4008] -* [**] Stats: added Publicize and Blogging Reminders nudges for sites with low traffic in order to increase it. +* [**] Stats: added Publicize and Blogging Reminders nudges for sites with low traffic in order to increase it. [#17142, #17261, #17294, #17312, #17323] 18.4 -----