-
Notifications
You must be signed in to change notification settings - Fork 295
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
GA4 dashboard prompt banner reappears when toggling from GA4 > UA > GA4 even if "Maybe later" is selected #6932
Comments
@hussain-t, I believe we should dismiss the notification banner in the |
Thanks, @eugene-manuilov. I have updated the IB. |
@hussain-t, I meant dismissing it here: site-kit-wp/assets/js/modules/analytics/datastore/settings.js Lines 85 to 176 in c5842fc
|
Thanks, @eugene-manuilov. I have updated the IB. |
Thanks, @hussain-t. This is almost good, but I think we should dismiss it only when settings are saved with no errors. Could you please update it? |
Thanks, @hussain-t. IB ✔️ |
…6932-dismiss-ga4-dashboard-banner.
…ard-banner Enhance/#6932 - GA4 dashboard prompt banner notification
QA Update ✅-Tested on dev.
Recording.375.mp4 |
Bug Description
As reported by @adamdunnage in Bug Bash:
The user will always be prompted with the activate GA4 reporting Dashboard banner when toggling between UA/GA4 dashboards even if they have selected 'maybe later' option previously.
Although an edge case we will see some users switching between the two for different reasons and if they have previously selected the 'maybe later' option then I believe the banner shouldn't display.
You can see this in the recording below:
https://www.loom.com/share/22c7aade0fd6413c8f0a6f074577254c
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
In
assets/js/components/notifications/SwitchGA4DashboardViewNotification.js
:isItemDismissed
selector from thecore/user
store to check whether the notification has already been dismissed.null
if the notification has already been dismissed. Alternatively, update theuseSelect
statement forshouldPromptGA4DashboardView
to returnfalse
if the GA4 Dashboard activation notification has already been dismissed.handleCTAClick
callback to dispatch thedismissItem
action of thecore/user
store and pass the notification ID (switch-ga4-dashboard-view
) to it.In
assets/js/modules/analytics/datastore/settings.js
, update thesubmitChanges
action:ga4Reporting
feature flag is enabled AND the dashboard view is already GA4:dismissItem
action of thecore/user
store and pass the notification ID to it.Test Coverage
QA Brief
ga4Reporting
feature flag.SwitchGA4DashboardViewNotification
appears, click theUpdate dashboard
CTA and verify that the notification is dismissed permanently. This can be tested by switching the dashboard view back and forth and verifying that the notification does not appear again.switch-ga4-dashboard-view
item from thewp_usermeta
table with themeta_key
wp_googlesitekitpersistent_dismissed_items
and verify that the notification appears again.Maybe later
button.Changelog entry
The text was updated successfully, but these errors were encountered: