Skip to content

Commit 63f01a7

Browse files
author
Gerardo Pacheco
authored
Merge pull request #18530 from wordpress-mobile/gutenberg/block-movement-event
[Gutenberg] Analytics - Add editor block moved event
2 parents ab3b51e + 2d41409 commit 63f01a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

WordPress/Classes/Utility/Analytics/WPAnalyticsEvent.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ import Foundation
4848
case gutenbergEditorSettingsFetched
4949
case gutenbergEditorHelpShown
5050
case gutenbergEditorBlockInserted
51+
case gutenbergEditorBlockMoved
5152

5253
// Notifications Permissions
5354
case pushNotificationsPrimerSeen
@@ -426,6 +427,8 @@ import Foundation
426427
return "editor_help_shown"
427428
case .gutenbergEditorBlockInserted:
428429
return "editor_block_inserted"
430+
case .gutenbergEditorBlockMoved:
431+
return "editor_block_moved"
429432
// Notifications permissions
430433
case .pushNotificationsPrimerSeen:
431434
return "notifications_primer_seen"
@@ -1095,6 +1098,7 @@ extension WPAnalytics {
10951098
var event: WPAnalyticsEvent?
10961099
switch eventName {
10971100
case "editor_block_inserted": event = .gutenbergEditorBlockInserted
1101+
case "editor_block_moved": event = .gutenbergEditorBlockMoved
10981102
default: event = nil
10991103
}
11001104

0 commit comments

Comments
 (0)