-
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
Introduce Ad Blocking Recovery Setup CTA in the AdSense Module settings #6958
Comments
ACs here are good, moving to IB 👍🏻 |
Thanks @hussain-t, the IB LGTM. I made a minor tweak to the SCSS filename and added a point to create VRT scenarios for the new stories. IB ✅ |
…ry-setup-cta Feature/#6958 - Introduce Ad Blocking Recovery Setup CTA in the AdSense Module settings
@hussain-t, I merged your PR but then figured out that we forgot to check whether the adBlockerDetection feature flag is enabled in the |
Thanks for catching it, @eugene-manuilov, even though it wasn't specified in the AC. I have created a follow-up PR and assigned this back to you for CR. |
Feature/#6958 - Check for the `adBlockerDetection` feature flag
Thanks, @hussain-t. Approved and merged 👍 . |
QA Update:
|
Apologize, @wpdarren. |
Thanks @hussain-t I did try that before and the CTA didn't appear. What I just noticed is that if I paste the first 3 snippets the CTA appears but when I paste the final snippet to save, it disappears. Should it be doing that? I can continue with the testing and not use the save settings snippet but thought I would check. abd-settings1.mp4 |
QA Update:
|
@wpdarren, regarding your observations:
I have implemented it according to the Figma designs. @sigal-teller, could you please clarify if it was intended?
That's expected, and how we have implemented other notices as well. For example: |
QA Update:
|
QA Update: ✅Verified:
|
Feature Description
Once a user has a fully
ready
AdSense setup, there should be a Setup Ad Blocking Recovery tags CTA in the Module Settings of Adsense. This should appear below everything else in Settings View, and above the "Confirm Changes" and "Cancel" buttons in Settings Edit as seen in the Figma design.This CTA is non dismissible and should appear right after the AdSense Setup is complete (eg. the status is
'ready'
(it should not wait 3 weeks to display like the main dashboard notification introduced in #6953). This will only go away after user completes setting up the feature.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
adBlockingRecoverySetupStatus
is an empty string), the Ad Blocking Recovery CTA should appear in both Settings View and Settings Edit screen of AdSense Settings, as seen in the Figma design.ready
.New
badge, layout, margin, padding and typography.googlesitekit-ad-blocking-recovery
.Implementation Brief
Creating the
AdBlockingRecoveryCTA
componentIn
assets/js/modules/adsense/components/common
, create a new component calledAdBlockingRecoveryCTA
with the following:adBlockingRecoverySetupStatus
using thegetAdBlockingRecoverySetupStatus
selector.accountStatus
andsiteStatus
using thegetAccountStatus
andgetSiteStatus
selectors.SettingsNotice
component with the following props only if theadBlockingRecoverySetupStatus
is an empty string and bothaccountStatus
andsiteStatus
areready
:notice
- Create a child component calledAdBlockingRecoveryCTANotice
with the following:Ad blocking recovery
and theNewBadge
component inline.Start recovering revenue lost from ad blockers by deploying the ad blocking tag through Site Kit. Learn more
in a new line.SupportLink
component for theLearn more
link. Passadsense/answer/11576589
as thepath
prop.AdBlockingRecoveryCTANotice
component to thenotice
prop.CTA
-Button
component with theSet up now
copy.Set up now
button using thegetAdminURL
selector and passgooglesitekit-ad-blocking-recovery
as an argument.href
prop of theButton
component.assets/sass/components/settings/_googlesitekit-settings-ad-blocking-recovery-notice.scss
.New
badge, layout, margin, padding, and typography.Rendering the
AdBlockingRecoveryCTA
componentassets/js/modules/adsense/components/settings/SettingsView.js
, render theAdBlockingRecoveryCTA
component as the last child.assets/js/modules/adsense/components/settings/SettingsForm.js
, render theAdBlockingRecoveryCTA
component as the last child.Test Coverage
QA Brief
adBlockerDetection
feature flag is enabled.adBlockingRecoverySetupStatus
is an empty string.accountStatus
andsiteStatus
areready
.accountStatus
andsiteStatus
toready
. Execute the following in the browser console:adBlockingRecoverySetupStatus
is not an empty string or when eitheraccountStatus
orsiteStatus
is notready
.Changelog entry
The text was updated successfully, but these errors were encountered: