-
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
Create the "Loyal visitors" key metric widget tile #6243
Comments
ACs 👍🏻 |
IB ✅ |
QA Update:
|
@eugene-manuilov here's a screencast of what I am comparing between Analytics and the widget tile. As you can see the difference is shown.
kmw.mp4We can highlight this as an issue on #6244 and approve this ticket, but I would like to get at least confirmation that what I am seeing is a bug and needs fixing. |
Thanks, @wpdarren. I think there is an error. I'll create a follow up PR. |
@aaemnnosttv, could you please review #7173? |
@wpdarren back to you for another pass please 👍 |
@eugene-manuilov I still do not get the correct I am looking at the GA4 property for oi.ie
124 returning visitors in the last 28 days according to Analytics. Here's my calculation: 124 * 100 / 1624 (124 + 1500) = 7.63% As you can tell from the screenshot below, the percentage on the tile is 7.3% I decided to look at Analytics and the new visitors (see first screenshot above) is 1.6K. Here's my calculation: 124 * 100 / 1724 (124 + 1600) = 7.19% So, even this calculation does not come to the 7.3% loyal visitors on the tile. Can I assume that the calculation on the AC is correct? |
@wpdarren , ok, here is what we have in report rows: So, for the current period we have: There is one weird thing in the report response though. There is the totals section that shows the exact numbers for all users in the current period and in the previous one: For some reason the API returns completely incorrect total number of users in the totals section 🤔. Not sure how it calculates the Analytics server. |
QA Update: ✅Due to time and the fact that this is behind a feature flag, I am going to move this to approval. I think there's some investigation that needs to take place relating to the loyal visitors, total number of users and visitors. I will discuss with Eugene and Jimmy, and create a ticket if necessary.
|
Feature Description
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
activeUsers
newVsReturning
(returning * 100) / (new + returning)
% of(new + returning)
total visitors.Implementation Brief
assets/js/modules/analytics-4/components/widgets/AnalyticsLoyalVisitorsWidget
which exports theAnalyticsLoyalVisitorsWidget
functional component.getReport
selector with the metric and dimension as per the AC.core/user
data store via thegetDateRangeDates
withcompare
set totrue
.getReport
to display the values as per the AC.getErrorForSelector
to get error state.hasFinishedResolution
to get the loading state.MetricTileNumeric.js
component created in Create the "New visitors" key metric widget tile #6244 as a base.ChangeBadge.js
component created in Create the "New visitors" key metric widget tile #6244 to show the +7.2% change value.assets/js/modules/analytics-4/components/widgets/AnalyticsLoyalVisitorsWidget.stories.js
Errorassets/sass/components/key-metrics
folder.Test Coverage
Add tests for theAnalyticsLoyalVisitorsWidget
componentQA Brief
userInput
feature flag enabled, answer the questionnaire. For now, all widgets are displayed on the dashboard (which will change which future commits). As part of this issue, test the design and metric values of theNew Visitors
widget rendered in the Key Metrics section.Loyal Visitors
stories within the Key Metrics widget section in Storybook.A new issue should be created for this.Changelog entry
The text was updated successfully, but these errors were encountered: