Skip to content
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 legacy search_console_error event #5116

Closed
aaemnnosttv opened this issue Apr 20, 2022 · 7 comments
Closed

Remove legacy search_console_error event #5116

aaemnnosttv opened this issue Apr 20, 2022 · 7 comments
Labels
Good First Issue Good first issue for new engineers P2 Low priority Rollover Issues which role over to the next sprint Type: Enhancement Improvement of an existing feature

Comments

@aaemnnosttv
Copy link
Collaborator

aaemnnosttv commented Apr 20, 2022

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
@aaemnnosttv aaemnnosttv added P2 Low priority Type: Enhancement Improvement of an existing feature labels Apr 20, 2022
@tofumatt tofumatt assigned tofumatt and unassigned tofumatt Apr 20, 2022
@eugene-manuilov eugene-manuilov self-assigned this Apr 21, 2022
@eugene-manuilov
Copy link
Collaborator

IB ✔️

@eugene-manuilov eugene-manuilov removed their assignment Apr 21, 2022
@eugene-manuilov eugene-manuilov added the Good First Issue Good first issue for new engineers label Apr 21, 2022
@nfmohit nfmohit self-assigned this May 16, 2022
@nfmohit nfmohit removed their assignment May 16, 2022
@hussain-t hussain-t assigned hussain-t and unassigned hussain-t May 17, 2022
@eclarke1 eclarke1 added the Rollover Issues which role over to the next sprint label May 23, 2022
@mohitwp
Copy link
Collaborator

mohitwp commented Jun 6, 2022

QA Update ⚠️

@nfmohit I tried to reproduce this issue as per QAB on latest release branch. I'm not getting any search_console_error event on latest as well as on develop branch. How can I get this event ? Let me know if I missed any step here.

image

image

@mohitwp mohitwp assigned nfmohit and unassigned mohitwp Jun 6, 2022
@wpdarren
Copy link
Collaborator

QA Update: ⚠️

@nfmohit just confirming what @mohitwp has mentioned - when we are on the latest release, and the search console error is triggered as per the QAB, we cannot see search_console_error in the log. I've also had a look at the custom events spreadsheet and it does not exist there either. Could you tell us how to trigger this currently? We can then switch to the develop branch and compare the two, to make sure that this is passing our tests.

We would need to get this into approved by EOD on Wednesday (tomorrow) Thanks! 😄

@wpdarren wpdarren self-assigned this Jun 14, 2022
@nfmohit
Copy link
Collaborator

nfmohit commented Jun 14, 2022

Thank you @mohitwp and @wpdarren!

I apologise for the delay on this one. This slipped through the cracks as I was busy catching up with everything after the vacation.

I'll re-review this ASAP right after the bug bash and it should be ready for you to check again first thing tomorrow.

@wpdarren
Copy link
Collaborator

wpdarren commented Jun 15, 2022

QA Update: ⚠️

@nfmohit going on the QAB, the plugin_setup category AND search_console_error action should be appearing on the WP and Site Kit Dashboard on the latest release. I can confirm on the WP 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 ✅

image

The issue is, on the Site Kit Dashboard, the plugin_setup category and search_console_error action does not appear on 1.75.0. Can you confirm if it 100% should? Are you able to see these on the Site Kit Dashboard? In these types of situations it's good to see the initial issue so we know it has been fixed on develop.

@nfmohit
Copy link
Collaborator

nfmohit commented 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 Remove unifiedDashboard feature flag and unused code #5047.

@nfmohit nfmohit removed their assignment Jun 15, 2022
@wpdarren
Copy link
Collaborator

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 wpdarren removed their assignment Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue Good first issue for new engineers P2 Low priority Rollover Issues which role over to the next sprint Type: Enhancement Improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

9 participants