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 for "Top Earnings Pages" overlay CTA #8213
Comments
(Moving to stalled because this component doesn't exist yet.) |
This comment was marked as outdated.
This comment was marked as outdated.
@marrrmarrr @ivonac4 We now have issues filed for this component, so I've marked this as blocked by those two issues 👍🏻 |
@tofumatt could you please update IB to have actual implementation brief, because right now it looks like an exact copy of AC. |
@eugene-manuilov Sure thing, I had written it before the component was totally implemented 😅 EDIT: Oh, looks like the component is still in execution, I'll add more to the IB once the component is ready. |
Updated the IB to reference the actual components, though since the issue should be completed this sprint and that issue is still in execution/code review I've referenced the PR 😄 Should be good though 😅 |
Thanks, @tofumatt. IB ✔️ |
…earning-pages-overlay Add necessary GA events for "Top Earning Pages" overlay CTA
QA Update ✅
1> trackEvent( 2> trackEvent( 3> trackEvent( |
Feature Description
GA events (eg.
trackEvent
calls) should be added to the new "Top Earnings Pages" overlay (#8237) that appears on the Site Kit dashboard when the user connects their accounts and has data available. There should be one when a user views the overlay, one when they click the "Show me" link in the overlay, and another when the user dismisses the overlay.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
trackEvent
calls should be made:trackEvent( `{viewContext}_top-earning-pages-widget`, 'view_overlay_CTA' )
when the notification is rendered and shown to the usertrackEvent( `{viewContext}_top-earning-pages-widget`, 'confirm_overlay_CTA' )
when the user clicks the "Show me"/primary CTAtrackEvent( `{viewContext}_top-earning-pages-widget`, 'dismiss_overlay_CTA' )
when the user clicks the "Maybe later"/secondary CTACTA widget screenshot:
Implementation Brief
trackEvent( `{viewContext}_top-earning-pages-widget`, 'view_overlay_CTA' )
whenshouldShowNotification
istrue
inAnalyticsAndAdSenseAccountsDetectedAsLinkedOverlayNotification
onClick
handler for the "Show me" button to also calltrackEvent( `{viewContext}_top-earning-pages-widget`, 'confirm_overlay_CTA' )
trackEvent( `{viewContext}_top-earning-pages-widget`, 'dismiss_overlay_CTA' )
to the "dismiss" handler at https://github.com/google/site-kit-wp/pull/8399/files#diff-dde7a931a349093a2dc4b056807b51019b4555ec16f3dbf4a8793a82c1c66ff3R167-R173Test Coverage
QA Brief
ga4AdSenseIntegration
feature flagoi.ie
should) and view the notificationmainDashboard_top-earning-pages-widget
,view_overlay_CTA
event should be sentmainDashboard_top-earning-pages-widget
,dismiss_overlay_CTA
event should be sentmainDashboard_top-earning-pages-widget
,confirm_overlay_CTA
event should be sentChangelog entry
The text was updated successfully, but these errors were encountered: