Tooltip not appearing on GA4 property within Analytics settings when only UA property connected
See original GitHub issueBug Description
With ga4ActivationBanner
feature flag enabled.
When you click on the Connect Google Analytics 4 button, the tooltip appears for a second and then disappears.
See screencast below.
We also noticed that when you click on the Edit link in Analytics settings the tooltip does not appear at all, even when the ga4ActivationBanner
feature flag is enabled or not.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- The tooltip pointing to the dropdown in Analytics settings for setting up GA4 should keep showing until the user dismisses it (i.e. not only flash for a split second).
Implementation Brief
- The general idea here is to display the
Set up your Google Analytics 4 property here
tooltip only when theConnect Google Analytics 4
CTA is clicked inSettingsActiveModule -> Header
. We will implement that overruling any other logic, i.e. we will show tooltip when the said CTA is clicked, and close it when the edit screen is closed. - In
assets/js/modules/analytics/components/settings/GA4SettingsControls.js
:- Remove the
useEffect
hook that was added here. - Locate the
<JoyrideTooltip />
component and update its display conditions so that besides the current conditions, it only appears if GA4 is not connected. This can be checked using theisModuleConnected
selector from theCORE_MODULES
store, passinganalytics-4
as the parameter. This will act as an extra measure to make sure we do not show the tooltip when it is not needed.
- Remove the
- In
assets/js/components/settings/SettingsActiveModule/Footer.js
:- Call the
getValue
selector from theCORE_FORMS
store passingFORM_SETUP
andenableGA4PropertyTooltip
as parameters. Assign the selector to a new variable namedenableGA4PropertyTooltip
. - Create a new callback function that will dismiss the tooltip when the user closes the edit screen, say
dismissGA4PropertyTooltip
. In this callback function:- Return
null
early if theslug
prop is notanalytics
, orenableGA4PropertyTooltip
is false. - Dispatch the
setValues
action from theCORE_FORMS
store with parametersFORM_SETUP
and an object containing theenableGA4PropertyTooltip
as key andfalse
as value.
- Return
- In the
handleClose
andhandleConfirm
functions, after thehistory.push()
function call, check if theslug
prop isanalytics
, and if so, call the newdismissGA4PropertyTooltip
function.
- Call the
- When adding a QA Brief, it should be noted that the outcome of #5921 should be checked as well to make sure the behaviour reported there is still fixed.
Test Coverage
- No tests need to be added/updated.
QA Brief
- Set Up analytics without GA4 property
- Go to settings and expand Analytics
- Tooltip should appear as per the screenshot
- The outcome of #5921 should be checked as well to make sure the behaviour reported there is still fixed.
Changelog entry
- Fix bug where the GA4 reminder tooltip in Analytics Settings was not appearing properly.
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
[GA4] Troubleshoot tag setup on your website - Analytics Help
Identify and fix issues with your tag setup that prevent you from seeing data in Google AnalyticsYou may not see data from your...
Read more >GOOGLE ANALYTICS: UA Property Not Passing Event Data to ...
I've noticed some of the UA properties that have events set up in Tag Manager are not passing event data to the GA4...
Read more >Track and View 404 Errors with Google Analytics 4
Learn how to track 404 errors with Google Analytics. In this blog post I have covered three options, one of them includes Google...
Read more >Things to watch out for when migrating from Universal ...
There is no way to get your historic UA data into GA4 ... In Universal Analytics, you could create views within a property...
Read more >Google Analytics 4 Property Settings: The Guide - Online Metrics
Learn how to best configure your Google Analytics 4 property. And get the most out of your GA4 implementation.
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: ✅
@sashadoes the behaviour reported was due to smaller screen size. When I viewed on full-screen, the issue doesn’t occur. It makes sense why it places the tooltip above the GA4 property with the smaller resolution, so I will approve this.
Verified:
Hi @wpdarren, thank you for the feedback. Unfortunately, I am struggling to reproduce this issue.
https://user-images.githubusercontent.com/16494321/200822563-27310f05-d95f-4853-8959-942f9274fba6.mov
Could you write detailed steps on how to reproduce and specify the environment? Thank you.