Why does logSelectContent send item_id param instead of content_id? #8581
ashkan-ahmadi
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The
select_contentevent takes 2 options parameters:content_idcontent_typeHowever, this library throws an error when I pass it
content_idand says that I need to passitem_idwhich is false sinceitem_idis an ecommerce dimension, not a general content dimension.Here's the official documentation: https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtm#select_content
Is this an error in this library? As a result I've now used
logEvent('select_content', params) instead of the built-inlogSelectContent` method.Beta Was this translation helpful? Give feedback.
All reactions