-
Notifications
You must be signed in to change notification settings - Fork 286
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
Creation of a New GA4 Datastore Partial for Detected ACR Events #9132
Comments
@zutigrm, let's define which selectors and actions should be created to make it clear. No need to put selector and action names there, but just explain what they should do. For example:
|
@eugene-manuilov thanks, AC updated |
Awesome! Thanks, @zutigrm. Slightly updated AC to have two top level points. AC is ✔️ now. |
@zutigrm IB LGTM, moving to EB |
@zutigrm @10upsimon it seems to me some of the work here isn't necessary unless I'm misunderstanding? See my comment on the doc. |
@aaemnnosttv Actually you are correct, since we switched to storing events in the settings, we will only need |
Moving directly to Approval as there's nothing to QA here 🙂 |
Feature Description
As part of the ongoing Analytics Conversion Report work, notably issues #9130 and #9131, there is a need to surface said new ACR events data via a new Google Analytics 4 datastore partial. This new datastore will be responsible for resolving the new inline module data added to the GA4 module in #9131, and it will function similarly to how we handle retrieval of custom dimensions within the GA4 module, etc.
This datastore should contain the necessary resolver, action and and selectors in order to retrieve the detected ACR events within the users GA4 report data.
See the relevant section of the design document for more detailed information.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
The inline Analytics 4 data from_googlesitekitModulesData
holding the available event names underrecentEvents
key is retrieved and stored in theMODULES_ANALYTICS_4
datastore.Selector for returning thedetectedEvents
valueResolver for retrieving the data if unavailable and updating the state through actionAction which receives the data and passes it to the reducerdetectedEvents
value has any of the event names passed as the parameterSee #9132 (comment) regarding edits
Implementation Brief
assets/js/modules/analytics-4/datastore/conversion-reporting.js
recentEvents
to the initial state objectgetConversionReportingEvents
resolver_googlesitekitModulesData
is not set_googlesitekitModulesData['analytics-4']['recentEvents']
and pass them to thereceiveConversionReportingEvents
actiongetConversionReportingEvents
selector to return therecentEvents
from the statereceiveConversionReportingEvents
actionevents
prop and yield it to the reducerhasConversionReportingEvents
selectorevents
propgetConversionReportingEvents
selector and check for the presence ofevents
within the returned array if not emptyevents
are present or notTest Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: