-
Notifications
You must be signed in to change notification settings - Fork 295
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
Implement Analytics setup form UI for accounts that have both UA properties and GA4 properties #3250
Comments
@asvinb could you please provide more details in IB so engineers who are less familiar with the codebase can better understand what needs to be done? |
Hey @eugene-manuilov |
@asvinb, yes, I agree with you - as an engineer who is very familiar with the codebase, I don't need more details. But we have guys who are less familiar with it and they will struggle to understand what needs to be done and how. If you could provide detailed information, it would help them very much. Please, update the IB taking into account that an engineer not familiar with it might work on this ticket. |
@eugene-manuilov I've updated the IB to provide more details. |
Thanks, @asvinb! IB ✔️ |
The QA brief says Make sure the form looks exactly like on the Figma design. but the design has the
@felixarntz I believe that we are not implementing this functionality for now? |
@danielgent this screen isn't needed for now. |
The UI for the scenario that an Analytics account has properties of both UA and GA4 type available should be implemented.
For details on this UI, see:
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
SetupFormGA4Transitional
component that was scaffolded in Prepare Analytics setup form UI for split into four sub-variants (depending GA4 support and available properties) #3247.SettingsNotice
component for the look for now, to keep this simple. The notification design will be updated to the one specified in the Figma file in a follow-up issue.SettingsNotice
itself will take care of the positioning.SetupFormLegacy
:StoreErrorNotices
for themodules/analytics
store should be on top.ExistingTagNotice
andExistingGTMPropertyNotice
should not be included in this scenario for now..googlesitekit-setup-module__inputs
container. For the property dropdown, thePropertySelectIncludingGA4
component needs to be used instead of thePropertySelect
one. TheProfileSelect
andProfileNameTextField
here need to be rendered only under the additional condition thatgetPrimaryPropertyType
returns "ua" (i.e. the property selected in the main property dropdown is a UA property and therefore also needs a view selected).PropertySelect
component from themodules/analytics-4
module.PropertySelect
component from themodules/analytics
module. In that case it also needs to include theProfileSelect
dropdown to select the profile/view for the property that is selected here (UA properties support profiles/views while GA4 properties don't).SetupForm
with this UI state (i.e. so thatSetupFormGA4Transitional
is shown) should be implemented.Implementation Brief
SetupFormGA4Transitional
, copy the code over fromSetupFormLegacy
with the folllowing changes:StoreErrorNotices
to be above theGA4Notice
component.ExistingTagNotice
andExistingGTMPropertyNotice
components.PropertySelect
component byPropertySelectIncludingGA4
.getPrimaryPropertyType
selector of the Analytics data store to get the primary property type.ProfileSelect
andProfileNameTextField
component if the result fromgetPrimaryPropertyType
isua
.SettingsNotice
component (following updates from UpdateSettingsNotice
component to account for new GA4 notice design #3251) with the following props:Icon
: The SVG from the designs in FigmaLearnMore
:Link
component to be used for the "Learn More" link. URL:TBD
.children
of theSettingsNotice
component.getPrimaryPropertyType
selector.ua
, the title should be:You'll need to connect the Google Analytics 4 property that's associated with this Universal Analytics property
,You'll need to connect the Universal Analytics property that's associated with this Google Analytics 4 property
.getPrimaryPropertyType
selector):ua
, use thePropertySelect
component from themodules/analytics-4
module.ga4
, use thePropertySelect
component from themodules/analytics
module. TheProfileSelect
component should also be displayed next tot hePropertySelect
component. Refer to theUser selects GA4 property
flow in Figma..googlesitekit-setup-module__inputs
container can be used again for aligning the dropdowns in the blue notice similar to what is done for the main dropdowns.SetupFormGA4Transitional.stories.js
to render the stories for the component.ua
is the primary property type andga4
as well.module-analytics-settings.stories.js
file.Test Coverage
Visual Regression Changes
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: