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 analytics
module from the codebase
#7843
Comments
ga4Reporting
Feature Flaganalytics
module from the codebase
I think the ACs here are good, it's tough to be exhaustive when writing these but this should cover it 😄 ACs 👍🏻 |
Hey @zutigrm, this IB is looking good. A few points:
|
@techanvil Thanks for the feedback.
Thanks, that's a good idea!
I actually didn't mention that, because it will be taken care of in #7932, it removes the entire analytics module (IB mentions moving over needed parts and removing
Thanks, good catch! Removed I updated the IB |
Great, thanks for updating/clarifying, @zutigrm. This IB LGTM ✅ |
Hi @jimmymadon, when you take over this, please make sure to replace |
PR is ready, I am keeping it in Execution in the meantime until 7932 is merged. Check this update for more details |
…enhance/#7843-remove-analytics-module.
…ogle/site-kit-wp into enhance/#7843-remove-analytics-module.
…enhance/#7843-remove-analytics-module.
QA Update ✅
|
Thank you for pointing this out, @aaemnnosttv. I've opened #8459 to address this. |
Feature Description
Some things will not be needed since feature flag is removed. For example provisioning scope, UAProperty, and some test cases in
assets/js/modules/analytics/datastore/accounts.test.js
Existing jest tests should be revisited as well.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
analytics
module which has by now become obsolete and replaced byanalytics-4
should be entirely removed from the Site Kit plugin. This should include but may not be limited to:Modules\Analytics
module class and all other classes in this namespace in PHP.modules/analytics
datastore.analytics
module on the client-side.Implementation Brief
AdminBarSessions
should be replaced withAdminBarSessionsGA4
, etcMODULES_ANALYTICS
store selector and replace it withMODULES_ANALYTICS_4
assets/js/components/adminbar/common.stories.js
andassets/js/components/wp-dashboard/common.stories.js
modules/analytics/data/
through the codebase to identify presence of old Analytics route usage and update/remove the code accordinglyTest Coverage
tests/e2e/plugins/module-setup-analytics-no-account.php
, renamee2e/setup/analytics/account-created
endpoint toe2e/setup/analytics-4/account-created
. And replace its usage in e2e tests where applicable.tests/e2e/plugins/module-setup-analytics.php
properties-profiles
, andprofiles
, but leaveaccounts-properties-profiles
unless it was completely replaced byaccount-summaries
, as at the time of writing we still useaccounts
from that response. If this is completely replaced, we can remove that endpoint too.analytics/data/goals
route from e2e tests, as it was used only by old analytics, GA4 does not have goals.analytics/data/report
route from the e2e tests if still present.storybook/fetch-mocks.js
, replaceanalytics
withanalytics-4
MODULES_ANALYTICS
store withMODULES_ANALYTICS_4
in stories and jest tests. Some of the files at the time of writing:assets/js/components/ReportError.test.js
assets/js/components/ReportError.stories.js
assets/js/components/dashboard-sharing/DashboardSharingSettingsButton.stories.js
assets/js/components/dashboard-sharing/DashboardSharingSettings/index.stories.js
assets/js/components/notifications/GoogleTagIDMismatchNotification.stories.js
assets/js/components/notifications/WebDataStreamNotAvailableNotification.stories.js
assets/js/components/notifications/ZeroDataStateNotifications/index.stories.js
QA Brief
analytics
module. No specific checks are needed here. The SAM E2E testing should cover testing this.Changelog entry
analytics
module (UA) from Site Kit.The text was updated successfully, but these errors were encountered: