I have a view_item event on my page, and I am wondering if this event will generate a revenue amount. Based on the structure of the data layer, it includes currency and a value, but inside the GA4 report, it doesn’t show the revenue. I double-checked all values inside the data layer object and verified that they are correct in terms of both values and formatting. Additionally, I checked this event using Tag Assistant, and it is triggering.
// VIEW ITEM DATALAYER
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: "view_item",
ecommerce: {
currency: "PHP",
value: parseFloat(amount),
items: [
{
item_id: drupalSettings.app.base_url,
item_name: drupalSettings.app.campaign_name,
item_category: paymentScheme, // One time or monthly
price: parseFloat(amount),
quantity: 1
}
]
}
});