wordpress-mobile / WordPress-iOS-Shared

Shared components used in building the WordPress iOS apps and other library components
GNU General Public License v2.0
18 stars 22 forks source link

Add Session Template keys for SPT metrics on template selection #250

Closed chipsnyder closed 4 years ago

chipsnyder commented 4 years ago

Fixes: https://github.com/wordpress-mobile/gutenberg-mobile/issues/1883 Related PRs:


This change adds two track events for SPT selections.

WPAnalyticsStatEditorSessionTemplatePreview

Event: editor_session_template_preview 1) Open iOS app 2) Navigate to Pages 3) Create a new page 4) Select a pre-defined template 5) Close or Apply and exit

Expect to see the event editor_session_template_preview registered with the template property populated with the name of the selected template.

WPAnalyticsStatEditorSessionTemplateApply

Event: editor_session_template_apply 1) Open iOS app 2) Navigate to Pages 3) Create a new page 4) Select a pre-defined template 5) Close or Apply and exit

Expect to see the event editor_session_template_apply registered with the template property populated with the name of the selected template.

These changes can be tested with https://github.com/wordpress-mobile/WordPress-iOS/pull/13510