Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mismatched information about analytics event parameters on two different pages #3865

Closed
ruifcnunes opened this issue Jul 1, 2020 · 1 comment

Comments

@ruifcnunes
Copy link

ruifcnunes commented Jul 1, 2020

Documentation Feedback

I've encountered two different pages about analytics events that have different information about the parameters to be sent.
Here, for the event view_item_list it can be passed the following parameters:

const params1 = {
   item_list_id: 'L001',
   item_list_name: 'Related products',
   items: [item_jeggings, item_boots, item_socks]
};

analytics().logEvent('view_item_list'))

but on this page, for the same event using analytics().logViewItemList() (internally it will call analytics().logEvent('view_item_list')), it is only possible to send a parameter called item_category: string;, and the method will validate that this is the only parameter passed.

Is this a documentation problem, or is it expected that these methods referred on the second page will not to cover the ecommerce needs?

Thanks in advance.

@ruifcnunes
Copy link
Author

I've just noticed that this will be fixed in this PR. Closing the issue. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant