Closed techanvil closed 1 year ago
@techanvil I've added a section in the PRD with a list of links to be updated. Let me know if this info is enough, or we need more context.
Thanks @marrrmarrr - I've left a few related questions on the PRD.
The definition for this issue can now be completed, referring to the the new section in the PRD.
The example links are behind a Google corporate link I can't access, but I think the references are enough; I've gone through and listed example links for all the new metrics in GA4 we can use.
Hey @tofumatt, nice work here. Just letting you know, I spotted a reference to page_url
which was left in the PRD by accident and should in fact be unifiedPagePathScreen
, so I have updated the AC accordingly (and left a suggestion to update the PRD).
Hey @kuasha420, the IB is looking good. I have a few comments on it, please take a look.
unifiedPagePathScreen
should only be included on the Entity Dashboard for the DashboardAllTrafficWidgetGA4
component, but it should be used in the DashboardOverallPageMetricsWidgetGA4
component too. This is fairly evident when cross-referencing the AC, but it would be best to make it clear in the IB too.Thanks @techanvil for the feedback. I have updated the IB to account for all three points you raised. I didn't realize that there was JSON encoded object hiding in the query params! I thought there was only url encoding so didn't feel the need to elaborate further. :disappointed: Thanks for catching it.
Thanks, @kuasha420!
IB :white_check_mark:
@techanvil Below is the AC for All traffic channels and Locations All Traffic Widget:
If the "Channels" tab is selected, update to Reports > Life cycle > Acquisition > Traffic, eg: https://analytics.google.com/analytics/web/#/p${propertyId}/reports/dashboard?params=_u..nav%3Dmaui&r=lifecycle-acquisition-overview&ruid=lifecycle-acquisition-overview,life-cycle,acquisition&collectionId=life-cycle
If the "Countries" tab is selected, update to Reports > Demographics > Overview > Users by country, eg: https://analytics.google.com/analytics/web/#/p${propertyId}/reports/dashboard?params=_u..nav%3Dmaui&r=user-demographics-overview&ruid=user-demographics-overview,user,demographics&collectionId=user`
Both above mentioned URL contain - 'dashboard' whereas actual URL have 'explorer' at the place of dashboard. Example URL (https://analytics.google.com/analytics/web/?pli=1#/p285794360/reports/explorer?params=_r..nav%3Dmaui%26_u.date00%3D20230308%26_u.date01%3D20230404%26_u.date10%3D20230208%26_u.date11%3D20230307%26_r.explorerCard..selmet%3D%5B%22activeUsers%22%5D%26_r.explorerCard..seldim%3D%5B%22country%22%5D&r=user-demographics-detail&collectionId=user)
URL for devices tab contain explorer in AC and it is same as actual URL. Although, the URL destination is as per AC but want to flag this difference. Is URL mentioned under AC is correct ? and if it correct then should we require changes here in actual URL ?
Hi @mohitwp, thanks for flagging this.
The URLs you've mentioned in the AC are not quite correct. For some reason the URL seems to have been pasted from the Overview section of the relevant report, rather than the details section we actually want to navigate to.
Reports > Life cycle > Acquisition > Overview
Reports > Life cycle > Acquisition > Traffic acquisition (the correct report)
Reports > Demographics > Overview
Reports > Demographics > Demographic details: Country (the correct report)
So, in a nutshell the AC is a little off, and the links do navigate to the correct report URLs.
Feature Description
As discussed on Slack, we need to determine and use the correct URLs for the source links for the GA4 Reporting widgets.
In order not to block development, we can initially use the UA version of the URLs, and then update them once we have specced the GA4 URLs.
This outcome of this issue should be to have updated the various GA4 Reporting widgets with the correct source link URLs. Further detail can be added once the URLs are known, this is currently with @marrrmarrr to spec them out.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
https://analytics.google.com/analytics/web/#/p${propertyId}/reports/dashboard?params=_u..nav%3Dmaui&r=lifecycle-acquisition-overview&ruid=lifecycle-acquisition-overview,life-cycle,acquisition&collectionId=life-cycle
https://analytics.google.com/analytics/web/#/p${propertyId}/reports/dashboard?params=_u..nav%3Dmaui&r=user-demographics-overview&ruid=user-demographics-overview,user,demographics&collectionId=user
https://analytics.google.com/analytics/web/#/p${propertyId}/reports/explorer?params=_u..nav%3Dmaui%26_r.explorerCard..seldim%3D%5B%22deviceCategory%22%5D&r=user-technology-detail&ruid=user-technology-detail,user,technology&collectionId=user
sessionSource
asgoogle
(example link), eg:https://analytics.google.com/analytics/web/#/p${propertyId}/reports/explorer?params=_u..nav%3Dmaui%26_r..dataFilters%3D%5B%7B%22type%22:1,%22fieldName%22:%22sessionSource%22,%22evaluationType%22:3,%22expressionList%22:%5B%22google%22%5D,%22complement%22:false,%22isCaseSensitive%22:false,%22expression%22:%22%22%7D%5D&r=lifecycle-traffic-acquisition-v2&ruid=lifecycle-traffic-acquisition-v2,life-cycle,acquisition&collectionId=life-cycle
https://analytics.google.com/analytics/web/#/p${propertyId}/reports/explorer?params=_u..nav%3Dmaui&r=all-pages-and-screens&ruid=all-pages-and-screens,life-cycle,engagement&collectionId=life-cycle
unifiedPagePathScreen
metric to show only data for the current page (that matches the page the user is viewing on the Entity Dashboard)unifiedPagePathScreen
filter for the current page.See https://docs.google.com/document/d/17RKIrdm5PBK8j6rP0GV_2QlztSLXqYQX8ikz3kQmrAo/edit?pli=1&resourcekey=0-njOU7bn1dhvi5Yp2jeX5zw#bookmark=id.9e5lpgtwjov3 for metrics to use to replace these links.
Implementation Brief
assets/js/modules/analytics-4/datastore/service.js
:getServiceURL
andgetServiceReportURL
selectors for Analytics 4 module.propertyID
should be replaced with GA4 property id.assets/js/modules/analytics/components/dashboard/DashboardAllTrafficWidgetGA4/index.js
assets/js/modules/analytics/components/dashboard/DashboardOverallPageMetricsWidgetGA4.js
unifiedPagePathScreen
metric is used in case of Entity Dashboard for both widgets. ie. is hasentityURL
.assets/js/modules/search-console/components/dashboard/SearchFunnelWidget/Footer.js
SourceLinkAnalytics4
component that mirrors the logic fromSourceLinkAnalytics
but uses the aforementioned selector and new logic for the updated deep links.SourceLinkAnalytics
orSourceLinkAnalytics4
based on whether the current dashboard is GA4 inFooter
usingisGA4DashboardView
selector from Analytics module.assets/js/modules/analytics/components/module/ModulePopularPagesWidget/Footer.js
:getServiceReportURL
from GA4 for the source link when the dashboard is in GA4 view usingisGA4DashboardView
selector from Analytics module.Test Coverage
QA Brief
ga4Reporting
feature flag is enabled, and the Dashboard View is set to Google Analytics 4.Changelog entry