-
Notifications
You must be signed in to change notification settings - Fork 293
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
Extend frontend to use new GA account provisioning #6733
Comments
IB ✔️ |
Leaving a reference note here. I have found a GA4 Reporting bug. When creating a new Analytics account, an error occurs only when After conversation in Slack it appears that this ticket will fix this issue. ga4bug.mp4c.c @mohitwp @wpdarren (yes, I am tagging myself so I get a notification 😄 ) |
Thanks @wpdarren – it's expected for now until this issue is completed. Thanks for flagging but just wanted to clarify that this is not a bug. |
…-account-provisioning Consume new GA account provisioning endpoint
QA Update
|
Thank you for sharing your observataions, @mohitwp! I have responded to them below. Please feel free to let me know if you have any further questions. Side note: Just to confirm, this ticket is only related to the new Analytics account creation flow with
This was reported here and is being fixed as a part of that issue.
It looks like this happens when we try to create a new web data stream from Analytics settings, as there isn't a way currently to define a custom name for the new web data stream. It appears that this was reported here, and reportedly should be fixed as a part of #6727.
Apologies for the confusion regarding the QAB. By "setup screen", I meant the new account creation flow, i.e. case 1. This ticket only updates the new Analytics account creation flow. I have updated this part of the QAB, but as long as case 1 meets our requirements, this should be fine.
Settings view and edit screens are being updated as a part of #6744.
This was updated as a part of #6738. You should no longer see it now.
This should also be fixed as soon as #6740 and #6744 are merged.
This should also be fixed with #6738, but please report there if it isn't. |
QA Update ✅Thank you @nfmohit for your reply Verified -
|
ℹ️ I opened #6831 as a follow up here, otherwise this works great 👍 |
Feature Description
The account creation components and related infra on the frontend should be extended to use the new provisioning endpoint being added in #6732.
Most of the elements will be the same as today, with a few differences as dictated by the new endpoint and its underlying requirements.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
ga4Reporting
feature flag is enabled, the GA account creation flow should be changed as followsanalytics.edit
scope as the Admin API does not have a dedicated scope for provisioningImplementation Brief
Within new file
assets/js/modules/analytics-4/utils/account.js
:getAccountDefaults()
. This can be copied from the Analytics implementation, but withprofileName
removed and replaced withdataStreamName
which should have the value of the site's reference URL (from thegetReferenceURL()
selector).Within
assets/js/modules/analytics-4/datastore/accounts.js
:fetchCreateAccountStore
, which can be copied from the Analytics implementation, withanalytics
changed toanalytics-4
.*createAccount()
action, which can be copied from the Analytics implementation, but withindata
:profileName
withdataStreamName
.accountName
withdisplayName
, which should still map to theFORM_ACCOUNT_CREATE
valueaccountName
.regionCode
which should map to theFORM_ACCOUNT_CREATE
valuecountryCode
.Within new file
assets/js/modules/analytics/components/common/AccountCreate/WebDataStreamField.js
:WebDataStreamField
functional component.assets/js/modules/analytics/components/common/AccountCreate/ProfileField.js
, with the following changes:profileName
todataStreamName
.profile
todataStream
.View
toWeb Data Stream
.Within
assets/js/modules/analytics/components/common/AccountCreate/index.js
:ga4Reporting
feature flag is enabled:WebDataStreamField
component in place of theProfileField
component.createAccount()
to use the new GA4 version.getAccountDefaults()
to use the new GA4 version.PROVISIONING_SCOPE
to be abstracted from the specific scope. Ensure that when thega4Reporting
feature flag is checked, the required scope isEDIT_SCOPE
, otherwise it should remainPROVISIONING_SCOPE
.Storybook
AccountCreate
component visible.Test Coverage
QA Brief
ga4Reporting
feature flag disabled, the current Analytics new account creation should function as usual/with no change.ga4Reporting
feature flag enabled:site-kit-local
service environment (refer to QAB of Create backend infrastructure for new GA account provisioning endpoint #6732 for setup instructions).Changelog entry
ga4Reporting
is enabled.The text was updated successfully, but these errors were encountered: