-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tracking to the WebKitViewController #17591
Conversation
You can trigger an installable build for these changes by visiting CircleCI here. |
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing was all good! 👍
The only one potential issue I saw was that the dismiss
event isn't tracked if you swipe down to dismiss the webview rather than closing it with the X.
✅ When the webkit view is opened 🔵 Tracked: webkitview_displayed <source: SOURCE_NAME>
✅ When the Share button is tapped: 🔵 Tracked: webkitview_share_tapped <source: SOURCE_NAME>
✅ When the reload button is tapped: 🔵 Tracked: webkitview_reload_tapped <source: SOURCE_NAME>
✅ When the back button is tapped: 🔵 Tracked: webkitview_navigated_back <source: SOURCE_NAME>
✅ When the forward button is tapped: 🔵 Tracked: webkitview_navigated_forward <source: SOURCE_NAME>
✅ When the open in safari button is tapped: 🔵 Tracked: webkitview_open_in_safari_tapped <source: SOURCE_NAME>
✅ My Site
✅ Me Settings
✅ My Site: Stats
✅ My Site: Jetpack Settings
✅ My Site: Posts
✅ My Site: Pages
✅ My Site: Comments
✅ My Site: Themes
✅ My Site: People
✅ My Site: Site Settings
✅ My Site: Plugins
✅ Reader: Post Card
✅ Reader: Reader Detail
✅ Reader: Reader Comments
✅ Notifications: Likes / Follows / Comments
✅ Notification Details link
✅ Story: Intro View
Thank you for testing all of those scenarios! I know there are a lot of them.
Good catch! I moved the logic into viewWillDisappear instead of the close action now: 3cc23e5 |
Project: #17503
Description
This adds tracking to the following actions on the WebKitViewController:
Each of these events also include a
source
property that is loaded when the WebKitViewController is created. I also updated the WebViewControllerFactory methods to include and pass the source along.This change required me to update every instance that uses the factory or WebKitViewController to include a source.
To test:
There are a lot of areas this affects so these testing steps will be grouped by section:
WebKitView Testing (Steps to be performed when a webkit view is open)
🔵 Tracked: webkitview_displayed <source: SOURCE_NAME>
🔵 Tracked: webkitview_share_tapped <source: SOURCE_NAME>
🔵 Tracked: webkitview_reload_tapped <source: SOURCE_NAME>
🔵 Tracked: webkitview_navigated_back <source: SOURCE_NAME>
🔵 Tracked: webkitview_navigated_forward <source: SOURCE_NAME>
🔵 Tracked: webkitview_open_in_safari_tapped <source: SOURCE_NAME>
My Site
SOURCE_NAME
ofmy_site_view_site
🔵 Tracked: preview_webkitview_device_changed <option: SELECTED_OPTION_NAME, source: my_site_view_site>
🔵 Tracked: preview_webkitview_device_changed <option: SELECTED_OPTION_NAME, source: my_site_view_site>
Me Settings
SOURCE_NAME
ofprivacy_settings
SOURCE_NAME
ofabout
about
My Site: Stats
SOURCE_NAME
ofsite_stats_insights
SOURCE_NAME
ofstats_post_stats
SOURCE_NAME
ofsite_stats_period
SOURCE_NAME
ofsite_stats_period
SOURCE_NAME
ofsite_stats_detail
My Site: Jetpack Settings
SOURCE_NAME
ofjetpack_settings_learn_more
My Site: Posts
SOURCE_NAME
ofposts_pages_view_post
SOURCE_NAME
ofedit_post_more_preview
My Site: Pages
SOURCE_NAME
ofposts_pages_view_post
My Site: Comments
SOURCE_NAME
ofcomment_detail
My Site: Themes
SOURCE_NAME
oftheme_browser
My Site: People
SOURCE_NAME
ofinvite_person_role_learn_more
My Site: Site Settings
SOURCE_NAME
ofsite_settings_amp_footer
SOURCE_NAME
ofsite_settings_start_over
My Site: Plugins
SOURCE_NAME
ofplugins
SOURCE_NAME
ofplugins
Reader: Post Card
SOURCE_NAME
ofreader_visit_site
SOURCE_NAME
ofreader_report
Reader: Reader Detail
SOURCE_NAME
ofreader_detail
SOURCE_NAME
ofreader_detail
SOURCE_NAME
ofreader_visit_site
Reader: Reader Comments
SOURCE_NAME
ofreader_comments_author
SOURCE_NAME
ofreader_comments
Notifications: Likes / Follows / Comments
SOURCE_NAME
ofnotif_like_list_user_profile
SOURCE_NAME
ofnotifications
SOURCE_NAME
ofnotifications
Notification Details link
SOURCE_NAME
ofnotifications
Story: Intro View
UserDefaults.standard.storiesIntroWasAcknowledged
or reinstall the appSOURCE_NAME
ofshow_story_example
Regression Notes
Potential unintended areas of impact
What I did to test those areas of impact (or what existing automated tests I relied on)
What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txt
if necessary.