Analytics settings requested on every dashboard page load when not active #5091
Labels
Module: Analytics
Google Analytics module related issues
P1
Medium priority
Type: Bug
Something isn't working
Bug Description
Currently when visiting the main dashboard when Analytics is not active, an additional request is being made to the server for the module's settings. This is due to settings only being preloaded for active modules, and is coming from the search funnel widget's
Footer
which includes selects for Analytics deep links. This in turn uses selects internally for the various IDs needed to construct the service URL which triggers the settings to be fetched. Normally this happens the same way when Analytics is active, it's only that the settings are preloaded so it wouldn't result in an actual request to the server when selected on load.Steps to reproduce
google-site-kit/v1/modules/analytics/data/settings
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Footer
component of the Search Funnel widget into separate inner components for Analytics and Search Console. Only render one or the other (as today) based on theservice
identified by the selected metric. This fixes the problem by only running the selectors needed for the specific URL we're generating, rather than always generating all URLs.Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: