Skip to content
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

[Home Page Picker] Add Template to Preview analytics #15365

Merged

Conversation

chipsnyder
Copy link
Contributor

Fixes wordpress-mobile/gutenberg-mobile#2720
📓 This helps align the approach taken on iOS and Android to include the template property in the loading preview analytics

📓 This does not include any of the changes in #15360

To test:

📓 This was branched off of the enable PR so no need to enable HPP unless you have it overridden

To disable or enable the development version of Home Page Picker
  • Open the app from the build that allows FeatureFlags such as a PR build or a local development build
    • By default, the modal layout picker will be disabled.
    • From the site page:
      • Click on your Gravatar.
      • Click on App Settings.
      • Click on Debug.
      • Toggle "Site Creation: Home Page Picker" to enable or disable the picker

📓 To help with testing these you can filter the console logs on Tracked:

  1. Navigate to the Create WordPress.com site
    • My Sites > ➕ > Create WordPress.com site
  2. Select a site design
  3. Select Preview
    • Expect to see the event enhanced_site_creation_site_design_preview_viewed fire with the parameter template populated with the selected design's slug
  4. When the URL starts loading
    • Expect to see the event enhanced_site_creation_site_design_preview_loading fire with the parameter template
  5. When the URL successfully loads
    • Expect to see the event enhanced_site_creation_site_design_preview_loaded fire with the parameter template
  6. Select Choose
    • Expect to see the event enhanced_site_creation_site_design_selected fire with the parameter template

Additional Context:

This is a continuation of the work done in the Home Page Picker Project and is part of the Round 2 requirements.

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Nov 23, 2020

You can test the changes on this Pull Request by downloading it from AppCenter here with build number: 38237. IPA is available here. If you need access to this, you can ask a maintainer to add you.

@chipsnyder
Copy link
Contributor Author

@antonis I didn't include the template in the case of if a preview fails to load. Did you include the template in that scenario?

@antonis
Copy link

antonis commented Nov 23, 2020

@antonis I didn't include the template in the case of if a preview fails to load. Did you include the template in that scenario?

I didn't think to include this either. It is easy to add it in the error message text though.

There are two cases I report this:

I guess if we add this information it would be useful only in the second case. Wdyt?

@peril-wordpress-mobile
Copy link

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

@chipsnyder
Copy link
Contributor Author

I guess if we add this information it would be useful only in the second case. Wdyt?

Yeah, I don't we really need it for this flow. We would be able to set up filters to see how much each is erroring without it anyway. So I think we can leave it off

Copy link

@antonis antonis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes LGTM 🎉
Nice work @chipsnyder 👍

@chipsnyder chipsnyder changed the base branch from gutenberg/hpp/2727-enableHPP to gutenberg/hpp/bugFixes November 23, 2020 19:47
@chipsnyder chipsnyder merged commit 9859423 into gutenberg/hpp/bugFixes Nov 23, 2020
@chipsnyder chipsnyder deleted the gutenberg/hpp/previewTemplateField branch November 23, 2020 19:47
@chipsnyder chipsnyder mentioned this pull request Nov 23, 2020
3 tasks
@mkevins
Copy link
Contributor

mkevins commented Nov 24, 2020

Thanks for adding this!

We would be able to set up filters to see how much each is erroring without it anyway. So I think we can leave it off

My thoughts exactly.. once we have the preview_{viewed,loading,loaded} events, we'll see if there is a problem with a particular template preview loading from that.

chipsnyder pushed a commit that referenced this pull request Nov 24, 2020
* Prevent swipe to dismiss on site creation flow

* Fix layout constraint collisions

* Resolve issue where the header will sometimes jump around

* Correct issue where it's possible to scroll too far offscreen

* Bump gutenberg version

* Updated the site design prompt wording

* Add the WP custom user agent to site creation webviews (#15376)

* Add Template to Preview analytics (#15365)

* Resolves issue where the selection remains but the results update
chipsnyder pushed a commit that referenced this pull request Nov 24, 2020
* Enable Home Page Picker feature

* Adjust site creation tests for enabling Home Page Picker

* Resolve small issue where scrollable content was off by 1 pixel

* Make slight layout change to avoid awkward wrapping

* [Home Page Picker] Bug fixes (#15360)

* Prevent swipe to dismiss on site creation flow

* Fix layout constraint collisions

* Resolve issue where the header will sometimes jump around

* Correct issue where it's possible to scroll too far offscreen

* Bump gutenberg version

* Updated the site design prompt wording

* Add the WP custom user agent to site creation webviews (#15376)

* Add Template to Preview analytics (#15365)

* Resolves issue where the selection remains but the results update

* Update Release notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants