-
Implementing GA4 ecommerce events for product variants in Google Analytics
Hey there, I’m currently making the jump to GA4 and nailing down all the ecommerce events. I’ve stumbled onto something and I can’t seem to find an answer.
You use
view_item
whenever a customer looks at a product, right? And this event expectscurrency
,value
, anditems
. You put in the NETT price in thevalue
and initems
, you fill in all your products.Now here’s where I’m a little stumped. Like many of us, I’ve got a bunch of products with variants. Imagine a glove that comes in small, medium, and large. What’s the right way to send this?
Option 1: Trying to fit all the variants in the
items
array. Downside? This will likely mess with thevalue
field since different sizes are priced differently.Option 2: Generating a separate
view_item
event for each variant. It sorta makes sense, but I can’t find anything in the documentation that says that’s a go.Option 3: Playing around with a
view_item_list
event. Seems reasonable, as it doesn’t need avalue
field. But I’m not showing a list or category though, just a single product with its various dimensions. The docs don’t make it clear ifview_item
andview_item_list
are dealt with in the same way though.What do you think? I’m open to suggestions.
Log in to reply.