GA4: view_item vs. select_content

Hello there,

I am back with yet another feature request. Currently, the view_item event contains all necesssary metadata which is great and works well. Unfortunately, the select_content event which is triggered when a product variant is selected doesn’t contain any metadata except for the ID of the product variant.

Our analyst told me that the missing metadata makes it impossible to build a proper funnel in GA4 since the information that a product variant was selected is basically missing.

So I was thinking whether you would consider either adding the metadata to the select_content event or even simplifying the scenario by dropping the select_content event completely and sending another view_item upon variant change. I understand that this would probably require obtaining the metadata on the frontend which you didn’t need to implement yet but I believe that at least the basic data should be available in the variations form’s data-product_variations property.

If you were interested, I could chip in and provide a PR.

Best regards,
Honza

Hello Honza,

From what we can see, the select_content event currently doesn’t include any properties beyond the product ID, which we are already sending. This is why the suggestion is to switch to the view_item event, which at the moment is triggered only when navigating to a product detail page. You’re correct that additional data will be needed since product switching occurs on the frontend.

We can implement this change if it makes sense for your use case. However, it might be better to add the view_item event alongside select_content instead. Without this, there would be no way to distinguish when a product is selected (unless redirects are also being tracked).

Let us know your thoughts!

Best regards,
Mergado Pack Support Team

1 Like

Hello Robin,

I am sorry, I didn’t check the GA4 docs. Now I see it is recommended to only send the content_id.

I think that the solution you are proposing is perfect. This way all metadata are sent and one can also distinguish between switching a variant and opening a product/variant via parametrized link. It would work perfectly for us.

Can I be of any help?

Thank you for your continuous support!
Honza