Scaffold GA4 Activation Banner "happy path" UI
See original GitHub issueFeature Description
Create stubs for the Controller Component and each of the top-level presentational components:
- Reminder Component.
- Setup Component.
- Success Component.
Prepare the basic local state and logic for stepping through these components, i.e. press the Reminder Component CTA to show the Setup Component, and the Setup Component CTA to show the Success Component.
Use a regular Button on the Setup Component, this can be swapped out for the Button with Spinner when it’s ready.
Render the component at the top of the Dashboard when the ga4ActivationBanner feature flag is enabled.
- Design Doc:
- Figma: https://www.figma.com/file/vMaCWwr6lpk4PrJWb7jIpz/GA4-Banner-Input?node-id=1082%3A1526
Acceptance criteria
- The GA4 Activation Banner should be scaffolded and displayed on the Dashboard when the
ga4ActivationBannerfeature flag is enabled. - Stubs should be created for each top-level component:
- Reminder Component.
- Setup Component.
- Success Component.
- Only one of these components will be shown at a time and they will be stepped through in the order listed, with the Reminder Component being displayed first.
- Each component should display some placeholder text which will be replaced in subsequent issues.
- The Reminder and Setup components should each display a standard button. Pressing a button should advance to the next stage.
Implementation Brief
- In
assets/js/modules/analytics-4/components, create a new folder -dashboardand another folderActivationBannerinside of it. - Within
assets/js/modules/analytics-4/components/dashboard/ActivationBanner, create a new functional componentActivationBanner(index.js). - Create 3 additional functional components:
ReminderBanner,SetupBannerandSuccessBanner. Each of these should:- Render the
BannerNotificationcomponent with the following props:id=ga4-activation-bannertitleandctaLabel= could simply be placeholder text or use the Figma designs for the eventual titles and CTA button that each component will display.onCTAClickshould be thesetStepmethod prop passed down in the next step fromActivationBanner.
- Render the
- Within
ActivationBanner, use a local state variable, saystepto render one of the above three components. Pass thesetStepmethod down toReminderandSetupso they can changestepto the next step. - Within
BannerNotifications:- After the
ZeroDataStateNotifications, renderActivationBannerif thega4ActivationBannerflag is enabled.
- After the
- Add a StoryBook v6 story for the
ActivationBannercomponent (with all three steps).
Test Coverage
- No new tests needed.
QA Brief
- WIth the
ga4ActivationBannerflag enabled, verify the new banner appears and can be stepped through as in the ACs. - Verify the new storybook story as well under Modules/Analytics4.
- To retest the banner, clear the Application / Browser storage and refresh the dashboard/storybook story.
Changelog entry
- N/A
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
[GA4] Path exploration - Analytics Help - Google Support
Explore your user journeys in a tree graph.The path exploration techniques lets you do things like: Find the top pages that new users...
Read more >Untitled
Art modell sells ravens, Scrum retrospective examples, Kahulanui video, Muerto de amor lorca analisis, Cute little quotes about happiness.
Read more >Untitled
Jefferson hotel dc room service menu, My asana rose bay, Path of exile ... 238 penquite road norwood, Iu basketball mini banners, Jean...
Read more >Untitled
Dallas tx six flags? Daulat movie songs mp3, Initial d kai kogashiwa, Movido sinonimo, Masonry js angular! Stassi schroeder fashion blog, Imtiyaz karbelkar, ......
Read more >Untitled
Quiz to determine career path, Pocketbook 360 apps, Aurelio cheveroni yo soy el lobo feroz, Waypoint group atlanta, High on a wire lyrics...
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

Hey @jimmymadon, the IB is looking good. I do have a suggestion regarding the main folder/component name.
Taking a look at our existing folder structure, the suggested
components/activation-bannerwould be slightly out of keeping with existing conventions.To illustrate here’s the output of
find $( find assets/js/modules -name components ) -type d:Bearing in mind the banner is only going to be displayed on the dashboard, I think it would be appropriate to place it under
assets/js/modules/analytics-4/components/dashboard(can always move tocommonif it becomes shared). Also consider how the component will be imported - we should stick with the camel case name for the folder, and I don’t think we need theMainsuffix. With all this in mind I’d suggest simply calling the componentActivationBanner, sitting inassets/js/modules/analytics-4/components/dashboard/ActivationBanner/index.js.Please see what you think. Other than that, this looks good to go! 😃
QA Update: ✅
Verified:
The GA4 Activation Banner is displayed on the Dashboard when the
ga4ActivationBannerfeature flag is enabled. Stubs should be created for each top-level component:Only one of these components is shown at a time and they are step through in the order listed, with the Reminder Component being displayed first.
Each component displays placeholder text.
The Reminder and Setup components each display a standard button. Pressing a button takes me to the next stage.
Verified the new storybook story under Modules/Analytics4.
Screenshots