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.
Fixes: https://github.com/wordpress-mobile/gutenberg-mobile/issues/1883 Related PRs:
gutenberg
https://github.com/WordPress/gutenberg/pull/20317gutenberg-mobile iOS and JS
https://github.com/wordpress-mobile/gutenberg-mobile/pull/1936WordPress-iOS
https://github.com/wordpress-mobile/WordPress-iOS/pull/13510WordPress-iOS-Shared
https://github.com/wordpress-mobile/WordPress-iOS-Shared/pull/250gutenberg-mobile Android
https://github.com/wordpress-mobile/gutenberg-mobile/pull/1945WordPress-Android
https://github.com/wordpress-mobile/WordPress-Android/pull/11362This 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 exitExpect to see the event
editor_session_template_preview
registered with thetemplate
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 exitExpect to see the event
editor_session_template_apply
registered with thetemplate
property populated with the name of the selected template.These changes can be tested with https://github.com/wordpress-mobile/WordPress-iOS/pull/13510