-
Notifications
You must be signed in to change notification settings - Fork 300
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
Add GA events in RRM introductory overlay notification #10330
Comments
Thanks, @nfmohit! Overall the IB looks good. However, the prop to pass to the
|
Excellent catch, updated, thanks @hussain-t! |
Thanks, @nfmohit! IB ✅ |
…m-introductory-overlay Enhancement/#10330 - Add GA events in RRM introductory overlay notification
QA Update ✅Tested good.
|
Feature Description
GA events should be added to the Reader Revenue Manager introductory overlay notification.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
The following GA events should be tracked for the given actions in different Reader Revenue Manager introductory overlay notification. See the GA events sheet.
{ONBOARDING STATE}:{PAYMENT OPTION}
. Example: "ONBOARDING_COMPLETE:noPayment"{ONBOARDING STATE}:{PAYMENT OPTION}
. Example: "ONBOARDING_COMPLETE:noPayment"{ONBOARDING STATE}:{PAYMENT OPTION}
. Example: "ONBOARDING_COMPLETE:noPayment"{ONBOARDING STATE}:{PAYMENT OPTION}
. Example: "ONBOARDING_COMPLETE:noPayment"Implementation Brief
assets/js/modules/reader-revenue-manager/components/dashboard/RRMIntroductoryOverlayNotification.js
:trackEvent
fromassets/js/util/index.js
to track events.onShow
prop to theOverlayNotification
component. Pass a function that calls thetrackEvent
function with theview_notification
event (second parameter).onClick
prop function for theMaybe later
button, call thetrackEvent
function with thedismiss_notification
event (second parameter).onClick
prop function to theExplore features
/Learn more
button. Call thetrackEvent
function with theconfirm_notification
event (second parameter).onClick
prop function to theSupportLink
component. Call thetrackEvent
function with theclick_learn_more_link
event (second parameter).trackEvent
function call should use{viewContext}_rrm-introductory-notification
as the first parameter (event category).viewContext
using theuseViewContext
(assets/js/hooks/useViewContext.js
) hook.trackEvent
function call should use a label as the third parameter as described in the ACs.gaEventLabel
. Compose the event label according to the ACs.getPublicationOnboardingState
selector.getPaymentOption
selector.Test Coverage
assets/js/modules/reader-revenue-manager/components/dashboard/RRMIntroductoryOverlayNotification.test.js
:QA Brief
rrmModuleV2
feature flag enabled.noPayment
or empty (string) for the connected publication.view_notification
event is tracked when the notification is displayed.confirm_notification
event is tracked when the user clicks on the "Explore features" button.dismiss_notification
event is tracked when the user clicks on the "Maybe later" button.click_learn_more_link
event is tracked when the user clicks on the "Learn more" link.Changelog entry
The text was updated successfully, but these errors were encountered: