Google Analytics (gtag.js): Product List Name doesn't appear but other fields do

▼魔方 西西 提交于 2019-12-04 18:55:40

there is an error/mistake/inconsistency in gtag documentation:

  • you should use list_name instead of list

it works as expected with list_name


!!! DO NOT USE gtag as it does not send list_name value with events such as select_content and view_item

in short, query parameter pal (Product Action List) for collect call via gtag is not included, when using gtag — this is a major error comparing to analytics.js implementation.

You can send 2 events, when adding to cart from any list:

gtag('event','view_item',deals); gtag('event','add_to_cart',deals);

name of list must be set in list_name.

deals = [{"id": "18","name": "Some product","list_name": "All Deals", ...}]

Then it works fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!