-
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
Remove UA counterparts after SK no longer shows UA data beginning September 25 #6786
Comments
Thanks @nfmohit – this looks like a good start. Of course there is a lot more to do about UA than is encompassed here, but I think it makes sense to have this issue dedicated to the GA4-reporting-specific transitional related bits. We'll probably need several more issues to migrate Analytics back to a single module going forward.
While correct, since everything here is about removing code that is no longer used, the timing can be flexible and should probably be worded to be more like "after" a certain date, but also to check with @marrrmarrr and/or myself first before merging. As such it is not particularly time-sensitive, but more that we want to ensure it is not merged before we're ready. That is, doing this later would be fine, but not early :)
I assume we'd also want to remove the corresponding setting itself as well?
We probably want to keep the component itself (since it's no longer metric-specific) – we'll probably be using it somewhere else anyways, but we should make it clear that this is only about the use of the badges for GA4 metrics, not the component itself 👍
Similar to above, any related persistent settings/values should also be removed, not just the component. |
Understood and agreed, thank you!
Updated, thanks!
Correct, updated, thank you!
Agreed. Updated to clarify, thanks!
I re-checked and discussed it internally. There aren't any other settings/values to remove at this point, thank you! Thank you, @aaemnnosttv! |
Made a few tweaks to the wording but this should be good to go now 👍 On to IB 🚀 |
I think this IB covers it—if anything else is found in Execution that's fine, IBs like this are good baseline guidelines but it can be tough to spot everything in advance. IB ✅ |
I have just added a new AC to this issue:
Apologies for adding it at this stage. I only added it since it needs to be removed alongside other elements mentioned in this issue and is a relatively small change. Thanks! CC: @hussain-t @aaemnnosttv @tofumatt @bethanylang |
Noting that per discussion with @marrrmarrr in Slack, this issue will be scheduled for Sprint 110 so that it will be included in v.1.110.0, releasing September 25. |
This is ready to merge once it's been given the go-ahead by @marrrmarrr as per the AC. |
Mariya has given the signal, this is getting merged! 🎉 |
QA Update: ✅Verified: Tested with a new Analytics account that just has a GA4 property
Tested with an Analytics account that has a UA and GA4 property.
|
Feature Description
Around 90 days after the UA cut-off, Site Kit will no longer show any UA data anymore naturally. At this point, it will not be relevant to keep elements related to UA in Site Kit. Hence, they should be removed.
BannerNotification
(being added in Add the “Switch to GA4 Dashboard View” notification banner #6544) should be removed, along with theshouldPromptGA4DashboardView
selector in theanalytics-4
datastore.dashboardView
toggle in Analytics settings #6547) should be removed.Here is the relevant part in the design doc.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
BannerNotification
added in Add the “Switch to GA4 Dashboard View” notification banner #6544 should be removed.shouldPromptGA4DashboardView()
selector in theanalytics-4
datastore should be removed.dashboardView
toggle in Analytics settings #6547 should be removed, including the underlyingdashboardView
module setting in the Analytics module.Enable Universal Analytics
toggle and the associated UA property and profile dropdowns added in theSetupFormGA4
component (in Create newSetupFormGA4
component #6738) and AnalyticsSettingsEdit
(in Update Analytics SettingsEdit and SettingsView to work without UA #6744) should be removed.Implementation Brief
assets/js/components/notifications/BannerNotifications.js
:<SwitchGA4DashboardViewNotification />
component.assets/js/modules/analytics/datastore/base.js
:shouldPromptGA4DashboardView
function.assets/js/modules/analytics/datastore/settings.js
:shouldPromptGA4DashboardView
function.Dashboard view
setting display and toggle added to the Analytics module settings.dashboardView
toggle in Analytics settings. #6723 to files in theassets/js/modules/analytics/components/settings
folder.assets/sass/components/settings/_googlesitekit-settings-module.scss
:.googlesitekit-settings-module__meta-item--dashboard-view
class.New
badges added to indicate new GA4 metrics.assets/js/modules/analytics/components/module/ModulePopularPagesWidgetGA4.js
assets/js/modules/search-console/components/dashboard/SearchFunnelWidgetGA4/Overview/index.js
EnableUniversalAnalytics
component in the following files:assets/js/modules/analytics/components/setup/SetupFormGA4.js
assets/js/modules/analytics/components/settings/SettingsForm.js
SettingsView
should be restructured following this Figma screen.assets/js/modules/analytics/components/settings/SettingsView.js
:Account
, which should display the account ID. This can be copied over fromassets/js/modules/analytics/components/settings/GA4SettingsView.js
.<UASettingsView />
component.assets/js/modules/analytics/components/settings/GA4SettingsView.js
:Account
setting meta item.assets/js/components/notifications/SwitchGA4DashboardViewNotification.js
assets/js/components/notifications/SwitchGA4DashboardViewNotification.stories.js
assets/js/modules/analytics/components/common/EnableUniversalAnalytics.js
Test Coverage
assets/js/modules/analytics/datastore/settings.test.js
:shouldPromptGA4DashboardView
selector.dashboardView
toggle in Analytics settings. #6723.QA Brief
In all of these scenarios, no UA/GA4 Dashboard View switcher should appear and UA components should not appear in the dashboard view, settings view, or settings edit.
It would also be preferable to upgrade an existing site that had UA Analytics enabled and the UA dashboard enabled. It should show the GA4 dashboard after upgrading to the latest version of Site Kit in
develop
.Changelog entry
The text was updated successfully, but these errors were encountered: