question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove legacy `search_console_error` event

See original GitHub issue

Feature 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

Implementation Brief

  • Remove all trackEvent calls with search_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 and search_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:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
wpdarrencommented, Jun 15, 2022

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

0reactions
nfmohitcommented, Jun 15, 2022

@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:

  • according to my tests, the 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 the Force enabled feature flags to Always override to track these events from the Site Kit Dashboard.
  • These events won’t be relevant within the Site Kit Dashboard anymore in the future anyway because the unifiedDashboard feature flag and relevant unused code is being removed as a part of #5047.
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found