site-kit-wp icon indicating copy to clipboard operation
site-kit-wp copied to clipboard

Add the GA4 Activation Banner to the Entity Dashboard

Open techanvil opened this issue 2 years ago • 8 comments

Feature Description

Show the GA4 Activation Banner on the Entity Dashboard.


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • The GA4 Activation Banner should be included on the Entity Dashboard, when the ga4ActivationBanner feature flag is enabled.

Implementation Brief

  • In assets/js/components/notifications/EntityBannerNotifications.js:
    • Use the useFeature hook passing the ga4ActivationBanner string to it and assign it to a variable named ga4ActivationBannerEnabled.
    • In the return statement, render the <ActivationBanner /> component (assets/js/modules/analytics-4/components/dashboard/ActivationBanner) only if ga4ActivationBannerEnabled is truthy.

Test Coverage

  • No tests need to be added/updated.

QA Brief

  • With the ga4ActivationBanner feature flag enabled, navigate to the entity dashboard
  • Ensure that the ga4 activation banner renders correctly
  • Navigate to the entity dashboard without the feature flag enabled
  • The component should not be present.

Changelog entry

  • Add the Google Analytics 4 Activation Banner to the Entity Dashboard.

techanvil avatar Aug 10 '22 12:08 techanvil

@techanvil I've tweaked the language to hopefully avoid misinterpretation that the banner should be displayed/visible when the feature flag is enabled as it has its own logic for determining that as well which is still relevant of course.

aaemnnosttv avatar Aug 10 '22 14:08 aaemnnosttv

Good shout @aaemnnosttv, thanks!

techanvil avatar Aug 10 '22 15:08 techanvil

@techanvil I believe including the GA4 Activation Banner to the Main Dashboard has been already done at #5270. Do we need to update the ACs?

I have added the IB for the Entity Dashboard.

nfmohit avatar Aug 10 '22 22:08 nfmohit

Thanks @nfmohit, not sure how I missed that. I've updated the rest of the issue accordingly. Cheers!

techanvil avatar Aug 11 '22 08:08 techanvil

Thank you @techanvil!

nfmohit avatar Aug 11 '22 09:08 nfmohit

IB ✔️

eugene-manuilov avatar Aug 11 '22 12:08 eugene-manuilov

@makiost I tweaked the QAB to explicitly mention the entity dashboard rather than just the dashboard.

techanvil avatar Aug 15 '22 10:08 techanvil

QA Update ✅

  • Verified when ga4ActivationBanner feature flag enabled.
  • On entity dashboard - ga4 activation banner renders correctly
  • Verified when ga4ActivationBanner feature flag disabled.
  • On entity dashboard - ga4 activation banner is not present.

https://user-images.githubusercontent.com/94359491/185054090-17c172da-d176-4991-93b8-5c1eade0683e.mp4

mohitwp avatar Aug 17 '22 06:08 mohitwp