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_content
event takes 2 options parameters:content_id
content_type
However, this library throws an error when I pass it
content_id
and says that I need to passitem_id
which is false sinceitem_id
is 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-in
logSelectContent` method.Beta Was this translation helpful? Give feedback.
All reactions