Closed wpdarren closed 10 months ago
At this stage, the users should see CTAs within the dashboard widgets to activate GA and AdSense (if they haven't already activated GA during setup). PSI is already activated, so the only thing they could really activate would be Optimize or GTM (no effect on reporting within the dashboard). @felixarntz what are your thoughts on this, should we funnel people to Settings?
@marrrmarrr Yeah, I think including a link to Settings > Connect more services there would make sense. Does that sound good to you?
@marrrmarrr With the sunset of Optimize and potentially removing support for GTM in the future (based on the Singular Analytics Module Design doc), there aren't many services left to connect once SC and Analytics are connected. So instead of creating a "Primary CTA button", I feel a secondary link to the Connect More Services tab in Site Kit settings is better. Since this is a simple notification, I don't see too much value in complicating the logic here and checking for "which modules are connected?" before slightly changing the notification message / CTA.
c.c. @aaemnnosttv
UPDATE: The only other alternative here is to close this issue or actually modify it so that we remove the second sentence from the notification.
Hey @jimmymadon, it would be good to specify how the link should look here. As it stands, I would take it to mean we make the phrase "connect more services" a link. However, reviewing the setup success notification which is referred to in the Bug Description, I see it has a separate "Go to Settings" link. Presumably for consistency we should do the same here. WDYT?
If the primary action here is to connect more services, then that should be the primary CTA as well. So I'd suggest "Let's go" or something to that effect that would send people to settings and "Maybe later" as the standard secondary CTA if they don't want to connect more things right away.
@jimmymadon if the person hasn't connected AdSense at this stage, wouldn't there be a tile for that as well in Settings? Separately, we'll be adding AdWords soon, so there will be more things to connect, if the user chooses to do so.
More generally, I think we need to rethink the messages we send after setup is complete, to provide a smoother onboarding experience (e.g. instead of directing people to connect more stuff, do a tour of the dashboard and what's on there). But that's a discussion for another GH issue (:
AC :white_check_mark:
Note that I made a minor amendment to change "link" to "CTA" in the AC.
IB ✅
@tofumatt @jimmymadon This issue is in EB but doesn't have an estimate – can you please add? Thanks!
@bethanylang Oops - just added one.
Hi @marrrmarrr, do we need to dispatch an event when clicking the primary CTA? If so, can we use the existing dismiss_notification
or a new one?
@hussain-t primary CTAs use confirm_notification
, dismiss would only be for the "maybe later" case. Since the notification already implements these other common events, it should do the same for the primary CTA as well.
Thanks, @aaemnnosttv 👍
@hussain-t I have one question that clicking on "See more Services" or "Maybe later" CTA dismisses the Banner which appears again when we clear session data or admin login again. It is same as current functionality on latest. Can you please confirm that it is correct and we will not dismiss the banner permanently ?
I have one question that clicking on "See more Services" or "Maybe later" CTA dismisses the Banner which appears again when we clear session data or admin login again. It is same as current functionality on latest. Can you please confirm that it is correct and we will not dismiss the banner permanently ?
@mohitwp, that's expected since we don't permanently dismiss the gathering / zero data notifications.
Thanks @hussain-t !
Bug Description
While testing #4698 I noticed an improvement on the new dashboard notification messages for gathering data. We are asking users to think about connecting more services. It would be more user friendly to add a link to the connect more services tab within Site Kit settings. (
wp-admin/admin.php?page=googlesitekit-settings#/connect-more-services
)We have done this with the new service connect notifications with
serviceSetupV2
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Note: The IB below is implemented in a quick POC branch here.
assets/js/components/notifications/ZeroDataStateNotifications/GatheringDataNotification.js
:ctaLabel
as per the AC.CTALink
using thegetAdminURL( 'googlesitekit-settings' )
method from thecore/site
store and concatenate#/connect-more-services
to it.Fixing an issue where clicking on the CTA Link does not persist the dismissal
/assets/js/components/notifications/BannerNotification/index.js
:handleCTAClick()
callsdismissNotification()
. However, withindismissNotification
the code wrapped inside ofsetTimeout()
is not executed because the default event of clicking on anhref
link and navigating to it happens beforesetTimeout()
is reached.event.preventDefault()
higher up in thehandleCTAClick
function if there is a CTA link. Then we need to ensure we await the actions that happen withindismissNotification
'ssetTimeout
by returning a new promise and awaiting its resolution. And then we can proceed tonavigateTo( ctaLink )
.dismissNotification
closes the notification by settingsetIsClosed( true )
. If we wrap this call in a condition where this should be skipped when a ctaLink exists, then this flicker is resolved.Test Coverage
BannerNotifications.test.js
to test that clicking on a CTA link when theisDissmissible
prop is true dismisses the notification.QA Brief
See other services
primary CTA in the gathering data state banner notification.Changelog entry