Skip to content

Commit 8d3ce53

Browse files
Refactor: always track quickStartTourCompleted
1 parent c4aacb0 commit 8d3ce53

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

WordPress/Classes/ViewRelated/Blog/QuickStartTourGuide.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -359,16 +359,16 @@ private extension QuickStartTourGuide {
359359

360360
blog.completeTour(tour.key)
361361

362+
// Create a site is completed automatically, we don't want to track
363+
if tour.analyticsKey != "create_site" {
364+
WPAnalytics.trackQuickStartStat(.quickStartTourCompleted,
365+
properties: ["task_name": tour.analyticsKey],
366+
blog: blog)
367+
}
368+
362369
if postNotification {
363370
NotificationCenter.default.post(name: .QuickStartTourElementChangedNotification, object: self, userInfo: [QuickStartTourGuide.notificationElementKey: QuickStartTourElement.tourCompleted])
364371

365-
// Create a site is completed automatically, we don't want to track
366-
if tour.analyticsKey != "create_site" {
367-
WPAnalytics.trackQuickStartStat(.quickStartTourCompleted,
368-
properties: ["task_name": tour.analyticsKey],
369-
blog: blog)
370-
}
371-
372372
recentlyTouredBlog = blog
373373
} else {
374374
recentlyTouredBlog = nil

0 commit comments

Comments
 (0)