Creation of Top traffic source driving purchases
ACR KMW
#9164
Labels
javascript
Pull requests that update Javascript code
Module: Analytics
Google Analytics module related issues
P0
High priority
Team S
Issues for Squad 1
Type: Feature
New feature
Feature Description
One of the identified metric tiles for the ACR epic is
Top traffic source driving purchases
. Details of this metric tile are as follows:purchase
ecommercePurchases
sessionDefaultChannelGroup
Figma design: TBA
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Top traffic source driving purchases
ACR widget is introduced to the existing list of widgets available within KMWecommercePurchases
metric count for thesessionDefaultChannelGroup
dimension (using the 1st/top channel from the results)Traffic source that generates the most purchases
should be used for description and the tooltippurchase
event is not present, orconversionReporting
feature flag is not enabledImplementation Brief
assets/js/googlesitekit/datastore/user/constants.js
KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_PURCHASES
, holding a stringkmAnalyticsTopTrafficSourceDrivingPurchases
assets/js/components/KeyMetrics/key-metrics-widgets.js
KM_ANALYTICS_TOP_TRAFFIC_SOURCE_DRIVING_PURCHASES
title
description
andtooltip
requiredConversionEventName
, and assign it an array value containingpurchase
event namedisplayInList
pass the helper functionshouldDisplayWidgetWithConversionEvent
assets/js/modules/analytics-4/components/widgets/TopTrafficSourceDrivingPurchases.js
assets/js/modules/analytics-4/components/widgets/TopTrafficSourceWidget.js
as a starting pointshowWidget
const which should hold value ofisKeyMetricActive
or if no event is present in the inline data (the condition used inshouldDisplayWidgetWithConversionEvent
helper function), so this const can be used to returnWidgetNull
and prevent report requests if conditions are not met. You can see example usage of this const inassets/js/modules/analytics-4/components/widgets/PopularProductsWidget.js
totalPurchasesReportOptions
:ecommercePurchases
metrictrafficSourceReportOptions
:sessionDefaultChannelGroup
for dimensionsecommercePurchases
metricassets/js/modules/analytics-4/index.js
to include new widget registrationTest Coverage
QA Brief
Top traffic source driving purchases
widget is not availableconversionReporting
feature flagTop traffic source driving purchases
tileTop traffic source driving purchases
widget is showing zero data (since widget will only have data on property that has ACR data)Changelog entry
Top traffic source driving purchases
widget.The text was updated successfully, but these errors were encountered: