-
Notifications
You must be signed in to change notification settings - Fork 278
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
Implement “Connect AdSense” metric tile CTA after Key Metrics widget setup #6264
Comments
Moving to IB 👍🏻 |
@sashadoes Can you please unassign if you're not able to work on this so that someone else can pick it up? Thanks! |
I know we do this elsewhere, and it's out-of-scope for this issue, but in the future we should ensure "Links" without a Anyway, aside from that looks good. IB ✅ |
Pulling this one back to IB for a quick update after discussion here with @eugene-manuilov. Should be a quick one and make things simpler here! |
Looks good to me, IB ✅ |
QA Update:
|
@wpdarren Thank you for sharing your observation.
Thank you. |
Feature Description
If a selected metrics within the Key Metrics widget area depends on AdSense, but AdSense is disconnected (after previously having been connected), then a new CTA tile should be rendered to encourage the user to reconnect the module.
Refer to the relevant section in the design doc for additional context.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
ConnectGA4CTATileWidget
key metrics widget #7153 PR has been merged, we will have access toConnectModuleCTATile
which makes this much simpler to implement.assets/js/googlesitekit/datastore/user/constants.js
file:KM_ANALYTICS_ADSENSE_TOP_EARNING_CONTENT
should be defined.keyMetricsAdSenseWidgets
array that contains all the Key Metrics Widget slugs that depend onAdSense
module.keyMetricsGA4Widgets
array as this will also be dependent on GA4.ConnectAdSenseCTATileWidget
component inassets/js/modules/adsense/components/widgets/ConnectAdSenseCTATileWidget.js
ConnectGA4CTATileWidget
.Widget
andWidgetNull
as props.adsense
module is connected usingisModuleConnected
selector.keyMetrics
widgets using thegetKeyMetrics
selector.hideWidget
variable as initially false.hideWidget
to false if AdSense module is not connected and thekeyMetrics
contains any tile that depends onadsense
using the previously definedkeyMetricsAdSenseWidgets
array.WidgetNull
if either AdSense module is connected or hideWidget istrue
.ConnectModuleCTATile
component with the following props.Icon
:svg/graphics/adsense.svg
(AdSenseIcon
)moduleSlug
:adsense
.Widget
:Widget
assets/js/modules/adsense/index.js
file:ConnectAdSenseCTATileWidget
widget whenuserInput
feature flag is enabled with the following config.slug
:keyMetricsConnectAdSenseCTATile
Component
:ConnectAdSenseCTATileWidget
width
:widgets.WIDGET_WIDTHS.QUARTER
priority
:1
wrapWidget
:false
modules
:['adsense', ''analytics-4]
area
:[ AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY ]
Test Coverage
ConnectAdSenseCTATileWidget
component.QA Brief
ga4Reporting
anduserInput
feature flags are enabled.Changelog entry
The text was updated successfully, but these errors were encountered: