Fix glitches in the Audience Segmentation Setup CTA Banner #9231
Labels
Module: Analytics
Google Analytics module related issues
P1
Medium priority
Team M
Issues for Squad 2
Type: Bug
Something isn't working
Bug Description
There are a couple of glitches relating to the Audience Segmentation Setup CTA Banner.
These should be small fixes and can be addressed in this single issue.
Steps to reproduce
The "Don't show again" dismissal CTA flashes in place of the "Maybe later" CTA.
audienceSegmentation
feature flag enabled and Analytics connected.The Setup CTA Banner shows again when the No Audiences Banner is visible.
audienceSegmentation
feature flag enabled and Analytics connected.Screenshots
The "Don't show again" dismissal CTA flashes in place of the "Maybe later" CTA.
dont_show_again_cta_flash.mp4
The Setup CTA Banner shows again when the No Audiences Banner is visible.
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
assets/js/modules/analytics-4/components/audience-segmentation/dashboard/AudienceSegmentationSetupCTAWidget.js
Add an additional check
dismissCount === undefined
here, so that ifdismissCount
isundefined
, the component returnsnull
. This will make sure that dismissed prompts data is loaded before the banner is displayed.For the
useEnableAudienceGroup
hook, pass theonSuccess
callback such that it should calldismissPrompt
and pass slug asAUDIENCE_SEGMENTATION_SETUP_CTA_NOTIFICATION
andexpiresInSeconds
as zero (permanent dismissal). Make theonSuccess
callbackasync
.Test coverage
dismissCount
andonSuccess
behaviour inassets/js/modules/analytics-4/components/audience-segmentation/dashboard/AudienceSegmentationSetupCTAWidget.test.js
QA Brief
Steps to reproduce
steps.Changelog entry
The text was updated successfully, but these errors were encountered: