Open benbowler opened 1 month ago
Taking this back to AC with me, pending the new tailored metrics that should be added for each new answer. Current thread for this
AC looks good to me here ✅ I will move to IB and pick up myself.
IB ✅
@10upsimon I noticed the PR here created 5 metric tiles for the provide_services
option. If ACR is not active, then the max number of tiles should be 4. Could we please bring this back down to 4 metrics?
'connversionReporting'
feature flag is not enabled.'connversionReporting'
feature flag is enabled.@10upsimon
Issue 1) 'connversionReporting'
feature flag is not enabled. When I select purpose 'Provide services' then 5 metric tiles are showing. It should display 4 metric tiles.
Issue-2 ) When I select purpose 'Sell Products" and if "WooCommerce" plugin is active then 4 metric tiles are showing.
As per AC metric list "Most engaged traffic source" should be listed when purpose is "Provide Services".
When 'connversionReporting'
feature flag is enabled then metrics are showing correctly as per table mentioned under AC.
Q -3) The Figma design for the "Answers Edit Screen" also includes a description, but this has not been implemented yet. I also tested this with ACR enabled. Do we have a separate ticket to implement this?
Feature Description
As part of the updates to the User Input app, the existing "Sell products or services" question should be split into to separate questions, this requires some additional changes to logic to handle the behaviour with the legacy answer, as well as a banner for users who have previously selected the combined option. As part of this issue, only answer split should be added, banner will be implemented as separate issue
The proposed solution was discussed in a thread with @aaemnnosttv and @sigal-teller (message @benbowler for details), the summary of which is the following. Existing users who have selected the combined option should not be automatically migrated, these users should see a new banner in the Admin Settings screen when editing their metrics encouraging them to update the answer. The app metrics selection should continue working with the legacy combine answer selected.
This additional scope was first identified in #9374.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Existing purpose answer "Sell products or services" is split into two new answers:
Sell products
Provide services
New descriptions should be included under each answer, and answers should be added in order shown in Figma here and here
The legacy answer "Sell products or services" should still have an effect with the existing users that previously saved it, but it should be hidden from the answers list in the user input - both for new setup, and in the list when answer is edited in the key metrics section of the admin settings.
Sell products
which should be the first answer in the list, should be preselected by defaultTailored metrics should be adapted for each new answer, following the KMW grouping from this table:
Check Splitting “Sell products or services” site purpose answer section of the design doc
Implementation Brief
user-input
data store constants file atassets/js/components/user-input/util/constants.js
Sell products
andProvide services
within the existinggetUserInputAnswers()
functionSell products
andProvide services
within the existinggetUserInputAnswersDescription()
functionkey-metrics
user datastore partial atassets/js/googlesitekit/datastore/user/key-metrics.js
getAnswerBasedMetrics
selector, mapping the correct metrics to the respectiveSell products
andProvide services
answer typessell_products_or_service
intactUserInputSelectOptions
component atassets/js/components/user-input/UserInputSelectOptions.js
slug
attribute is equal toUSER_INPUT_QUESTIONS_PURPOSE
, add/update the following logic:sell_products_or_service
type/value, ensure that theSell products
option is pre-selectedTest Coverage
assets/js/googlesitekit/datastore/user/key-metrics.test.js
and ensure that the correct metrics are returned for the 2x newly added purpose types.QA Brief
Changelog entry