Remove legacy `search_console_error` event
See original GitHub issueFeature Description
There are a few uses in the codebase of an old tracked event that are no longer relevant and should be removed.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- The following tracked event and all instances that have the same category, action, and label should be removed https://github.com/google/site-kit-wp/blob/955f12bc0ec84127bfdaf2b708131e23318bed1d/assets/js/modules/search-console/components/dashboard/DashboardImpressionsWidget.js#L116
Implementation Brief
- Remove all
trackEvent
calls withsearch_console_error
as the second argument, eg. from:assets/js/components/wp-dashboard/WPDashboardClicks.js
assets/js/components/wp-dashboard/WPDashboardImpressions.js
assets/js/modules/search-console/components/dashboard/DashboardClicksWidget.js
assets/js/modules/search-console/components/dashboard/DashboardImpressionsWidget.js
Test Coverage
- Tests should not need updating.
QA Brief
- In the current revision, the plugin tracks data loading errors in the following four locations through GA with the
plugin_setup
category andsearch_console_error
action:- In the WordPress Dashboard “Site Kit Summary” widget, the “Total Impressions” section.
- In the WordPress Dashboard “Site Kit Summary” widget, the “Total Clicks” section.
- In the Site Kit Dashboard “Search Funnel” section, the “Impressions” widget.
- In the Site Kit Dashboard “Search Funnel” section, the “Clicks” widget.
- QAing this would require making sure this event is not tracked anymore for the above locations.
- This can be done by simulating errors in the above locations and not letting these widgets load data, and then using the Google Analytics Debugger Chrome Extension to make sure these errors are not tracked.
- The above-mentioned error can be simulated by setting a “Custom Site URL” using the Dev Settings plugin after the plugin setup and clearing the session storage.
- In order to see these events being tracked in the Site Kit Dashboard, the
unifiedDashboard
feature flag must be unchecked in the tester plugin.
Changelog entry
- N/A
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
Google Search Console Errors: How to Find and Fix Them on ...
We've put together a list of some of the most common Google Search Console error reports, as well as how to determine what...
Read more >How to Fix Crawl Errors in Google Search Console - Moz
Search Console is one of the most powerful tools we have for diagnosing website errors. Learn how to prioritize and resolve your site's ......
Read more >SEO Guide to Google Search Console - Seer Interactive
Learn the ins-and-outs of Google Search Console for SEO with our beginner's guide! We'll walk you through setting up and verifying your site...
Read more >Removals and SafeSearch reports Tool - Search Console Help
The Removals tool enables you to temporarily block pages from Google Search results on sites that you own, see a history of removal...
Read more >New Removals report in Search Console - Google Developers
A temporary removal request is a way to remove specific content on your site from Google Search results. For example, if you have...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
QA Update: ✅
Nice work @nfmohit - that worked perfectly. Thank you for your help.
Verified:
I can confirm on the WP Dashboard and Site Kit Dashboard, the GA event category and action can be found on 1.75.0 and when I switch to develop branch, it does not appear in the log
@wpdarren I have updated the QAB. I had mistakenly forgotten to include that in order to see these events being tracked in the Site Kit Dashboard, the
unifiedDashboard
feature flag must be unchecked in the tester plugin.Could you check if the feature flag is checked in your test setup, uncheck it and see if you can see the event being tracked?
I should also mention that:
unifiedDashboard
feature is enabled by default in a fresh installation of 1.75.0. So, you’d need to install the tester plugin, in the tester plugin settings, set theForce enabled feature flags
toAlways override
to track these events from the Site Kit Dashboard.unifiedDashboard
feature flag and relevant unused code is being removed as a part of #5047.