New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Continue to pre-select matching second property when changing the primary property #3549
Comments
@eugene-manuilov – the PR-as-IB approach should generally be reserved for issues with a trivial change and/or highly explicit ACs, such that the IB would be a rehashed AC. In this case, I think an IB is appropriate to include given the scope and complexity of the changes. This is relevant when looking back on an issue as well 🙂 Looking at your PR, there are substantial changes to actions in the Analytics stores, but no added or updated tests to cover these changes. There was also one very relevant test for Please add some details around the proposed changes to the IB and let's also ensure the changes are covered by tests. |
@aaemnnosttv yes, I know this. I wanted to squeeze this ticket into the 1.36.0 release. That's why I decided to go with the PR-as-IB approach.
IB is updated. Also had to increase the estimate from 7 to 19 because I expect we will need more time for tests. |
Thanks @eugene-manuilov – overall IB looks good, just one question.
What do you think about leaving the |
It won't work, because we pass defaultProfileID of a matched property, not a selected one. |
Thanks @eugene-manuilov – per our conversation, we can leave that action as you have it defined now and revisit that later when we have more uses of it 👍 IB ✅ |
QA Update: Pass ✅Verified:
ga44.mp4 |
Bug Description
This applies to only the case where the GA account has both types of properties, UA and GA4.
In the particular case below, the site I'm operating on already has both a matching UA property and a matching GA4 property that were created earlier.
Related Asana task (also features a screen recording)
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
ga4transitional
version of the Analytics setup flow: When selecting another property than the pre-selected one in the primary dropdown, the logic to check if there is also a matching property for the secondary dropdown (i.e. of the respective other type, UA or GA4) should also be run.Implementation Brief
assets/js/modules/analytics-4/datastore/properties.js
:matchAndSelectProperty
action into a newmatchAccountProperty( accountID )
action.matchAndSelectProperty
action to use thematchAccountProperty
action to find matching property.assets/js/modules/analytics-4/datastore/webdatastreams.js
:matchWebDataStream( propertyID )
that waits till web data streams are loaded for apropertyID
and returns the result of thegetMatchingWebDataStream( propertyID )
selector call.assets/js/modules/analytics/datastore/properties.js
:findMatchedProperty( accountID )
that waits for properties, finds a property that matches the current reference site URL and returns it.assets/js/modules/analytics/datastore/profiles.js
:findPropertyProfile( accountID, propertyID, defaultProfileID = '' )
that does the following:accountID
andpropertyID
.defaultProfileID
. If such a profile is found, return it.assets/js/modules/analytics/datastore/accounts.js
:selectAccount
action to use thefindMatchedProperty( accountID )
action to find matching UA property.assets/js/modules/analytics/components/common/PropertySelectIncludingGA4.js
:onChange
callback to set appropriate property, profile, web datastream and measurement IDs instead of empty strings using the aforementioned new actions.P.S.: the majority of work is done in the
bug/3549-continue-to-preselect-second-property
branch, the remaining part is to implement js tests.Test Coverage
should change between UA and GA4 properties
test in thePropertySelectIncludingGA4.test.js
file to work with the new approach.Visual Regression Changes
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: