-
Notifications
You must be signed in to change notification settings - Fork 293
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
Control when "Switch to GA4 Dashboard View" banner notification reappears after dismissal #6840
Comments
Hi @marrrmarrr. I'm almost done defining the ACs for this issue. I just wanted to check with you if you had a recommendation on the duration after which the banner notification should reappear when a user clicks on CC: @aaemnnosttv |
@nfmohit I think given that after this Friday their dashboard will basically slowly go stale, it's ok to show this more frequently - so how about either after 1 day or at their next login, whichever comes later? |
@marrrmarrr the dismissal uses time so it would be more complicated to use a login. @nfmohit regarding the AC it's important that the dismissal is still persistent, just not permanent, which is what I think you meant but we still need to use dismissed items (it can't be client-side only). |
Thank you, @marrrmarrr & @aaemnnosttv. I have updated the ACs for the dismissal to expire after 24 hours, as it would be complicated to use a login with our |
ACs here are 👍🏻 |
Thanks @nfmohit, one suggestion for you
Can we do this instead within the This way we avoid adding more module-specific coupling to a shared component. LMKWYT |
Thank you for pointing this out, @aaemnnosttv, and I absolutely agree. I went to check on the site-kit-wp/assets/js/modules/analytics/datastore/settings.js Lines 180 to 191 in 238155d
As a result, I've removed this part from the IB, and reduced the estimate. Let me know what you think, thank you! |
Thanks @nfmohit ! That's great to see. We might want to spend some time to make sure that the existing implementation is working correctly with an additional test or two. We might need to resolve select dismissed tours beforehand like we're doing with dismissed items in the snippet you linked, otherwise the synchronous select may not be accurate. Let's make sure to review this, but the current estimate seems like plenty of time for doing this as well. |
Thank you for raising the valid concerns, @aaemnnosttv!
I gave this a try to verify it works according to the ACs, and it does seem to do so. One catch is that if a user dismisses the Then, within those 24 hours, if they switch to the GA4 dashboard view, the notification is not dismissed again as About tests, the item dismissal seems to have been covered quite extensively. See: site-kit-wp/assets/js/modules/analytics/datastore/settings.test.js Lines 630 to 760 in afbdd0d
Do you think any more tests would help? Thank you! |
@nfmohit I'm not sure if this issue is worth addressing anymore since most people have probably already switched to GA4 already but also, the dismissal is currently permanent so if we wanted to change it, it would only benefit people who haven't dismissed it already. We could work around that by using a new key for the dismissed item, but I'm not sure we need to nag people to switch to GA4 since there are already many notices on the dashboard that UA data is stale and stopped collecting data. Eventually, people will be moved to the GA4 version of the dashboard automatically. @marrrmarrr if it's okay with you, I think we can close this issue and leave things as they are now? |
👀 👍 to me |
Closing per @marrrmarrr's approval above! |
Feature Description
#6544 added a banner notification that prompts the user to switch their site to the GA4 dashboard view. When this banner notification is dismissed, it is only dismissed on the client side and will re-appear on the next login.
Based on this approval comment, this Figma comment thread and the conversation in Slack here, we need to fine control when this banner notification should re-appear.
To achieve this, we can use a dismissed item in the backend, and set an expiry based on when we want it to reappear.
Update: As per #6932, the banner notification is now being persistently dismissed.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Maybe later
in theSwitchGA4DashboardViewNotification
banner notification should no longer permanently dismiss the notification. Instead, the dismissal should have an expiry of 24 hours.Implementation Brief
assets/js/components/notifications/SwitchGA4DashboardViewNotification.js
:handleDismiss
function so that thedismissItem
action inside is dispatched with an expiry of 24 hours.Test Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: