-
Notifications
You must be signed in to change notification settings - Fork 293
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
Create new SetupFormGA4
component
#6738
Comments
SetupForm
component for GA4SetupFormGA4
component
ACs are good here, moving to IB 👍🏻 |
Hi @marrrmarrr! I, @aaemnnosttv, and @tofumatt had a follow-up discussion (here and internally) regarding the UA property and profile fields being optional going forward, we believe having a "toggle" that says something like This would be similar to the current property creation flow in analytics.google.com: We would re-use this flow in both setup and settings (in #6744), providing users with a simpler way to connect and if previously connected, disconnect UA from the Analytics module. Based on the above discussions, we've come up with the following section for the ACs:
Please let us know if this is a graceful approach to take from a product/UX perspective. Also, please also advise if the copy of the toggle is fine to go with, and feel free to update it in the ACs as you see fit. |
@nfmohit this sounds good, hiding these fields will make it less distracting for users. Let's just make sure to mention in the ACs that the toggle will be off by default. As far as the copy is concerned, I think we should clarify what Universal Analytics is, so people are not confused about this "alternative" type of Analytics. So how about: |
Thank you so much for the confirmation, @marrrmarrr!
I have updated the ACs to reflect the above.
I have added the removal of this toggle including the UA fields in the ACs for #6549. Thank you! |
@nfmohit Looks great overall, I like the mockup too (I included it in the issue description as well, it was really helpful for context). 👍🏻 ACs here are good. Assigning this IB back to @hussain-t as he was working on it before the AC change 🙂 |
IB ✅ |
@nfmohit, the AC mentions:
There is no |
Brilliant spot, updated, thank you @hussain-t! |
Hi @hussain-t! One small concern regarding the IB here:
Instead of rendering the CC: @tofumatt |
Correct @nfmohit, that's what I'm implementing 👍 |
Enhance/#6738 - Create new `SetupFormGA4` component
QA Update: ✅When on the Analytics module setup flow and ga4Reporting feature flag is enabled
|
Feature Description
The current Analytics
SetupForm
components prioritise UA inputs over GA4 inputs. To change this, the existingSetupFormGA4
component should be renamed, saySetupFormGA4Legacy
. A newSetupForm
component should be created, namedSetupFormGA4
. This component will be similar to theSetupFormGA4
/SetupFormGA4Transitional
components where the user will be required to choose an Analytics account and connect/create a GA4 property.Using a UA property/view should be optional; showing the
<Select>
components for a UA property/view should only appear if they user already has existing UA properties/views available and enable them via a toggle:Otherwise the UA selects should not appear.
If the chosen Analytics account has pre-existing UA properties, they will be displayed in a secondary pane in a deprioritised manner, where the user will be able to connect one optionally. Here is a exemplary screenshot for visual aid:
The existing analytics
getSetupFlowMode()
selector and theSetupForm
component should be updated so that the Analytics module setup flow renders the newSetupFormGA4
component when thega4Reporting
feature flag is enabled.Here is the relevant section in the one-pager. Here is the relevant change in our PoC.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
SetupFormGA4
component should be renamed toSetupFormGA4Legacy
.SetupFormGA4
component should be created.AccountSelect
, GA4PropertySelect
, and GA4WebDataStreamSelect
.Enable Universal Analytics (the old version of Analytics, which stops recording data after July 1, 2023)
in the second row.PropertySelect
,ProfileSelect
, andSetupUseSnippetSwitch
components should be rendered underneath, requiring users to select a UA property and profile.Enable Universal Analytics
toggle and the associated UAPropertySelect
,ProfileSelect
, andSetupUseSnippetSwitch
components should be contained in a new wrapping component, so that it can be reused inside AnalyticsSettingsEdit
(in Update Analytics SettingsEdit and SettingsView to work without UA #6744).getSetupFlowMode()
selector should be updated to indicate the usage of the newSetupFormGA4
component if thega4Reporting
feature flag is enabled.Implementation Brief
assets/js/modules/analytics/datastore/constants.js
, add a new constantSETUP_FLOW_MODE_GA4_LEGACY
with the valuega4-legacy
.assets/js/modules/analytics/datastore/setup-flow.js
, modify thegetSetupFlowMode
selector with the following:SETUP_FLOW_MODE_GA4
if thega4Reporting
feature flag is enabled using theisFeatureEnabled
function.uaProperties.length === 0
, that returnsSETUP_FLOW_MODE_GA4
should be replaced to returnSETUP_FLOW_MODE_GA4_LEGACY
.assets/js/modules/analytics/components/setup/SetupFormGA4.js
toSetupFormGA4Legacy.js
.EnableUniversalAnalytics
component in theassets/js/modules/analytics/components/common
directory with the following:getProperties
selector of theanalytics
datastore and pass the UAaccountID
to it.UseSnippetSwitch
component with thedescription
prop set toEnable Universal Analytics (the old version of Analytics, which stops recording data after July 1, 2023)
.UseSnippetSwitch
is enabled, render the UAPropertySelect
,ProfileSelect
, andSetupUseSnippetSwitch
components underneath as children within theGA4PropertyNotice
component.notice
prop of theGA4PropertyNotice
component should beYou may also connect a Universal Analytics property that’s associated with this Google Analytics 4 property.
.SetupFormGA4
component in the same directory that mirrors theSetupFormGA4Legacy
component, but with the following changes:AccountSelect
, GA4PropertySelect
, and GA4WebDataStreamSelect
components in the first row.EnableUniversalAnalytics
component in the second row.assets/js/modules/analytics/components/setup/SetupForm.js
, update the following:setupFlowMode
isSETUP_FLOW_MODE_GA4
, render theSetupFormGA4
component as before.setupFlowMode
isSETUP_FLOW_MODE_GA4_LEGACY
, render theSetupFormGA4Legacy
component.assets/js/modules/analytics/datastore/settings.js
, update thesubmitChanges
action with the following:ga4Reporting
feature flag is enabled, and the dashboard view isuniversal-analytics
, dispatch thesetDashboardView
action with thegoogle-analytics-4
value.SetupFormGA4
component.Test Coverage
SetupFormGA4
component.QA Brief
ga4Reporting
feature flag is enabled, the newSetupFormGA4
component is rendered in the Analytics module setup flow.Enable Universal Analytics
toggle is rendered in the second row. It should be disabled by default.SetupFormGA4
component here.Changelog entry
The text was updated successfully, but these errors were encountered: