I'm trying to track Revenue with the new GA4 but i'm having a hard time understanding how. Show image
Can anyone please help? Thank you!
The "value" parameter in tagging populates the "Revenue" metric in reports. For example if you upload the purchase event from this example ( 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
})
Then, GA4 will show a Total Revenue of $21.09.
In the Monetization Overview Report, GA4 will show this $21.09 is specifically categorized as Ecommerce revenue.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.