【发布时间】:2020-11-24 11:42:36
【问题描述】:
我正在尝试使用新的 GA4 跟踪收入,但我很难理解如何。 Show image
有人可以帮忙吗? 谢谢!
【问题讨论】:
标签: google-analytics google-analytics-4
我正在尝试使用新的 GA4 跟踪收入,但我很难理解如何。 Show image
有人可以帮忙吗? 谢谢!
【问题讨论】:
标签: google-analytics google-analytics-4
标记中的“值”参数填充报告中的“收入”指标。例如,如果您从该示例上传购买事件 (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce#purchase):
gtag('event', 'purchase', {
affiliation: 'Google Store',
coupon: 'SUMMER_FUN',
currency: 'USD',
items: [{
item_id: 'SKU_12345',
item_name: 'jeggings',
coupon: 'SUMMER_FUN',
discount: 2.22,
affiliation: 'Google Store',
item_brand: 'Gucci',
item_category: 'pants',
item_variant: 'black',
price: 9.99,
currency: 'USD',
quantity: 1
}, {
item_id: 'SKU_12346',
item_name: 'jeggings',
coupon: 'SUMMER_FUN',
discount: 2.22,
affiliation: 'Google Store',
item_brand: 'Gucci',
item_category: 'pants',
item_variant: 'gray',
price: 9.99,
currency: 'USD',
quantity: 1
}],
transaction_id: 'T_12345',
shipping: 3.33,
value: 21.09,
tax: 2.22
})
然后,GA4 将显示 21.09 美元的总收入。
在获利概览报告中,GA4 将显示这 21.09 美元专门归类为电子商务收入。
【讨论】: