Create the Acknowledgement Component
See original GitHub issueFeature Description
Create the Acknowledgement Component. This will take the form of a tooltip, with the following text:
Title: You can connect Google Analytics 4 later here
Description: You can configure the Google Analytics 4 property inside the Site Kit Settings later.
This component will take a prop for the button text.
Display the Acknowledgement Component when postponing the GA4 Activation Banner:
- When clicking Remind me later on the Reminder Component:
- Show the Acknowledgement Component with the button text set to Got it.
- When clicking Cancel on the Setup Component:
- Show the Acknowledgement Component with the button text set to Remind me later.
From the Design Doc:
The Acknowledgement Component can be implemented using the Tooltip component created for the AdSense Connect CTA update - see https://github.com/google/site-kit-wp/issues/5260.
- Design Doc: https://docs.google.com/document/d/1DeWo38lcV7lvLFfcmt-mQ0iaxzB4qfiPArs_yZzYkIM/edit#heading=h.754ql48d85ap
Acceptance criteria
- When clicking Remind me later on the Reminder Component, or Cancel on the Setup Component, an acknowledgement should be displayed, in the form of a a tooltip, with the following text:
- Title: You can connect Google Analytics 4 later here
- Description: You can configure the Google Analytics 4 property inside the Site Kit Settings later.
- The tooltip should have a dismiss button. Pressing it will dismiss the tooltip.
- Having clicked Remind me later on the Reminder Component, the dismiss button text should read: Got it.
- Having clicked Cancel on the Setup Component, the dismiss button text should read: Remind me later.
- The tooltip should point to the Settings menu item.
Implementation Brief
- This issue largely follows the same pattern within
assets/js/modules/adsense/components/dashboard/AdSenseConnectCTAWidget.jsso use it as a reference for each of the steps below. The reusable logic to display anAdminMenuTooltiphas been extracted into a separate reusable component this draft PR to avoid duplicating the logic for this issue. Use this POC as a starting point and refer to how it is being used withinAdSenseConnectCTAWidget. - Create a constant in
assets/js/modules/analytics-4/constants.jsforACTIVATION_ACKNOWLEDGEMENT_TOOLTIP_STATE_KEYthat will be used as the key to persist the state of theAdminMenuTooltip(show/hide along with admin menu state). - Within
assets/js/modules/analytics-4/components/dashboard/ActivationBanner/ReminderBanner.jsandSetupBanner.js:- Render the
AdminMenuTooltipcomponent with thedismissLabelprop set to “Got it” (forReminderBanner) or “Remind me later” (forSetupBanner) as in the AC.
- Render the
Test Coverage
- No new tests required.
QA Brief
- As for other GA4 Activation banner issues, setup UA but not GA4 for the banner to appear.
- On the first “Reminder” banner, click “Remind me later” and verify the tooltip appears as per the AC.
- Clear browser storage (session/cache) and re login. The banner will appear again. This time, click on “Setup” on the “Reminder” banner. This will take you to the “Setup” banner. Click “Cancel” and verify the tooltip appears as per the AC.
- As the AdSense Connect CTA has been refactored to share the common behaviour here, the “Maybe later” functionality of the AdSense Connect CTA should be regression tested to make sure it still works as expected.
Changelog entry
- Show a tooltip to acknowledge dismissing the GA4 Activation Banner.
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
Confirmation & acknowledgement - Material Design
Acknowledgements can be delivered by a variety of components. Criteria for choosing the right acknowledgement component includes: Acknowledgements that are ...
Read more >Acknowledgement Receipts (With Template and 2 Samples)
This article outlines the components of acknowledgment receipts for employment-related agreements, steps to create an acknowledgment receipt and answers to ...
Read more >How to Draft the Acknowledgment Section of a Manuscript
The acknowledgment section helps identify the contributors responsible for specific parts of the project. It can include: Authors; Non-authors (colleagues, ...
Read more >Thesis & Dissertation Acknowledgements | Tips & Examples
The dissertation acknowledgements are where you thank the people who helped you during your thesis and dissertation process.
Read more >What to Include in Your Acknowledgments Section
This article explains what needs to go into the Acknowledgments section of a thesis and a journal publication, along with additional pointers for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

QA Update: ✅
Verified:
Screenshots
@jimmymadon just a heads up that I added a point to the QAB about regression testing the “Maybe later” behaviour of the AdSense Connect CTA due to the refactor.